fix(cli): handle broken symlinks and junctions for config directories on Windows

This commit is contained in:
Catriel Müller
2026-05-08 16:45:49 -03:00
parent c0c232ae9a
commit 53ef0be6b9
3 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ export const layer = Layer.effect(
)
.pipe(
Effect.catchIf(
(e) => e.reason._tag === "PermissionDenied",
(e) => e.reason._tag === "PermissionDenied" || e.reason._tag === "NotFound", // kilocode_change - also ignore NotFound (broken symlink/junction on Windows)
() => Effect.void,
),
)