Skip to content

feat(tui): show model variant in subagent footer - #38772

Open
samiralibabic wants to merge 4 commits into
anomalyco:devfrom
samiralibabic:subagent-footer-variant
Open

feat(tui): show model variant in subagent footer#38772
samiralibabic wants to merge 4 commits into
anomalyco:devfrom
samiralibabic:subagent-footer-variant

Conversation

@samiralibabic

Copy link
Copy Markdown

Issue for this PR

Closes #26266

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds model, provider, and variant details to subagent sessions, similar to the main-agent footer.

A persisted non-default session variant is shown first. Legacy sessions fall back to a matching configured agent variant or supported reasoningEffort. Existing usage and navigation details stay unchanged.

How did you verify your code works?

  • bun test test/cli/tui
  • bun turbo typecheck
  • Manual TUI verification

Screenshots / recordings

Before After
Subagent footer before Subagent footer after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search results, I found several related PRs that address similar concerns about model variants and subagent sessions, but no exact duplicate PRs:

Related but not duplicates:

These are related to variant handling in subagents but don't appear to be addressing the specific feature of displaying model variant information in the subagent footer.

@dyool17

dyool17 commented Aug 8, 2026

Copy link
Copy Markdown

This fix lands exactly what's missing in the subagent footer. I'm on opencode 1.18.15 (Windows): when I navigate into a subagent session I only see the agent name and context — the main prompt shows the variant, but the subagent footer drops it entirely. For reasoning models that matters: high vs xhigh can be a very different cost, and there's no way to tell what the subagent is actually running. This also ties into #38495 (model and token usage missing in subagent view) — it feels like one gap, not two. In the meantime I'm looking for a way to patch around this in my setup until it's merged. Happy to test once it's in a dev build.

@samiralibabic
samiralibabic force-pushed the subagent-footer-variant branch from cd0c59e to 0c9beff Compare August 30, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants