Skip to content

fix(tui): open subagent panel from footer - #43325

Merged
kitlangton merged 2 commits into
v2from
subagent-panel-hover
Aug 19, 2026
Merged

kitlangton merged 2 commits into
v2from
subagent-panel-hover

Conversation

@kitlangton

@kitlangton kitlangton commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

What

Make the live subagent/shell summary in the prompt footer behave like the action it advertises. The summary now gets brighter on hover and opens the existing Subagents bottom panel when clicked.

Before / After

Before: The footer displayed the session.child.first shortcut next to running subagents, but the same text did not respond to hover or mouse clicks.

After: Hovering lifts the live-work label from subdued to default text color without adding a background. Clicking dispatches session.child.first, opening the same bottom panel as the keyboard shortcut.

How

  • packages/tui/src/feature-plugins/prompt/footer.tsx separates the interactive live-work summary from passive usage/cost text and routes clicks through the existing keymap command.
  • packages/tui/test/feature-plugins/prompt-footer.test.tsx verifies the rendered text-color lift and mouse dispatch.

Testing

  • bun run test test/feature-plugins/prompt-footer.test.tsx from packages/tui
  • bun typecheck from packages/tui
  • Repository pre-push typecheck across 33 packages
  • OpenCode Drive run with a simulated running subagent, exercising hover and click through to the real Subagents panel

Demo

OpenCode Drive simulation. The captured hover frame is held for one second so the text-only state is visible before the click opens the panel.

subagent-footer-bright-hover.mp4

@kitlangton
kitlangton enabled auto-merge (squash) August 19, 2026 13:03
@kitlangton
kitlangton merged commit 241a88a into v2 Aug 19, 2026
12 of 14 checks passed
@kitlangton
kitlangton deleted the subagent-panel-hover branch August 19, 2026 14:33
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant