fix(agent-manager): scope multi-project session state - #13304
Merged
marius-kilocode merged 3 commits intoAug 21, 2026
Conversation
…ti-project-session-loading # Conflicts: # packages/kilo-vscode/src/agent-manager/pr-status-bridge.ts # packages/kilo-vscode/tests/unit/am-pr-status-bridge.test.ts # packages/kilo-vscode/webview-ui/agent-manager/pr/PRPanel.tsx
Contributor
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (49 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit 7a448d7)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 7a448d7)Status: 7 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (49 files)
Reviewed by grok-4.6 · Input: 106.3K · Output: 23.9K · Cached: 1M Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
August 21, 2026 10:50
chrarnoldus
approved these changes
Aug 21, 2026
marius-kilocode
deleted the
fix-agent-manager-multi-project-session-loading
branch
August 21, 2026 11:38
This was referenced Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent Manager can display several projects at the same time, but its session and async-message state was still partly shared. Responses from one project could arrive after switching to another project and be applied to the active UI. The same problem affected remembered tabs, review panels, diff results, PR actions, and session status indicators. In practice, projects could show the wrong sessions, stay on loading skeletons, or show stopped worktrees as still running.
This change makes project ownership explicit at the boundaries where state enters and leaves Agent Manager. Session lists, selections, tabs, reviews, diffs, PR actions, and status updates are accepted only for their owning project, while background projects keep their own cached state. Switching projects now restores the correct local or worktree target without allowing late responses from the previous project to overwrite it. Missing session statuses are treated as stopped, so activity indicators show a spinner only when a session has a known active status.
The result is stable project isolation during normal use and during rapid project or session switching. Each project keeps the sessions, tabs, review state, diffs, PR data, and activity indicators that belong to it.