diff --git a/src/integrations/claude-code/__tests__/streaming-client.spec.ts b/src/integrations/claude-code/__tests__/streaming-client.spec.ts index 8ccb108827..3c4052e94e 100644 --- a/src/integrations/claude-code/__tests__/streaming-client.spec.ts +++ b/src/integrations/claude-code/__tests__/streaming-client.spec.ts @@ -14,11 +14,12 @@ describe("Claude Code Streaming Client", () => { expect(CLAUDE_CODE_API_CONFIG.defaultBetas).toContain("claude-code-20250219") expect(CLAUDE_CODE_API_CONFIG.defaultBetas).toContain("oauth-2025-04-20") expect(CLAUDE_CODE_API_CONFIG.defaultBetas).toContain("interleaved-thinking-2025-05-14") - expect(CLAUDE_CODE_API_CONFIG.defaultBetas).toContain("fine-grained-tool-streaming-2025-05-14") + // Note: fine-grained-tool-streaming removed for OAuth compatibility }) test("should have correct user agent", () => { - expect(CLAUDE_CODE_API_CONFIG.userAgent).toMatch(/^Roo-Code\/\d+\.\d+\.\d+$/) + // User-Agent must match Claude CLI format for OAuth tokens to be accepted + expect(CLAUDE_CODE_API_CONFIG.userAgent).toMatch(/^claude-cli\/\d+\.\d+\.\d+ \(external, cli\)$/) }) })