From 4d2696e027eff93ae15e8780fea8e3727e2f9e5c Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Wed, 28 Jan 2026 18:46:53 -0600 Subject: [PATCH] tweak: add ctx.abort to grep tool --- packages/opencode/src/tool/grep.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opencode/src/tool/grep.ts b/packages/opencode/src/tool/grep.ts index 097dedf4a..6cb70d022 100644 --- a/packages/opencode/src/tool/grep.ts +++ b/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()