[PR #11421] fix(tui): allow mouse escape via "esc" labels in dialogs #13782

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

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

State: closed
Merged: Yes


What does this PR do?

  • Enables clicking the "esc" text in dialogs to properly escape with a mouse
  • Added onMouseUp={() => dialog.clear()} to the header “esc” text in all TUI dialogs and wired useDialog() in DialogStatus so the click can close the dialog.

How did you verify your code works?

Local testing steps:

  • bun install
  • bun dev
  • Type /connect
  • click on "esc" text, and dialog closes properly now

Issue

Screenshots/Videos

Before:

https://github.com/user-attachments/assets/88f82f98-5f68-4430-87bd-3df6b3b75700

After:

https://github.com/user-attachments/assets/dedb8637-6e96-4bc2-9165-06723544b11e

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11421 **State:** closed **Merged:** Yes --- ### What does this PR do? - Enables clicking the "esc" text in dialogs to properly escape with a mouse - Added `onMouseUp={() => dialog.clear()}` to the header “esc” text in all TUI dialogs and wired useDialog() in DialogStatus so the click can close the dialog. ### How did you verify your code works? Local testing steps: - bun install - bun dev - Type /connect - click on "esc" text, and dialog closes properly now ### Issue - Closes #11420 ### Screenshots/Videos Before: https://github.com/user-attachments/assets/88f82f98-5f68-4430-87bd-3df6b3b75700 After: https://github.com/user-attachments/assets/dedb8637-6e96-4bc2-9165-06723544b11e
yindo added the pull-request label 2026-02-16 18:18:37 -05:00
yindo closed this issue 2026-02-16 18:18:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13782