Skip to content

agentHost: preserve local IPC tool calls#326406

Merged
connor4312 merged 3 commits into
mainfrom
connor/fix-local-ipc-tool-timeout
Jul 19, 2026
Merged

agentHost: preserve local IPC tool calls#326406
connor4312 merged 3 commits into
mainfrom
connor/fix-local-ipc-tool-timeout

Conversation

@connor4312

Copy link
Copy Markdown
Member

What changed

  • Only arm client tool-call disconnect timeouts for clients observed in the protocol server's disconnected grace state.
  • Leave tool calls from unknown client IDs pending because they may belong to another transport such as local IPC.
  • Update disconnect/reconnect coverage and add a regression test for active local IPC tool calls.

Validation

  • npm run typecheck-client
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts (68 passing)
  • npm run precommit

Only arm protocol disconnect timeouts for clients that this server has observed disconnecting. Unknown client IDs may belong to local IPC and must remain pending.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 17, 2026 20:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Preserves local IPC-owned tool calls by restricting disconnect timeouts to known disconnected protocol clients.

Changes:

  • Ignore pending tool calls from unknown client IDs.
  • Update disconnect/reconnect tests and add local IPC regression coverage.
Show a summary per file
File Description
src/vs/platform/agentHost/node/protocolServerHandler.ts Limits orphan timeouts to clients in protocol grace state.
src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts Updates timeout tests and covers active local IPC calls.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

connor4312 and others added 2 commits July 17, 2026 13:55
Include the required turn start timestamp after updating the branch to current main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@connor4312
connor4312 merged commit f4e18ff into main Jul 19, 2026
29 checks passed
@connor4312
connor4312 deleted the connor/fix-local-ipc-tool-timeout branch July 19, 2026 03:32
@vs-code-engineering vs-code-engineering Bot added this to the 1.130.0 milestone Jul 19, 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