tweak: add ctx.abort to grep tool
parent
0c8de47f7d
commit
4d2696e027
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue