Compare commits

...

2 Commits

Author SHA1 Message Date
𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 8f419a2762 fix(core): skip fff in node runtime
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-06-29 01:56:51 +00:00
Luke Parker 59808e565c fix(core): fallback to ripgrep when fff fails
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-06-28 23:45:55 +00:00
+5 -1
View File
@@ -230,7 +230,11 @@ export const fffLayer = Layer.effect(
}),
)
const layer = Layer.unwrap(Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF || !Fff.available() ? ripgrepLayer : fffLayer)))
const isNodeRuntime = () => process.versions.bun === undefined
const layer = Layer.unwrap(
Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF || isNodeRuntime() || !Fff.available() ? ripgrepLayer : fffLayer)),
)
export const locationLayer = layer