[PR #12203] fix(tui): add hover states to question tool tabs #14118

Closed
opened 2026-02-16 18:18:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12203

State: closed
Merged: Yes


Adds mouse hover visual feedback to question tool tabs in the TUI, matching the existing pattern used for subagent navigation buttons.

Problem

The question tool displays tabs for multiple questions and a "Confirm" button, but these tabs didn't have hover states like other interactive elements in the UI. This made it harder to see which tab was being clicked, unlike the subagent switching buttons which already had hover feedback.

Changes

  • Added tabHover signal to track which tab is being hovered
  • Updated question tabs to show theme.backgroundElement on hover (darker) vs theme.backgroundPanel when not hovered (lighter)
  • Active tabs keep their theme.accent color unchanged
  • Same pattern applied to the Confirm tab

This follows the exact pattern used in header.tsx for the subagent navigation buttons (Parent, Prev, Next).

How Verified

Tested by running bun dev and triggering the question tool. Hovering over non-active tabs now shows the same visual feedback as other interactive elements in the TUI.

Screenshot with Highglight

image

Fixes #12202

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12203 **State:** closed **Merged:** Yes --- Adds mouse hover visual feedback to question tool tabs in the TUI, matching the existing pattern used for subagent navigation buttons. ### Problem The question tool displays tabs for multiple questions and a "Confirm" button, but these tabs didn't have hover states like other interactive elements in the UI. This made it harder to see which tab was being clicked, unlike the subagent switching buttons which already had hover feedback. ### Changes - Added tabHover signal to track which tab is being hovered - Updated question tabs to show theme.backgroundElement on hover (darker) vs theme.backgroundPanel when not hovered (lighter) - Active tabs keep their theme.accent color unchanged - Same pattern applied to the Confirm tab This follows the exact pattern used in header.tsx for the subagent navigation buttons (Parent, Prev, Next). ### How Verified Tested by running bun dev and triggering the question tool. Hovering over non-active tabs now shows the same visual feedback as other interactive elements in the TUI. ## Screenshot with Highglight <img width="921" height="323" alt="image" src="https://github.com/user-attachments/assets/fcbc77df-1893-4524-b498-854c9fdc9879" /> Fixes #12202
yindo added the pull-request label 2026-02-16 18:18:55 -05:00
yindo closed this issue 2026-02-16 18:18:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14118