Skip to content

fix: preserve imported providers and use provider model catalog - #1775

Open
k9ight000 wants to merge 2 commits into
BigPizzaV3:mainfrom
k9ight000:codex/provider-model-import-fix
Open

fix: preserve imported providers and use provider model catalog#1775
k9ight000 wants to merge 2 commits into
BigPizzaV3:mainfrom
k9ight000:codex/provider-model-import-fix

Conversation

@k9ight000

Copy link
Copy Markdown

What changed

  • Preserve existing CodexPlusPlus relay profiles when importing providers from CC Switch; append only new provider identities.
  • Fetch the active provider's model catalog from its /v1/models endpoint.
  • Stop mixing provider models with the configured model, local model catalog, or frontend custom-model fallback.
  • Add regression coverage for provider-only model catalogs and non-overwriting imports.

Validation

  • cargo test -p codex-plus-core --test model_catalog — 7 passed.
  • cargo test -p codex-plus-core --lib ccs_import::tests — 3 passed.
  • cargo test -p codex-plus-core --test cdp_bridge — 77 passed.
  • node --check assets/inject/renderer-inject.js passed.
  • The serial core test run passed 318 tests; one unrelated Windows symlink test requires the SeCreateSymbolicLinkPrivilege privilege in this environment.

This branch was scanned before publishing; no credentials, private keys, local user paths, or local settings databases are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant