fix(agent-manager): preserve side panels across context switches - #13610
Merged
marius-kilocode merged 6 commits intoSep 1, 2026
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summaries (3 snapshots, latest commit 8fdc1bd)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8fdc1bd)Status: No Issues Found | Recommendation: Merge Files Reviewed (14 files)
Previous review (commit b5ee423)Status: No Issues Found | Recommendation: Merge Files Reviewed (7 files)
Previous review (commit cfc3d82)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (20 files)
Reviewed by grok-4.6 · Input: 103.9K · Output: 8.5K · Cached: 290.8K Review guidance: REVIEW.md from base branch |
marius-kilocode
force-pushed
the
persist-subagent-sidebar-context-across-worktrees
branch
from
August 31, 2026 13:47
cfc3d82 to
b5ee423
Compare
marius-kilocode
enabled auto-merge
August 31, 2026 13:57
marius-kilocode
disabled auto-merge
August 31, 2026 15:09
marius-kilocode
enabled auto-merge
September 1, 2026 09:17
WebReflection
approved these changes
Sep 1, 2026
marius-kilocode
deleted the
persist-subagent-sidebar-context-across-worktrees
branch
September 1, 2026 09:21
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.
What Problem This Solves
Switching from Local Diff to another worktree's Subagents could discard the selected panel. Edit previews could also disappear when returning to a session.
Why This Change Was Made
Store panel selection with its owner: Diff, PR, Terminal, and Documents belong to the worktree; Subagents, Edit Preview, and Browser belong to the session. Temporary hiding must not clear that selection.
The scope excludes PR-cache and Diff-scope routing changes. Regression coverage is limited to five focused cases rather than a broad matrix.
User Impact
Returning restores the selected panel and session preview. Explicitly closed panels stay closed. Setup events and Review/History visibility do not erase another context's panel. State is retained within the current Agent Manager webview, not across restarts.
Evidence