fix(vscode): reduce Agent Manager Git polling load - #12924
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (5 files, incremental)
Notes: incremental review of Previous Review Summary (commit b521829)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b521829)Status: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (10 files)
Notes: cache lifecycle was reviewed for memory leaks — Reviewed by kimi-k3 · Input: 66.1K · Output: 14.6K · Cached: 865.8K Review guidance: REVIEW.md from base branch |
# Conflicts: # packages/kilo-vscode/src/agent-manager/GitStatsPoller.ts
…er to ensure that input window has enough room to compact (Kilo-Org#12924) Co-authored-by: James Lal <james@littlebearlabs.io>
…er to ensure that input window has enough room to compact (Kilo-Org#12924) Co-authored-by: James Lal <james@littlebearlabs.io>
fix(vscode): reduce Agent Manager Git polling load
Agent Manager recomputed complete diff and ahead/behind statistics for every managed worktree on each visible poll. With many worktrees, this created repeated Git processes, filesystem scans, and endpoint-security work even when repositories were unchanged.
This change introduces status-based fingerprints, cached exact aggregate results, one shared ref snapshot per project poll, and priority timer polling. Dirty, selected, busy, and new worktrees retain five-second freshness, while clean dormant worktrees rotate within 30 seconds. Forced refreshes remain immediate and unsharded. The implementation keeps exact aggregate semantics and leaves review/detail diff behavior separate.