Repository navigation
Read profile model suggestions from the installed agent - #1183
Merged
Merged
Conversation
Codex and Claude Code cache their model list in their home folder. The profile editor now reads that list, keeps the agent's order, shows the first models at the top level and the rest under More Models, and falls back to the built-in list when no cache is readable. Reasoning effort suggestions follow the selected model.
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.
Summary
The Model menu in the Agent Profile editor was a hardcoded list that needed a manual update for each new model. For Codex and Claude Code, it now reads the model list that the installed agent caches:
$CODEX_HOME/models_cache.json(the same JSON ascodex debug models). Shows thelistmodels inpriorityorder.$CLAUDE_CONFIG_DIR/cache/model-catalog/*-cc.json. Uses the most recently fetched account file. Shows themainsection first, then the overflow models.ultraeffort).gpt-6-lunadoes not offerultra, andclaude-haiku-4-5-20251001offers none.Other agents are out of scope for now: their model lists come only from CLI subcommands (some need the network or a login) or from user configuration, and the output is not clean enough yet.
The suggestion control is now a
Menuwith inline pickers, so it can hold the submenu.Verification
make check,make build-appAgentModelCatalogTests(13 new),AgentRuntimeAdapterTests,AgentProfileEditorFeatureTests: 42 tests pass