fix(vscode): prevent duplicate permission prompts in Agent Manager - #13977
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summaries (3 snapshots, latest commit 5326d16)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 5326d16)Status: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Previous review (commit ae1a8c3)Status: 2 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (1 files)
Previous review (commit e09250a)Status: 2 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (17 files)
Reviewed by grok-4.6 · Input: 244.6K · Output: 17.8K · Cached: 688.9K Review guidance: REVIEW.md from base branch |
WebReflection
enabled auto-merge
September 10, 2026 08:37
marius-kilocode
approved these changes
Sep 10, 2026
This was referenced Sep 11, 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.
What Problem This Solves
Agent Manager can mount a writable parent chat and a persistent readonly subagent inspector at the same time. The shared
VSCodeProviderfans extension messages out to every nestedSessionProvider, while the readonly inspector previously still rendered actionablePermissionDockcontrols. A single permission could therefore appear in multiple docks and be submitted concurrently. FIFO ordering, stale callbacks, recovery races, and prompt-scoped popovers could also leave the wrong request active or submit against the wrong session.PR #13955 is related at the symptom level, but it fixes a separate TUI path: session eviction was dropping one-shot permission and question asks from the TUI sync store. It does not touch
packages/kilo-vscode, nested webview providers, Agent Manager ownership, or shared extension-host response submission, so it does not replace this change.Why This Change Was Made
KiloConnectionServiceboundary so multiple providers await one save/reply sequence and each receives the same terminal result.User Impact
interactivePrompts={false}.Evidence
packages/kilo-vscode/tests/unit/permission-recovery.test.ts: unknown routes issue no SDK call, concurrent providers share one save/reply sequence, and recovery skips claimed IDs.bun test tests/unit/permission-queue.test.ts tests/unit/permission-recovery.test.tspassed with 38 tests.bun run format:check,bun run check-kilocode-change, andgit diff --check.solid-js,vscode,happy-dom, andesbuild; lint and Knip binaries are also unavailable.Checklist