claude-code-router/packages/core/test/unit/config
ezra-quemuel 24a4861aa6 fix(config): translate top-level provider protocol into a capability
Local-agent login imports (Codex API et al.) declare the provider protocol
at the top level of the payload (protocol: "openai_responses") and carry no
capabilities array. parseProviders dropped that field, so the saved provider
ended up with neither protocol nor capabilities and the gateway fell back to
the default openai_chat_completions adapter. For Responses-only backends
(chatgpt.com/backend-api/codex) every request then 404s against a
non-existent /chat/completions route.

Synthesize a single capability from the top-level protocol (and the
provider's base URL) when no explicit capabilities are configured, reusing
the existing protocol normalization used for capability items. Explicit
capabilities still win. Fixes #1619.
2026-07-31 17:24:39 -07:00
..
config-env-interpolation.test.mjs Refactor router internals and remove obsolete code 2026-07-15 06:39:29 +08:00
config-repository-backup-deduplication.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
config-repository-cleanup-retry.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
config-repository-existing-data-migration.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
config-repository-migration.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
legacy-json-preservation.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
legacy-json-selected-source.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
onboarding-state.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
plugin-config-migration.test.mjs feat: bundle Claude Design for desktop app 2026-07-26 18:09:01 +08:00
profile-legacy-sync.test.mjs Synchronize legacy profiles with global profile state 2026-07-29 20:25:49 +08:00
provider-protocol-capability.test.mjs fix(config): translate top-level provider protocol into a capability 2026-07-31 17:24:39 -07:00
theme-preference.test.mjs Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00