fix fff disabling logic

This commit is contained in:
Dax Raad 2026-06-10 13:28:48 -04:00
parent 2c65273204
commit 14ec7ed5b3

View File

@ -232,4 +232,6 @@ export const fffLayer = Layer.effect(
}),
)
export const defaultLayer = Layer.unwrap(Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF ? ripgrepLayer : fffLayer)))
export const defaultLayer = Layer.unwrap(
Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF || !Fff.available() ? ripgrepLayer : fffLayer)),
)