The open source coding agent.
TypeScript
sync
Dax Raadbb60aa3060d4
diff --git a/packages/opencode/src/ripgrep/index.ts b/packages/opencode/src/ripgrep/index.tsindex 9c064697611..9e42262b81b 100644--- a/packages/opencode/src/ripgrep/index.ts+++ b/packages/opencode/src/ripgrep/index.ts@@ -73,13 +73,16 @@ export namespace Ripgrep {],{cwd: Global.Path.bin,- stderr: "ignore",- stdout: "ignore",+ stderr: "pipe",+ stdout: "pipe",},)await proc.exitedif (proc.exitCode !== 0)- throw new ExtractionFailedError({ filepath, stderr: proc.stderr })+ throw new ExtractionFailedError({+ filepath,+ stderr: await Bun.readableStreamToText(proc.stderr),+ })}if (config.extension === "zip") {const proc = Bun.spawn(@@ -94,7 +97,7 @@ export namespace Ripgrep {if (proc.exitCode !== 0)throw new ExtractionFailedError({filepath: archivePath,- stderr: proc.stderr,+ stderr: await Bun.readableStreamToText(proc.stderr),})}await fs.unlink(archivePath)