Skip to content

The open source coding agent.

TypeScript

fix(opencode): avoid TTY corruption from double cleanup (#16565)

tobwen13a68f3de368
diff --git a/packages/opencode/src/cli/cmd/tui/thread.ts b/packages/opencode/src/cli/cmd/tui/thread.ts
index f778c96a803..fea32a2b2b9 100644
--- a/packages/opencode/src/cli/cmd/tui/thread.ts
+++ b/packages/opencode/src/cli/cmd/tui/thread.ts
@@ -208,7 +208,6 @@ export const TuiThreadCommand = cmd({
prompt,
fork: args.fork,
},
- onExit: stop,
})
} finally {
await stop()