Repository navigation
app-server: profile-based model selector for custom providers - #1
Open
aristotaloss wants to merge 2 commits into
Open
aristotaloss wants to merge 2 commits into
aristotaloss wants to merge 2 commits into
Conversation
added 2 commits
August 28, 2026 08:38
Profiles ([profiles.<name>] in config.toml or <name>.config.toml in CODEX_HOME) now appear as model/list entries so desktop/app clients get a working model selector for custom providers without hand-writing a model catalog. - profiles.rs: discovery (legacy table + profile files) and expansion - models.rs: synthesize picker presets from profiles - thread/start: expand a selected profile into model + model_provider (+ model_reasoning_effort via request overrides) - turn/settings/update, thread/settings/update: expand model/effort; reject cross-provider profiles with guidance since providers are fixed per thread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Config-defined profiles now show up in the GUI model picker — this is the model selector for custom providers that upstream's desktop app doesn't expose.
Profiles come from either source:
or as profile layer files:
~/.codex/chinaland.config.tomlwith the same keys.How it works
model/listappends one entry per profile (name = display name, description shows the realmodel · providerroute). Real catalog models always win on name collision.thread/startexpands a selected profile name into its realmodel+model_provider(+model_reasoning_effortvia request overrides if the profile sets one). Full provider switch works for new threads.turn/settings/updateandthread/settings/updateexpand the model too, but reject profiles routing to a different provider with a clear error (providers are fixed per thread).The desktop GUI already renders any non-hidden
model/listentry in its picker, so no renderer patch is needed.Verification
cargo check -p codex-app-server— cleancargo check --tests -p codex-app-server— clean (existing suite type-checks against the changes)cargo testexecution not run: the monolithictests/all.rstarget OOMs (SIGKILL at link) in a 45GB sandbox. Needs a beefier runner or CI.codex-binariesworkflow bundled via bitgate/CodexDesktop-Rebuild)Notes
codex-binariesworkflow on this branch builds CLI binaries per platform into a rollingfork-binariesrelease; the desktop fork consumes them throughCODEX_VENDOR_BIN/vendor/codex/<triple>/(build: vendor codex binary from bitgate/codex fork CodexDesktop-Rebuild#1).