tweak: add ctx.abort to grep tool

pull/5339/head
Aiden Cline 2026-01-28 18:46:53 -06:00
parent 0c8de47f7d
commit 4d2696e027
1 changed files with 1 additions and 0 deletions

View File

@ -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()