Explorar o código

tweak: add ctx.abort to grep tool

Aiden Cline hai 3 semanas
pai
achega
4d2696e027
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/opencode/src/tool/grep.ts

+ 1 - 0
packages/opencode/src/tool/grep.ts

@@ -54,6 +54,7 @@ export const GrepTool = Tool.define("grep", {
     const proc = Bun.spawn([rgPath, ...args], {
       stdout: "pipe",
       stderr: "pipe",
+      signal: ctx.abort,
     })
 
     const output = await new Response(proc.stdout).text()