Skip to content

tui(v2): opened subagent session hides effective model in footer #50795

Open

Description

@guanbear

Description

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

  1. Start a parent session that invokes a subagent.
  2. Open Subagents, select the child, and press Enter.
  3. 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.

Related work

Activity

  1. github-actions commented on Sep 23, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. 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
  3. iceteaSA commented on Oct 27, 2026

    @iceteaSA

    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: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.

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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:

  5. iceteaSA commented on Oct 28, 2026

    @iceteaSA

    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.

  6. sebastianlungu commented on Oct 30, 2026

    @sebastianlungu

    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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions