diff --git a/packages/opencode/src/file/index.ts b/packages/opencode/src/file/index.ts index 09bcf9290..44c04e9e4 100644 --- a/packages/opencode/src/file/index.ts +++ b/packages/opencode/src/file/index.ts @@ -409,9 +409,7 @@ export class FileService extends ServiceMap.Service [] as fs.Dirent[]) + const children = await fs.promises.readdir(base, { withFileTypes: true }).catch(() => [] as fs.Dirent[]) for (const child of children) { if (!child.isDirectory()) continue if (shouldIgnoreNested(child.name)) continue