Browse Source

fix(tui): disable session bindings during prompts

Kit Langton 1 tháng trước cách đây
mục cha
commit
2d17bebdf7
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/tui/src/routes/session/index.tsx

+ 1 - 0
packages/tui/src/routes/session/index.tsx

@@ -802,6 +802,7 @@ export function Session() {
 
   useBindings(() => ({
     mode: OPENCODE_BASE_MODE,
+    enabled: () => !disabled(),
     bindings: [...baseAndUnfocusedCommands, ...baseCommands()].flatMap((command) => config.keybinds.get(command.name)),
   }))