codex - 💡(How to fix) Fix Improve subagent provider visibility [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17312Fetched 2026-04-11 06:18:01
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2renamed ×1

Error Message

  • If switching providers invalidates or reduces the usefulness of cached thread content, that is acceptable, but the UI should warn the user clearly before the switch.

Root Cause

Provider/model routing is now a real workflow concern:

  • main agent on one provider
  • subagents on a cheaper provider
  • local models for some tasks
  • remote frontier models only where needed

The app should support this explicitly instead of requiring low-level config work and log inspection.

RAW_BUFFERClick to expand / collapse

What feature would you like to see?

The Codex app currently makes provider selection and subagent provider behavior hard to control and hard to understand in the UI.

I would like three related improvements:

  1. Add an easy provider picker in the Codex app UI for chat threads.

    • This should make it possible to switch a thread from one provider to another without editing TOML.
    • If switching providers invalidates or reduces the usefulness of cached thread content, that is acceptable, but the UI should warn the user clearly before the switch.
  2. Add a global way to choose a different provider for spawned agents.

    • This should be supported in config.toml.
    • Even better, it should also be exposed in the Codex app settings UI.
    • This is useful because it often makes sense to keep the main thread on one provider while sending subagents to a cheaper provider or a local model.
  3. Fix the Codex app UI so subagents show the correct effective provider/model.

    • Right now the subagent UI can show the provider/model of the calling agent even when the subagent is actually running on a different provider.
    • This makes provider debugging much harder and creates false confidence about what is being used.

Why this matters

Provider/model routing is now a real workflow concern:

  • main agent on one provider
  • subagents on a cheaper provider
  • local models for some tasks
  • remote frontier models only where needed

The app should support this explicitly instead of requiring low-level config work and log inspection.

Concrete example

I configured subagents to use Azure with gpt-5.4-mini while keeping the main agent on OpenAI.

The authoritative child session metadata recorded:

  • model_provider = "azure"
  • model = "gpt-5.4-mini"

But the spawned subagents self-reported and appeared in the UI as OpenAI / GPT-5.

That indicates the effective runtime configuration and the displayed provider/model are diverging.

Suggested behavior

  • Thread-level provider picker in the app UI.
  • Global default provider/model for subagents in config, plus an app settings surface for the same.
  • Subagent UI should display the effective resolved provider/model of the spawned session, not inherit the parent thread display.
  • If provider switching affects cache reuse or thread continuity, show an explicit warning before applying the change.

Additional information

This is partly a feature request and partly a correctness/UI bug:

  • feature request: easier provider selection in app/settings
  • correctness bug: subagent provider/model display does not match actual spawned-session metadata

extent analysis

TL;DR

Implement a thread-level provider picker in the Codex app UI and update the subagent UI to display the effective resolved provider/model.

Guidance

  • Introduce a provider selection dropdown in the chat thread UI to allow users to switch providers without editing TOML.
  • Add a global default provider/model setting for subagents in config.toml and expose it in the Codex app settings UI.
  • Update the subagent UI to display the actual provider/model used by the spawned session, rather than inheriting from the parent thread.
  • Implement a warning system to notify users when switching providers may affect cache reuse or thread continuity.

Example

No explicit code example is provided, but the solution likely involves updating the UI components and backend logic to handle provider switching and subagent configuration.

Notes

The solution requires careful consideration of cache reuse and thread continuity when switching providers. Additionally, the implementation should ensure that the subagent UI accurately reflects the actual provider/model used by the spawned session.

Recommendation

Apply a workaround by introducing a thread-level provider picker and updating the subagent UI, as this addresses both the feature request and correctness bug aspects of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING