fix(opencode): add AbortSignal support to Ripgrep.files() and GlobTool (#10833)

This commit is contained in:
Goni Zahavy
2026-01-28 18:47:09 -06:00
committed by GitHub
parent 90a7e3d64e
commit e5b33f8a5e
3 changed files with 12 additions and 3 deletions
+1
View File
@@ -38,6 +38,7 @@ export const GlobTool = Tool.define("glob", {
for await (const file of Ripgrep.files({
cwd: search,
glob: [params.pattern],
signal: ctx.abort,
})) {
if (files.length >= limit) {
truncated = true