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
tui(v2): opened subagent session hides effective model in footer #50795
In OpenCode v2, opening a child session from Subagents replaces the normal prompt with the child Composer. The usual model metadata row is therefore missing from the bottom of that view.
Steps to reproduce
Start a parent session that invokes a subagent.
Open Subagents, select the child, and press Enter.
Look at the bottom of the opened child session.
Expected
Show the child session's persisted model in the bottom Composer using the same model metadata presentation as the main prompt, including its variant when set. Resolve model and provider names from the child's location catalog; use the main prompt's unavailable-model fallback if needed. Show no model row until the child has a model. Keep the Subagents list rows unchanged.
This issue might be a duplicate of existing issues. Please check:
tui: subagent model not shown anywhere #42367: "tui: subagent model not shown anywhere" — same problem (subagent model not visible in TUI), covers main thread block, task/session list, and detail view
changed the title [-]tui(v2): Subagents tab hides effective child model and variant[/-][+]tui(v2): opened subagent session hides effective model in footer[/+]on Sep 29, 2026
When I open a child session, the bottom of the view shows only the Composer on the Subagents tab. The view does not show the model of the child, its context use or its cost.
Cause, from the source at tag v2.2.0:
packages/tui/src/routes/session/index.tsx:1595 opens the Composer for each session that has a parentID.
At :1609 the view then does not show <Prompt>. The model row and the prompt.footer slot (context tokens, percent and cost) are parts of <Prompt>, so a child session does not show them.
This is a regression from before 2.0. Before commit c65a7d5 ("feat(tui): integrate composer picker", 2026-06-29), a child session showed SubagentFooter with the context tokens, the percent of the context limit and the cost. That commit removed SubagentFooter, and the Composer replaced it.
The context part is also in #48548. PR #59573 adds the sidebar to child sessions, which shows the context and the cost there, but not the model. A possible repair for this issue: when the session has a parentID, show the model row and the prompt.footer slot below the Composer.
Thanks for the detailed write-up, @guanbear! In short, you're asking that an opened subagent (child) session show its own persisted model and variant in the bottom Composer, using the same metadata row as the main prompt.
Right now, child sessions intentionally replace the prompt with the Composer on the Subagents tab, so the model row isn't shown. That makes this a feature request rather than a bug. Maintainers will consider it along with your PR #50798.
This is a regression, not only a request for a new function. Before commit c65a7d5 ("feat(tui): integrate composer picker", 2026-06-29), a child session showed SubagentFooter with the agent name, its context use (tokens and percent of the model limit) and its cost. That commit removed the footer. Since then the view shows only the Composer for each session that has a parentID (packages/tui/src/routes/session/index.tsx:1595-1609 at tag v2.2.0).
Open PRs #50798 (model row) and #59573 (sidebar in subagent sessions) each put back a part of that information.
same on 2.2.4. open a child session and there's no model name anywhere, so i can't tell what a subagent actually ran on. this used to show in the old subagent footer.
#50798 restores the persisted model + variant in the composer row and is still open since sep 23. that's a ~4 month old regression with a patch sitting ready — pls prio.
Activity
github-actions commentedon Sep 23, 2026
This issue might be a duplicate of existing issues. Please check:
[-]tui(v2): Subagents tab hides effective child model and variant[/-][+]tui(v2): opened subagent session hides effective model in footer[/+]iceteaSA commentedon Oct 27, 2026
Same on the released 2.2.0 and on 2.1.4 (Linux).
When I open a child session, the bottom of the view shows only the Composer on the Subagents tab. The view does not show the model of the child, its context use or its cost.
Cause, from the source at tag
v2.2.0:packages/tui/src/routes/session/index.tsx:1595opens the Composer for each session that has aparentID.:1609the view then does not show<Prompt>. The model row and theprompt.footerslot (context tokens, percent and cost) are parts of<Prompt>, so a child session does not show them.This is a regression from before 2.0. Before commit c65a7d5 ("feat(tui): integrate composer picker", 2026-06-29), a child session showed
SubagentFooterwith the context tokens, the percent of the context limit and the cost. That commit removedSubagentFooter, and the Composer replaced it.The context part is also in #48548. PR #59573 adds the sidebar to child sessions, which shows the context and the cost there, but not the model. A possible repair for this issue: when the session has a
parentID, show the model row and theprompt.footerslot below the Composer.opencodejr commentedon Oct 28, 2026
Thanks for the detailed write-up, @guanbear! In short, you're asking that an opened subagent (child) session show its own persisted model and variant in the bottom Composer, using the same metadata row as the main prompt.
Right now, child sessions intentionally replace the prompt with the Composer on the Subagents tab, so the model row isn't shown. That makes this a feature request rather than a bug. Maintainers will consider it along with your PR #50798.
Related issues:
iceteaSA commentedon Oct 28, 2026
This is a regression, not only a request for a new function. Before commit c65a7d5 ("feat(tui): integrate composer picker", 2026-06-29), a child session showed
SubagentFooterwith the agent name, its context use (tokens and percent of the model limit) and its cost. That commit removed the footer. Since then the view shows only the Composer for each session that has aparentID(packages/tui/src/routes/session/index.tsx:1595-1609at tagv2.2.0).Open PRs #50798 (model row) and #59573 (sidebar in subagent sessions) each put back a part of that information.
sebastianlungu commentedon Oct 30, 2026
same on 2.2.4. open a child session and there's no model name anywhere, so i can't tell what a subagent actually ran on. this used to show in the old subagent footer.
#50798 restores the persisted model + variant in the composer row and is still open since sep 23. that's a ~4 month old regression with a patch sitting ready — pls prio.