Browse Source

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

Yihui Khuu 6 months ago
parent
commit
86df4073d1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/opencode/src/session/index.ts

+ 1 - 0
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",