Skip to content

Commit 4d2696e

Browse files
committed
tweak: add ctx.abort to grep tool
1 parent 0c8de47 commit 4d2696e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/tool/grep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const GrepTool = Tool.define("grep", {
5454
const proc = Bun.spawn([rgPath, ...args], {
5555
stdout: "pipe",
5656
stderr: "pipe",
57+
signal: ctx.abort,
5758
})
5859

5960
const output = await new Response(proc.stdout).text()

0 commit comments

Comments
 (0)