The open source coding agent.
TypeScript
tweak: add ctx.abort to grep tool
Aiden Cline4d2696e027ef
diff --git a/packages/opencode/src/tool/grep.ts b/packages/opencode/src/tool/grep.tsindex 097dedf4aaf..6cb70d022ea 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()