fix: sync remote sessions across extension surfaces - #11351
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (16 files)
Reviewed by deepseek-v4-pro-20260423 · 566,553 tokens Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
June 17, 2026 13:35
johnnyeric
approved these changes
Jun 17, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
fix: sync remote sessions across extension surfaces
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.
Remote control was only fully wired into the sidebar. Running
/remotefrom Agent Manager silently did nothing because its embedded provider did not receive the shared remote status service, and Agent Manager only reported its selected session while omitting other open tabs. Opening a sidebar session at the same time could also leave that session unregistered or let overlapping heartbeat snapshots arrive out of order, causing one surface's session set to replace the other remotely.This injects the extension-scoped remote service into Agent Manager and reports every real Agent Manager tab by session ID, excluding pending drafts and preserving multiple sessions in the same worktree. New sidebar sessions register as focused immediately, while closing Agent Manager clears its registrations.
Viewed-session updates and WebSocket heartbeats are serialized and coalesced so sidebar, editor, and Agent Manager state is combined into one ordered remote snapshot. The result is one shared remote connection that keeps all concurrently open extension sessions available without one surface dropping another.