Skip to content

fix: improve connection registration logic in startAgentHost#320032

Merged
DonJayamanne merged 1 commit into
mainfrom
don/prime-zebra
Jun 5, 2026
Merged

fix: improve connection registration logic in startAgentHost#320032
DonJayamanne merged 1 commit into
mainfrom
don/prime-zebra

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 5, 2026 01:31
@DonJayamanne DonJayamanne self-assigned this Jun 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts startAgentHost’s utility-process connection handling so that reverse-RPC filesystem authority registration is applied not only to newly added MessagePort connections but also to connections that already exist when the agent host initializes.

Changes:

  • Refactors connection→authority registration into a shared registerConnection helper.
  • Registers the helper for future connections (onDidAddConnection).
  • Backfills registration for already-established connections by iterating server.connections at startup.
Show a summary per file
File Description
src/vs/platform/agentHost/node/agentHostMain.ts Ensures existing UtilityProcessServer connections get their client filesystem authorities registered at startup, not only on subsequent connection events.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/vs/platform/agentHost/node/agentHostMain.ts
@DonJayamanne DonJayamanne marked this pull request as ready for review June 5, 2026 01:42
@DonJayamanne DonJayamanne enabled auto-merge (squash) June 5, 2026 01:42
@DonJayamanne DonJayamanne merged commit abb6325 into main Jun 5, 2026
26 checks passed
@DonJayamanne DonJayamanne deleted the don/prime-zebra branch June 5, 2026 02:58
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants