Skip to content

agent host: update to AHP 0.9.0 - #333275

Merged
Connor Peet (connor4312) merged 8 commits into
mainfrom
connor4312/ahp-0.9
Aug 31, 2026
Merged

agent host: update to AHP 0.9.0#333275
Connor Peet (connor4312) merged 8 commits into
mainfrom
connor4312/ahp-0.9

Conversation

@connor4312

Copy link
Copy Markdown
Member

agent host: update to AHP 0.9.0

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

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>
Copilot AI balanced review requested due to automatic review settings August 28, 2026 22:37
@connor4312
Connor Peet (connor4312) enabled auto-merge (squash) August 28, 2026 22:37

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.

Copilot review overview

Review tier: Balanced
Findings: 2 High severity · 1 Medium severity

New issues introduced by this change (3)
Severity Finding
High severity 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:…
Medium severity src/​vs/​platform/​agentHost/​common/​state/​sessionState.ts — Checking only the scheme makes every URI such as ahp-automations://other or…
High severity 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.

Comment thread src/vs/platform/agentHost/common/state/protocol/version/registry.ts
Comment thread src/vs/platform/agentHost/common/state/sessionState.ts
Comment thread src/vs/platform/agentHost/node/agentHostAutomationService.ts Outdated
roblourens
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>
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Base: bcec3677 Current: 33c55b1b

No screenshot changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@connor4312
Connor Peet (connor4312) merged commit 40c9634 into main Aug 31, 2026
54 of 55 checks passed
@connor4312
Connor Peet (connor4312) deleted the connor4312/ahp-0.9 branch August 31, 2026 21:17
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Aug 31, 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.

7 participants