diff --git a/tests/unit/cc-compatible-provider.test.ts b/tests/unit/cc-compatible-provider.test.ts index def57d8c39..751e21e9f9 100644 --- a/tests/unit/cc-compatible-provider.test.ts +++ b/tests/unit/cc-compatible-provider.test.ts @@ -808,7 +808,12 @@ test("provider-nodes create route rejects CC mode when feature flag is disabled" headers: { "Content-Type": "application/json" }, body: JSON.stringify({ name: "Hidden CC", - prefix: "cc", + // #93da24cd7 reserved-prefix guard: "cc" is the built-in `claude` + // registry alias, so a compatible node created with it would never be + // reachable at runtime and is now rejected (400) at the write path. + // These cases are about the CC feature flag / dedicated id prefix, not + // about the operator-chosen prefix, so use a non-reserved one. + prefix: "cc-proxy", baseUrl: "https://proxy.example.com/v1", type: "anthropic-compatible", compatMode: "cc", @@ -828,7 +833,12 @@ test("provider-nodes create route creates CC node with dedicated prefix when ena headers: { "Content-Type": "application/json" }, body: JSON.stringify({ name: "Hidden CC", - prefix: "cc", + // #93da24cd7 reserved-prefix guard: "cc" is the built-in `claude` + // registry alias, so a compatible node created with it would never be + // reachable at runtime and is now rejected (400) at the write path. + // These cases are about the CC feature flag / dedicated id prefix, not + // about the operator-chosen prefix, so use a non-reserved one. + prefix: "cc-proxy", baseUrl: "https://proxy.example.com/v1/messages?beta=true", type: "anthropic-compatible", compatMode: "cc",