diff --git a/apps/vscode-e2e/src/suite/tools/execute-command-native.test.ts b/apps/vscode-e2e/src/suite/tools/execute-command-native.test.ts index b4b5ec2e35..c3888308ba 100644 --- a/apps/vscode-e2e/src/suite/tools/execute-command-native.test.ts +++ b/apps/vscode-e2e/src/suite/tools/execute-command-native.test.ts @@ -44,6 +44,12 @@ function createVerificationState(): NativeProtocolVerification { function assertNativeProtocolUsed(verification: NativeProtocolVerification, testName: string): void { assert.ok(verification.apiProtocol !== null, `[${testName}] apiProtocol should be set in api_req_started message.`) + assert.strictEqual( + verification.hasNativeApiProtocol, + true, + `[${testName}] Native API protocol should be used. Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`, + ) + assert.strictEqual(verification.responseIsNotXML, true, `[${testName}] Response should NOT contain XML tool tags.`) assert.strictEqual( diff --git a/apps/vscode-e2e/src/suite/tools/list-files-native.test.ts b/apps/vscode-e2e/src/suite/tools/list-files-native.test.ts index 4977230776..255a85c226 100644 --- a/apps/vscode-e2e/src/suite/tools/list-files-native.test.ts +++ b/apps/vscode-e2e/src/suite/tools/list-files-native.test.ts @@ -44,6 +44,12 @@ function createVerificationState(): NativeProtocolVerification { function assertNativeProtocolUsed(verification: NativeProtocolVerification, testName: string): void { assert.ok(verification.apiProtocol !== null, `[${testName}] apiProtocol should be set in api_req_started message.`) + assert.strictEqual( + verification.hasNativeApiProtocol, + true, + `[${testName}] Native API protocol should be used. Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`, + ) + assert.strictEqual(verification.responseIsNotXML, true, `[${testName}] Response should NOT contain XML tool tags.`) assert.strictEqual( diff --git a/apps/vscode-e2e/src/suite/tools/read-file-native.test.ts b/apps/vscode-e2e/src/suite/tools/read-file-native.test.ts index 9a9671d727..32cd2cf49c 100644 --- a/apps/vscode-e2e/src/suite/tools/read-file-native.test.ts +++ b/apps/vscode-e2e/src/suite/tools/read-file-native.test.ts @@ -45,6 +45,12 @@ function createVerificationState(): NativeProtocolVerification { function assertNativeProtocolUsed(verification: NativeProtocolVerification, testName: string): void { assert.ok(verification.apiProtocol !== null, `[${testName}] apiProtocol should be set in api_req_started message.`) + assert.strictEqual( + verification.hasNativeApiProtocol, + true, + `[${testName}] Native API protocol should be used. Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`, + ) + assert.strictEqual(verification.responseIsNotXML, true, `[${testName}] Response should NOT contain XML tool tags.`) assert.strictEqual(