From 8f1e13f299ac249805e158b23dde4a989609300c Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:38:47 +1000 Subject: [PATCH] fix(core): skip fff in node runtime (#34353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com> Co-authored-by: opencode-agent[bot] Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 --- packages/core/src/filesystem/search.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/src/filesystem/search.ts b/packages/core/src/filesystem/search.ts index 72c9128cfd..95bb0197a9 100644 --- a/packages/core/src/filesystem/search.ts +++ b/packages/core/src/filesystem/search.ts @@ -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