From cc536db0bda19b1d9dcd0e6036c2e29700f9b968 Mon Sep 17 00:00:00 2001 From: Adrian de la Rosa Date: Sun, 24 May 2026 15:13:43 +0200 Subject: [PATCH] fix(opencode): follow symlinks in file scan rg.files() in scan() was not passing --follow, so files inside symlinked directories were invisible to @file autocomplete. the remaining readDirectoryEntries consumer fixes (symlinked dirs in list() and the global home scan path) are covered by #28532 which fixes the root cause in readDirectoryEntries itself. closes #29080 --- packages/core/src/filesystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/filesystem.ts b/packages/core/src/filesystem.ts index e8efd1c6be60..288cd8e55716 100644 --- a/packages/core/src/filesystem.ts +++ b/packages/core/src/filesystem.ts @@ -249,7 +249,7 @@ export const layer = Layer.effect( )).flat() } - const files = Array.from(yield* ripgrep.files({ cwd: location.directory }).pipe(Stream.runCollect, Effect.orDie)) + const files = Array.from(yield* ripgrep.files({ cwd: location.directory, follow: true }).pipe(Stream.runCollect, Effect.orDie)) const dirs = new Set() for (const file of files) { let current = file