Skip to content

Commit f804139

Browse files
committed
fix: stop binding os.Stdin to sub commands
Binding os.Stdin, which will not be closed in gptscript, causes issues with Windows because the subcommand will wait for stdin to be closed before launching. Since we are not using stdin with subcommands, this binding can safely be removed. Signed-off-by: Donnie Adams <donnie@acorn.io>
1 parent 21f0fea commit f804139

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/engine/cmd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func (e *Engine) runCommand(ctx Context, tool types.Tool, input string, toolCate
7373

7474
output := &bytes.Buffer{}
7575
all := &bytes.Buffer{}
76-
cmd.Stdin = os.Stdin
7776
cmd.Stderr = io.MultiWriter(all, os.Stderr)
7877
cmd.Stdout = io.MultiWriter(all, output)
7978

0 commit comments

Comments
 (0)