fix(core): do not gate fff on initial scan

This commit is contained in:
Dax Raad 2026-06-10 10:19:40 -04:00
parent c9e2a38bf4
commit 1dad38d1b5

View File

@ -139,11 +139,6 @@ export const fffLayer = Layer.effect(
}).pipe(Effect.orDie)
if (!result.ok) return yield* Effect.die(result.error)
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()).pipe(Effect.ignore))
const scanned = yield* Effect.tryPromise({
try: () => result.value.waitForScan(5_000),
catch: (cause) => cause,
}).pipe(Effect.orDie)
if (!scanned.ok || !scanned.value) return yield* Effect.die(scanned.ok ? "fff scan timed out" : scanned.error)
return Service.of({
glob: (input) =>
Effect.sync(() => {