fix(agent-manager): scope multi-project sessions by project - #12867
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The previous warning on Files Reviewed (2 files)
Previous Review Summary (commit 127789a)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 127789a)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
The core multi-project scoping looks solid: directory-authoritative event filtering in the SSE pre-filter and Fix these issues in Kilo Cloud Files Reviewed (12 files)
Reviewed by kimi-k3 · Input: 89.2K · Output: 6.5K · Cached: 288K Review guidance: REVIEW.md from base branch |
…ject-worktree-content-mismatc fix(agent-manager): scope multi-project sessions by project
Multi-project Agent Manager shares one backend and provider across project roots, but event filtering and cached project identity could remain scoped to the previous project. A background worktree event could therefore reach the active transcript, while project switches could leave Git status and stats tied to the original workspace root.
Scope session events by the active project/worktree directory, refresh and race-guard the backend project identity during project activation, and resolve Git status from edited files to the nearest repository root. This keeps nested repositories usable when the workspace parent is not itself a Git repository.
Fixes #12832