Skip to content

Serve a hot-reloaded native model catalog for Codex - #397

Merged
fylorn merged 3 commits into
mainfrom
codex/codex-model-catalog
Nov 9, 2026
Merged

fylorn merged 3 commits into
mainfrom
codex/codex-model-catalog

Conversation

@fylorn

@fylorn fylorn commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex needs its native model catalog to populate the model picker. Add authenticated GET /codex/models?client_version=... while preserving the standard /v1/models response, and prepare Core 0.90.0 for the coordinated Lite release.

  • Project the shared live model directory, aliases, key permissions and manual capabilities on every read, including conditional requests. Re-authorize after upstream fetches so a concurrent reload cannot return an old account's metadata or permissions.
  • Preserve version-matched upstream instructions and tools where available, with conservative generic coding metadata for ordinary upstreams. Bound and coalesce native metadata fetches; isolate caches by resolved credentials, version, URL and proxy. Never forward the inbound gateway key.
  • Document one-time connection setup, hot reload, client caching and the 1 MiB limit. Keep loopback connection-refusal tests independent of native system proxies.
  • Update bundled SQLite to libsqlite3-sys 0.39.1 through rusqlite 0.41.1 for RUSTSEC-2026-0459. Storage and Core binary crates declare Rust 1.89; shared client crates retain their existing minimum. Protocol 58 and store schema 28 are unchanged.

Validation: the original implementation passed all 1,510 gateway tests, including 12 catalog integration cases, all-target gateway Clippy, formatting, message-code checks and 86 smoke checks. An isolated Codex CLI 0.166.0 probe showed changed models after hot reload with the same gateway process and unchanged client configuration. The final Core 0.90.0 tree passed complete macOS, Windows and Linux CI, real-binary smoke checks, shared protocol/type checks, enterprise compatibility, CLA and advisory checks in runs 42622727264 and 42622727529. Release-note tests and locked Cargo metadata validation pass locally.

Related to ThinkWatchProject/ThinkWatch-Lite#416. Lite #417 configures remote discovery during adoption and will pin both client crates and the bundled binary to the published Core 0.90.0 tag. No installed application or real client configuration is modified by this work.

@fylorn
fylorn marked this pull request as ready for review November 9, 2026 13:04
@fylorn
fylorn merged commit d84fb38 into main Nov 9, 2026
7 checks passed
@fylorn
fylorn deleted the codex/codex-model-catalog branch November 9, 2026 13:35
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant