Skip to content

Commit 3516f24

Browse files
committed
fix: make /exit actually exit
1 parent f4e4c68 commit 3516f24

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cli/src/commands/router.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,7 @@ export async function routeUserPrompt(params: {
167167
}
168168

169169
if (cmd === 'exit' || cmd === 'quit') {
170-
abortControllerRef.current?.abort()
171-
stopStreaming()
172-
setCanProcessQueue(false)
173-
setInputValue({ text: '', cursorPosition: 0, lastEditDueToNav: false })
174-
handleCtrlC()
170+
process.kill(process.pid, 'SIGINT')
175171
return
176172
}
177173

0 commit comments

Comments
 (0)