You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Subagent thread bottom bar (ProviderSubagentBar) displays parent thread's model and effort instead of actual subagent configuration #17694
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Start a parent thread using GPT-6.1-Sol with Extra High reasoning effort (gpt-6.1-sol / xhigh).
Spawn a native Codex subagent specifying gpt-6-luna with max reasoning 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.sqlite and the rollout .jsonl session file:
In apps/web/src/components/chat/ProviderSubagentBar.tsx:
When nativeMetadata.modelSelection is null (via deriveReportedModelSelection), the UI falls back to props.selectedThread.modelSelection.model and formatModelSelectionEffort(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.
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
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.
Activity
YL404 commentedon Oct 13, 2026
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.