summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-11-04 18:45:39 -0500
committerDax Raad <[email protected]>2025-11-04 18:45:39 -0500
commitebca25462edcf535b055e00f3476187646c9f8cb (patch)
tree0e5f206db8d4249ff6258d79ce5f7214b4afb934
parent01b9148c04d9812c43843b867c1a9ded8f186a68 (diff)
downloadopencode-ebca25462edcf535b055e00f3476187646c9f8cb.tar.gz
opencode-ebca25462edcf535b055e00f3476187646c9f8cb.zip
tui: fix session abort when autocomplete is visible
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index cf497407a..349026e99 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -161,6 +161,7 @@ export function Prompt(props: PromptProps) {
onSelect: (dialog) => {
if (!props.sessionID) return
if (autocomplete.visible) return
+ if (!input.focused) return
sdk.client.session.abort({
path: {
id: props.sessionID,