mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 16:13:24 +00:00
fix: exit aliases
This commit is contained in:
parent
070ced0b3f
commit
862141e8b2
1 changed files with 5 additions and 0 deletions
|
|
@ -410,6 +410,11 @@ export function Prompt(props: PromptProps) {
|
|||
if (props.disabled) return
|
||||
if (autocomplete.visible) return
|
||||
if (!store.prompt.input) return
|
||||
const trimmed = store.prompt.input.trim()
|
||||
if (trimmed === "exit" || trimmed === "quit" || trimmed === ":q") {
|
||||
exit()
|
||||
return
|
||||
}
|
||||
const selectedModel = local.model.current()
|
||||
if (!selectedModel) {
|
||||
promptModelWarning()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue