[Bug]: Subagent thread bottom bar (ProviderSubagentBar) displays parent thread's model and effort instead of actual subagent configuration #17694
Before submitting#
- I searched existing issues and did not find an exact duplicate. (Follow-up to #15250 and #15214, specifically focusing on the client UI presentation in
ProviderSubagentBar). - I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Start a parent thread using
GPT-6.1-SolwithExtra Highreasoning effort (gpt-6.1-sol / xhigh). - Spawn a native Codex subagent specifying
gpt-6-lunawithmaxreasoning effort. - Wait for the subagent to complete its run.
- Open the dedicated thread view of the spawned subagent in T3 Code.
- Inspect the bottom status bar (
ProviderSubagentBar).
Expected behavior#
The bottom status bar of the subagent view should show the actual model and reasoning effort configured for and executing the subagent:
GPT-6-Luna Max Completed in 1m 15s Runs on its own
Actual behavior#
The status bar displays the parent thread's model and effort instead:
GPT-6.1-Sol Extra High Completed in 1m 15s Runs on its own
Investigation & Root Cause#
Inspecting the runtime state and databases reveals the breakdown:
- Codex execution truth:
- In
~/.codex/state_5.sqliteand the rollout.jsonlsession file:{ "model": "gpt-6-luna", "reasoning_effort": "max", "thread_source": "subagent" }
- In
- T3 projection state:
- In
orchestration_v2_projection_provider_threads:nativeMetadataisnull. - In
orchestration_v2_projection_threads:modelSelectionwas cloned verbatim from the parent thread:"modelSelection": { "instanceId": "codex", "model": "gpt-6.1-sol", "options": [{"id": "reasoningEffort", "value": "xhigh"}, {"id": "serviceTier", "value": "default"}] }
- In
- UI rendering logic (
ProviderSubagentBar.tsx):- In
apps/web/src/components/chat/ProviderSubagentBar.tsx: WhennativeMetadata.modelSelectionis null (viaderiveReportedModelSelection), the UI falls back toprops.selectedThread.modelSelection.modelandformatModelSelectionEffort(props.selectedThread.modelSelection). - As a result, the parent's configuration is presented as the child's, misleading users into believing the subagent consumed the parent's flagship tier.
- In
Impact#
Minor bug or occasional failure. Causes confusion regarding actual model consumption and token expenditure across subagent runs.
Version or commit#
T3 Code Nightly 0.0.46-nightly.20261010.2908
Environment#
macOS 26.7, Apple Silicon, T3 Code Desktop, Codex CLI 0.162.1
Related Issues#
YL404(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Closing for housekeeping. This is the same root cause as #15896 — the subagent bar falls back to the parent's (or catalog default) model/effort when the child selection lacks options. My variant also showed the parent's model, not just a wrong effort value; tracking there.