refactor(core): move path resolve into fs service (#35201)

This commit is contained in:
James Long 2026-07-03 13:25:38 -04:00 committed by GitHub
commit aad8d90dd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 37 additions and 21 deletions

View file

@ -35,7 +35,7 @@ const layer = Layer.effect(
// Resolved once for the Location layer; the synthetic text and dedup ledger keep
// absolute paths, but the human-facing description shows paths relative to the project
// root so opening a subdirectory still describes paths from the project root.
const root = FSUtil.resolve(location.project.directory)
const root = yield* fs.resolve(location.project.directory)
// Same-turn parallel reads settle concurrently, so an in-memory claim guards each
// Session/path pair before any filesystem work. The durable history check below covers
// paths injected in earlier turns after this Location layer was reopened.