Просмотр исходного кода

fix(tui): prevent question tool keybindings when dialog is open (#8147)

Co-authored-by: Claude <[email protected]>
zerone0x 1 месяц назад
Родитель
Сommit
21990621e2
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      packages/opencode/src/cli/cmd/tui/routes/session/question.tsx

+ 3 - 0
packages/opencode/src/cli/cmd/tui/routes/session/question.tsx

@@ -121,6 +121,9 @@ export function QuestionPrompt(props: { request: QuestionRequest }) {
   const dialog = useDialog()
 
   useKeyboard((evt) => {
+    // Skip processing if a dialog (e.g., command palette) is open
+    if (dialog.stack.length > 0) return
+
     // When editing "Other" textarea
     if (store.editing && !confirm()) {
       if (evt.name === "escape") {