GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): show model variant in subagent footer by samiralibabic · Pull Request #38772 · anomalyco/opencode

Conversation

@samiralibabic

@samiralibabic samiralibabic commented Jul 24, 2026

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dyool17, Vikaskumargd, rlnt, and khudiakov reacted with thumbs up emoji Vikaskumargd reacted with hooray emoji
All reactions
  • 👍 4 reactions
  • 🎉 1 reaction
@github-actions

github-actions Bot commented Jul 24, 2026

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:

  • fix(session): agent.model and agent.variant config ignored in handleSubtask #36281 - fix(session): agent.model and agent.variant config ignored in handleSubtask - Addresses variant handling in subagent execution
  • feat(agent): implement model tier selection with variant support for subagents #11377 - feat(agent): implement model tier selection with variant support for subagents - Implements variant support for subagents
  • feat(task): pass variant to subagent so it inherits parent's thinking level #12567 - feat(task): pass variant to subagent so it inherits parent's thinking level - Related to variant inheritance in subagents
  • feat(tui): preserve selected thinking effort per agent per model for primary agents #36708 - feat(tui): preserve selected thinking effort per agent per model for primary agents - TUI footer variant handling for main agents (similar pattern)

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Jul 25, 2026
📊 AI CLI 工具社区动态日报 2026-07-25 zx0828/big_model_radar#295
Open
@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.

Vikaskumargd and samiralibabic reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Aug 30, 2026
fix(tui): scope reasoning-effort variants to the agent, seed from agent config #46202
Closed
samiralibabic added 3 commits August 30, 2026 23:26
@samiralibabic
feat(tui): show subagent model in footer
097b916
@samiralibabic
fix(tui): separate subagent model details
0c1eb7d
@samiralibabic
feat(tui): color subagent labels by agent
0c9beff
@samiralibabic
samiralibabic force-pushed the subagent-footer-variant branch from cd0c59e to 0c9beff Compare August 30, 2026 21:27
@samiralibabic
Merge branch 'dev' into subagent-footer-variant
374b776
@rlnt

rlnt commented Sep 22, 2026

Copy link
Copy Markdown

Just commenting so this doesn't get automatically closed by the stupid stale bot that already closed dozens of very useful issues due to no recent activity.

samiralibabic reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 23, 2026
tui(v2): opened subagent session hides effective model in footer #50795
Open
feat(tui): match main model metadata in child sessions #50798
Open
@ilyhalight

ilyhalight commented Sep 28, 2026

Copy link
Copy Markdown

yes, this is really missing in v2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@samiralibabic
Merge branch 'dev' into subagent-footer-variant
dba4f7d
@samiralibabic

samiralibabic commented Sep 29, 2026

Copy link
Copy Markdown
Author

I refreshed this branch against current dev today; the standards and compliance checks are green.

Before doing more work here, I found #50798, which targets v2 and implements the same opened-child model/variant metadata using the current PromptMetadataRow, with focused coverage. This PR still applies to the legacy dev subagent footer, so the code paths do not directly conflict, but they represent two targets for the same product behavior.

Maintainers: should the dev footer still receive this fix, or should I close this PR in favor of #50798? If dev remains a supported target, I can align the behavior and regression coverage with the v2 implementation; otherwise I would prefer not to maintain a duplicate path.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@khudiakov khudiakov mentioned this pull request Oct 1, 2026
feat(tui): show selected variant in subagent footer khudiakov/opencode#1
Draft
3 tasks done
@opencode-agent opencode-agent Bot mentioned this pull request Oct 8, 2026
[FEATURE]: show the turn's model variant in message footers #53846
Closed
1 task done
@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr thdxr closed this Oct 10, 2026
@opencode-agent opencode-agent Bot mentioned this pull request Oct 12, 2026
feat(tui): add session.variant to show the turn's variant in footers #54958
Closed
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]:Show reasoning/variant level for subagents in the UI

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@samiralibabic @dyool17 @rlnt @ilyhalight @thdxr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.