Skip to content

The open source coding agent.

TypeScript

fix(shell): commands expecting stdin will be "working" indefinitely (#1964)

Yihui Khuu86df4073d193
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts
index 1173de0d525..7dcffb070c5 100644
--- a/packages/opencode/src/session/index.ts
+++ b/packages/opencode/src/session/index.ts
@@ -1076,6 +1076,7 @@ export namespace Session {
const proc = spawn(shell, args, {
cwd: app.path.cwd,
signal: abort.signal,
+ stdio: ["ignore", "pipe", "pipe"],
env: {
...process.env,
TERM: "dumb",