[PR #6017] fix(tui): prevent keybinds from executing when dialog is open #11700

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

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

State: closed
Merged: Yes


Summary

  • Fixes keybinds (like Tab for agent cycling) executing in the background when a dialog/picker is open

Details

Added dialog.stack.length > 0 guard to the useKeyboard handler in init() to prevent registered command keybinds from firing when a dialog is open. This follows the same pattern already used in CommandProvider (line 102) and session/index.tsx (line 254).

Fixes #6016

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6017 **State:** closed **Merged:** Yes --- ## Summary - Fixes keybinds (like `Tab` for agent cycling) executing in the background when a dialog/picker is open ## Details Added `dialog.stack.length > 0` guard to the `useKeyboard` handler in `init()` to prevent registered command keybinds from firing when a dialog is open. This follows the same pattern already used in `CommandProvider` (line 102) and `session/index.tsx` (line 254). Fixes #6016
yindo added the pull-request label 2026-02-16 18:16:38 -05:00
yindo closed this issue 2026-02-16 18:16:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11700