agent host: update to AHP 0.9.0 - #333275
Merged
Merged
Conversation
Updates VS Code to the AHP 0.9.0 protocol and Rust crates. - Renames the automation catalog state and adopts the entries collection. - Treats normalized automation channel URIs as equivalent on both ends. - Updates generated protocol types and handwritten automation consumers. - Updates the Rust AHP dependencies and new request fields. (Commit message generated by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Balanced
Findings: 2
New issues introduced by this change (3)
| Severity | Finding |
|---|---|
src/vs/platform/agentHost/common/state/protocol/version/registry.ts — The client still advertises protocol 0.8, but this update removes the 0.8 automation wire contract:… |
|
src/vs/platform/agentHost/common/state/sessionState.ts — Checking only the scheme makes every URI such as ahp-automations://other or… |
|
src/vs/platform/agentHost/node/agentHostAutomationService.ts — This keeps the persisted storage format at version 1 while changing catalog from `{ automations:… |
What changed in this PR
Updates VS Code and its CLI to AHP 0.9.0, including automation protocol schema and URI handling.
Changes:
- Renames automation catalogue state and adopts
entries. - Handles normalized automation catalogue URIs.
- Updates generated protocol definitions, Rust crates, consumers, and tests.
| File | Description |
|---|---|
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remoteAgentHostSessionsProvider.test.ts |
Updates remote-provider mocks. |
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts |
Updates local-provider mocks. |
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostAutomationStore.test.ts |
Updates automation-store tests. |
src/vs/sessions/contrib/providers/agentHost/browser/agentHostAutomationStore.ts |
Adopts the new automation schema and URI matching. |
src/vs/sessions/contrib/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md |
Documents the new catalogue URI. |
src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts |
Tests normalized catalogue channels. |
src/vs/platform/agentHost/test/node/agentHostStorageService.test.ts |
Updates stored catalogue fixtures. |
src/vs/platform/agentHost/test/node/agentHostAutomationService.test.ts |
Updates automation service tests. |
src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts |
Tests normalized client subscriptions. |
src/vs/platform/agentHost/test/common/agentSubscription.test.ts |
Updates subscription schema and routing tests. |
src/vs/platform/agentHost/node/protocolServerHandler.ts |
Routes URI-equivalent automation actions. |
src/vs/platform/agentHost/node/agentService.ts |
Accepts equivalent catalogue channel forms. |
src/vs/platform/agentHost/node/agentHostStateManager.ts |
Adopts the renamed catalogue state. |
src/vs/platform/agentHost/node/agentHostAutomationService.ts |
Migrates automation logic to entries. |
src/vs/platform/agentHost/common/state/sessionState.ts |
Defines the new catalogue URI and matcher. |
src/vs/platform/agentHost/common/state/protocol/version/registry.ts |
Sets protocol version 0.9.0. |
src/vs/platform/agentHost/common/state/protocol/common/state.ts |
Updates snapshot state types. |
src/vs/platform/agentHost/common/state/protocol/common/commands.ts |
Updates automation capability contracts. |
src/vs/platform/agentHost/common/state/protocol/channels-session/state.ts |
Updates automation origin references. |
src/vs/platform/agentHost/common/state/protocol/channels-automation/state.ts |
Renames catalogue and entry types. |
src/vs/platform/agentHost/common/state/protocol/channels-automation/reducer.ts |
Reduces the new entries collection. |
src/vs/platform/agentHost/common/state/protocol/channels-automation/commands.ts |
Updates automation command contracts. |
src/vs/platform/agentHost/common/state/protocol/channels-automation/actions.ts |
Updates automation action types. |
src/vs/platform/agentHost/common/state/protocol/channels-automation-run/state.ts |
Updates automation-entry references. |
src/vs/platform/agentHost/common/state/protocol/.ahp-version |
Records the synchronized AHP revision. |
src/vs/platform/agentHost/common/state/agentSubscription.ts |
Handles equivalent catalogue channels. |
cli/src/commands/agent.rs |
Supplies the new authentication metadata field. |
cli/src/commands/agent_ps.rs |
Supplies new list/session fields. |
cli/src/commands/agent_discovery.rs |
Supplies list-session metadata. |
cli/Cargo.toml |
Updates AHP dependencies. |
cli/Cargo.lock |
Locks AHP 0.9.0 dependencies. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
roblourens
previously approved these changes
Aug 28, 2026
Keeps the AHP 0.9 update compatible with supported hosts and stored data. - Excludes AHP 0.8 from client negotiation because its automation wire shape differs. - Migrates version 1 automation catalogs from automations to entries. - Writes migrated automation storage with version 2. - Adds regression coverage for protocol negotiation and storage migration. (Commit message generated by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserves the existing durable automation format while adopting the AHP 0.9 runtime model. - Keeps stored catalogs in the version 1 automations collection. - Maps stored automations to protocol entries when the service loads. - Maps protocol entries back to automations before persistence. - Updates storage fixtures to verify the stable format. (Commit message generated by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Base:
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ladislau Szomoru (lszomoru)
previously approved these changes
Aug 31, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
roblourens
approved these changes
Aug 31, 2026
Vritant Bhardwaj (vritant24)
approved these changes
Aug 31, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 31, 2026
Don Jayamanne (DonJayamanne)
approved these changes
Aug 31, 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.


agent host: update to AHP 0.9.0
Updates VS Code to the AHP 0.9.0 protocol and Rust crates.
(Commit message generated by Copilot)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com