Skip to content

[Bug] Shadow call intercept model dropdown saves bare id for namespaced providers, silently breaking interception #1078

Closed as not planned

Description

@ShannwYang

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

  1. Open dashboard (http://localhost:10100) → Shadow call intercept settings.
  2. In "Replacement model", select a namespaced model such as subapi/gpt-5.6-sol.
  3. Save, then inspect ~/.opencodex/config.json → shadowCallIntercept.model is "gpt-5.6-sol" (bare), not "subapi/gpt-5.6-sol".
  4. 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

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: unknown.

  2. added
    bug
    on Aug 5, 2026
  3. lidge-jun commented on Aug 6, 2026

    @lidge-jun
    Owner

    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:363 uses value: m.id while the label is provider/id), whereas the Models-page select already saves the canonical namespaced id. Tracking continues on #1075; a fix PR against dev is in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions