summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-10 02:49:50 -0600
committerAdam <[email protected]>2025-12-10 02:49:54 -0600
commit862141e8b22b4de334a1f4883096c325a1508bc5 (patch)
treee89aa08330ce7ca98ea0cb289d98dfda65a385f3
parent070ced0b3fb0f69e9b385d22220d2be2e2d238b0 (diff)
downloadopencode-862141e8b22b4de334a1f4883096c325a1508bc5.tar.gz
opencode-862141e8b22b4de334a1f4883096c325a1508bc5.zip
fix: exit aliases
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx5
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()