Skip to content

fix(agent): use catalog metadata for model selector labels - #1221

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex-agent-model-alias-maple
Oct 23, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex-agent-model-alias-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

The Agent model selector currently displays raw IDs such as deepseek-v4-1-flash. Use metadata from the advanced /v1/models/catalog API for friendly labels in the composer button and dropdown, following Research's precedence: concrete models use short_name, then display_name; aliases use short_name, then label. Missing metadata falls back to the original ID.

The Rust SDK now retains these optional catalog fields. The app loads presentation metadata once alongside the existing model list, independently so a slow or unavailable catalog does not delay selection. Catalog presentation is fetched through the local controller when viewing a remote computer. Labels do not change saved IDs, task locking, defaults, available models, or auto-model routing.

Validation:

  • Agent pinned-Nix just ci: passed (format, all four Clippy configurations, warning-denied builds, workspace and headless tests). Runtime: 684 passed / 5 ignored; desktop: 816 passed / 2 ignored; headless: 224 passed / 2 ignored.
  • SDK pinned-Nix Rust format, all-feature Clippy, library tests (120 passed / 1 ignored), and warning-denied docs: passed. Local SDK/proxy dependency verification passed.
  • Regression coverage: server-supplied labels, alias precedence, missing/blank metadata, SDK compatibility with older catalog payloads, and existing selection/task-locking behavior.
  • git diff --check: passed.
  • Authenticated macOS native smoke passed in fresh MDE agent-label-smoke at e52e9c58b2198a65fc2fb2874c4e701da9b907fe, using linked Local OpenSecret/billing and the Local Pro fixture. Verified catalog labels in the composer and dropdown, DeepSeek selection/checkmark, layout, and persistence after quitting/relaunching. Models without catalog display metadata retain their IDs (observed for Safeguard and Voxtral). No inference or hosted-service validation performed.
  • Built the exact workspace app with the pinned Agent Nix environment. Debug packaging required a temporary script-only workaround for a shell here-string pipe hang; the tracked checkout remained unchanged and the ad hoc bundle signature/launch smoke passed.

The commit hook was skipped after both complete component gates passed, avoiding a repeat of their checks.

@AnthonyRonning AnthonyRonning changed the title fix(agent): show friendly model labels in the selector fix(agent): use catalog metadata for model selector labels Oct 23, 2026
@AnthonyRonning
AnthonyRonning merged commit 264560b into master Oct 23, 2026
50 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-agent-model-alias-maple branch October 23, 2026 03:47
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