mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-29 11:14:23 +00:00
tweak: add ctx.abort to grep tool
This commit is contained in:
parent
0c8de47f7d
commit
4d2696e027
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue