Merge pull request #333795 from microsoft/agentHost/release-ahp-0.9.0

agentHost: advertise AHP 0.9.0 on release
This commit is contained in:
Connor Peet
2026-09-01 09:55:51 -07:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
@@ -16,7 +16,7 @@ import type { ServerNotificationMap } from '../messages.js';
*
* Formatted as a [SemVer](https://semver.org) `MAJOR.MINOR.PATCH` string.
*/
export const PROTOCOL_VERSION = '1.0.0';
export const PROTOCOL_VERSION = '0.9.0';
/**
* Every protocol version a client built from this source tree is willing
@@ -36,6 +36,7 @@ export const PROTOCOL_VERSION = '1.0.0';
*/
export const SUPPORTED_PROTOCOL_VERSIONS: readonly string[] = Object.freeze([
'1.0.0',
'0.9.0',
'0.8.0',
'0.7.0',
'0.6.0',
@@ -126,7 +127,7 @@ export const ACTION_INTRODUCED_IN: { readonly [K in StateAction['type']]: string
[ActionType.ChatTurnComplete]: '0.4.0',
[ActionType.ChatTurnCancelled]: '0.4.0',
[ActionType.ChatError]: '0.4.0',
[ActionType.ChatTurnResume]: '1.0.0',
[ActionType.ChatTurnResume]: '0.9.0',
[ActionType.ChatActivityChanged]: '0.5.0',
[ActionType.ChatWorkingDirectorySet]: '0.7.0',
[ActionType.ChatWorkingDirectoryRemoved]: '0.7.0',
@@ -1084,7 +1084,7 @@ suite('AgentHostProtocolClient', () => {
'vscode.clientDevDeviceId': 'client-dev-device-id',
},
});
assert.strictEqual(params.protocolVersions[0], PROTOCOL_VERSION);
assert.strictEqual(params.protocolVersions.includes(PROTOCOL_VERSION), true);
// Reply with a successful handshake so `connect()` resolves and the
// test can finish cleanly.
@@ -416,7 +416,7 @@ export function defineProtocolContractTests(context: IAgentHostE2ETestContext):
channel: ROOT_STATE_URI,
protocolVersions: [PROTOCOL_VERSION],
clientId: `server-identity-${config.provider}`,
clientInfo: { name: 'agent-host-e2e', version: '1.0.0' },
clientInfo: { name: 'agent-host-e2e', version: PROTOCOL_VERSION },
});
assert.deepStrictEqual({