From dc48e00fadd02bf8cf666db4fc868aebb28cfc38 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sun, 11 Jan 2026 17:33:29 +0000 Subject: [PATCH] fix(claude-code): remove Roo Code Cloud changes and update tests - Rebased on main to remove unrelated terms.md changes - Updated streaming-client tests to match OAuth compatibility changes: - Removed expectation for fine-grained-tool-streaming beta header - Updated userAgent regex to match claude-cli format --- .../claude-code/__tests__/streaming-client.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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\)$/) }) })