fix(session): ignore instruction lookup errors (#27656)
This commit is contained in:
parent
f807152724
commit
af06e52708
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
// The first project-level match wins so we don't stack AGENTS.md/CLAUDE.md from every ancestor.
|
||||||
if (!Flag.OPENCODE_DISABLE_PROJECT_CONFIG) {
|
if (!Flag.OPENCODE_DISABLE_PROJECT_CONFIG) {
|
||||||
for (const file of FILES) {
|
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) {
|
if (matches.length > 0) {
|
||||||
matches.forEach((item) => paths.add(path.resolve(item)))
|
matches.forEach((item) => paths.add(path.resolve(item)))
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue