fix(agent-manager): route mode shortcuts through modal - #12796
Merged
Conversation
Contributor
Code Review SummaryStatus: 1 Issue Found | Recommendation: Optional cleanup before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (6 files in incremental diff)
Resolved since the previous review
Notes / assumptions
Fix these issues in Kilo Cloud Previous Review Summary (commit 20d1648)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 20d1648)Status: 3 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (10 files)
Notes / assumptions
Reviewed by claude-opus-5 · Input: 44 · Output: 10.6K · Cached: 1.6M Review guidance: REVIEW.md from base branch |
chrarnoldus
approved these changes
Aug 3, 2026
This was referenced Aug 5, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
…nager-mode-switching fix(agent-manager): route mode shortcuts through modal
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.
The Agent Manager New Worktree prompt has independent mode and model controls, but Cmd+. was always handled by the underlying chat session. This meant the visible modal selection could stay stale, and creating a worktree could use a different mode or model than the one shown in the form.
This change gives the New Worktree modal first ownership of the forward and reverse mode-cycle shortcuts while its New tab is active. Manual mode selection and keyboard cycling now share the same local transition, which resolves the selected mode's effective model and compatible reasoning variant without mutating the hidden chat session. Closing the modal or switching to Import restores the existing Agent Manager shortcut behavior.
A patch changeset records the user-visible fix.