diff options
| author | Dax Raad <[email protected]> | 2025-11-04 18:45:39 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-11-04 18:45:39 -0500 |
| commit | ebca25462edcf535b055e00f3476187646c9f8cb (patch) | |
| tree | 0e5f206db8d4249ff6258d79ce5f7214b4afb934 /packages | |
| parent | 01b9148c04d9812c43843b867c1a9ded8f186a68 (diff) | |
| download | opencode-ebca25462edcf535b055e00f3476187646c9f8cb.tar.gz opencode-ebca25462edcf535b055e00f3476187646c9f8cb.zip | |
tui: fix session abort when autocomplete is visible
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 1 |
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, |
