Repository navigation
Description
Summary
In the dashboard's Shadow call intercept settings, the "Replacement model" dropdown persists the bare model id (gpt-5.6-sol) instead of the full namespaced id (subapi/gpt-5.6-sol) when a routed model is selected. The saved bare id then routes shadow calls to the built-in openai provider, silently breaking interception for users of custom/namespaced providers. On reload the dropdown also "jumps" to the native model with the same id.
Client or integration
Codex Desktop (embedded app-server 0.147.0-alpha.1.2) + Web dashboard (GUI) — macOS
Area
Shadow call intercept / GUI settings
Reproduction
- Open dashboard (
http://localhost:10100) → Shadow call intercept settings. - In "Replacement model", select a namespaced model such as
subapi/gpt-5.6-sol. - Save, then inspect
~/.opencodex/config.json→shadowCallIntercept.modelis"gpt-5.6-sol"(bare), not"subapi/gpt-5.6-sol". - Reload the page: the dropdown no longer shows the selected namespaced model (bare value matches the native OpenAI entry with the same id → UI jumps to a different model).
Expected behavior
Selecting subapi/gpt-5.6-sol should persist shadowCallIntercept.model = "subapi/gpt-5.6-sol" — the full namespaced id. The management API already accepts any string, so this is purely a GUI value/label mismatch.
Actual behavior
shadowCallIntercept.model is saved as the bare id (gpt-5.6-sol), which routes shadow calls to the built-in openai provider (causing 502/429 failures when chatgpt.com is unreachable), and the dropdown visually jumps to the native model with the same id on reload.
Version
- opencodex 2.10.1 (also present in 2.10.0)
- Codex Desktop 26.730.61639 / embedded CLI 0.147.0-alpha.1.2
Operating system
macOS arm64 (Apple Silicon)
Root cause
In the bundled GUI (gui/dist/assets/index-*.js), the shadow-call settings component builds the dropdown as:
options: [{ value: '', label: '—' }, ...c.map(e => ({
value: e.id, // ← bare id
label: `${e.provider}/${e.id}` // ← namespaced label
}))]value uses the bare e.id while label uses the namespaced id, so saving writes the bare id and reload matches the wrong option.
Suggested fix
Use the full namespaced id for the option value, matching the label:
options: [{ value: '', label: '—' }, ...c.map(e => ({
value: `${e.provider}/${e.id}`,
label: `${e.provider}/${e.id}`
}))]Verified locally as a one-line patch on 2.10.1: the dashboard then persists the full subapi/gpt-5.6-sol and interception works correctly.
Workaround
Set shadowCallIntercept.model directly in ~/.opencodex/config.json (the management API accepts any string model id).
Activity
github-actions commentedon Aug 5, 2026
Automated translation bookkeeping — detected language: unknown.
lidge-jun commentedon Aug 6, 2026
Closing as a duplicate of #1075 — same title, same body, same author, filed 38 minutes apart. The report itself is confirmed at code level and is being fixed: the dashboard's shadow-call select saves the bare model id (
gui/src/pages/dashboard-overview-sections.tsx:363usesvalue: m.idwhile the label isprovider/id), whereas the Models-page select already saves the canonical namespaced id. Tracking continues on #1075; a fix PR againstdevis in progress.