mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: fix session abort when autocomplete is visible
This commit is contained in:
parent
01b9148c04
commit
ebca25462e
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue