fix(claude): update spoofed cli version to 2.1.280 to support Opus 5.5

Anthropic's newly released Claude Opus 5.5 model strictly requires
claude-cli version 2.1.280 or newer. Spoofing the older 2.1.258
version results in an HTTP 400 `claude_code_version_too_old` error.

This commit updates the hardcoded `CLAUDE_CLI_VERSION` in
`open-sse/providers/shared.js` and aligns the corresponding unit
tests and baselines to bypass Anthropic's version gating.
This commit is contained in:
Ilhom (MBP M5 Pro)
2026-09-23 12:15:34 +07:00
parent e7c269b8c9
commit 8403576095
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ import { CLAUDE_TOOL_SUFFIX } from "../../open-sse/config/appConstants.js";
it("advertises a Claude Code version accepted by Fable 5.1", () => {
const body = applyCloaking({ messages: [] }, "sk-ant-oat-test", "session-id");
expect(body.system[0].text).toMatch(/^x-anthropic-billing-header: cc_version=2.1.258\./);
expect(body.system[0].text).toMatch(/^x-anthropic-billing-header: cc_version=2.1.280\./);
});
describe("cloakClaudeTools", () => {