diff options
| author | Adam <[email protected]> | 2025-12-10 02:49:50 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-10 02:49:54 -0600 |
| commit | 862141e8b22b4de334a1f4883096c325a1508bc5 (patch) | |
| tree | e89aa08330ce7ca98ea0cb289d98dfda65a385f3 | |
| parent | 070ced0b3fb0f69e9b385d22220d2be2e2d238b0 (diff) | |
| download | opencode-862141e8b22b4de334a1f4883096c325a1508bc5.tar.gz opencode-862141e8b22b4de334a1f4883096c325a1508bc5.zip | |
fix: exit aliases
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 5 |
1 files changed, 5 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 157a9c946..2fd4967a0 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -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() |
