The open source coding agent.
TypeScript
fix(tui): prevent keybinds from executing when dialog is open (#6017)
ja86b9b7b15a40
diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-command.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-command.tsxindex d2130488e37..d19e93188b2 100644--- a/packages/opencode/src/cli/cmd/tui/component/dialog-command.tsx+++ b/packages/opencode/src/cli/cmd/tui/component/dialog-command.tsx@@ -45,6 +45,7 @@ function init() {useKeyboard((evt) => {if (suspended()) return+ if (dialog.stack.length > 0) returnfor (const option of options()) {if (option.keybind && keybind.match(option.keybind, evt)) {evt.preventDefault()