From af06e5270889b6f10bc2c32210429d3723e452dd Mon Sep 17 00:00:00 2001 From: James Long Date: Thu, 14 May 2026 23:12:30 -0400 Subject: [PATCH] fix(session): ignore instruction lookup errors (#27656) --- packages/opencode/src/session/instruction.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/session/instruction.ts b/packages/opencode/src/session/instruction.ts index 6629ce67bc..63f0c36367 100644 --- a/packages/opencode/src/session/instruction.ts +++ b/packages/opencode/src/session/instruction.ts @@ -118,7 +118,9 @@ export const layer: Layer.Layer< // The first project-level match wins so we don't stack AGENTS.md/CLAUDE.md from every ancestor. if (!Flag.OPENCODE_DISABLE_PROJECT_CONFIG) { for (const file of FILES) { - const matches = yield* fs.findUp(file, ctx.directory, ctx.worktree) + const matches = yield* fs + .findUp(file, ctx.directory, ctx.worktree) + .pipe(Effect.catch(() => Effect.succeed([]))) if (matches.length > 0) { matches.forEach((item) => paths.add(path.resolve(item))) break