You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiled binary does not embed fff native library (bun --compile) #31584
The compiled opencode binary (built with bun build --compile) does not embed the @ff-labs/fff-bun native library correctly. bun --compile only bundles statically analyzable imports, and fff resolves its native lib at runtime, so the embedded path was missing/incorrect in the standalone binary. This breaks fff-backed file search (glob/grep/file search) in released binaries.
fff 0.9.4 adds an embedded-lib resolution path that references native libs via type: "file" imports plus a build-time FFF_LIBC constant (gnu/musl) so Bun embeds them into the compiled binary. We need to bump to 0.9.4 and wire up the FFF_LIBC define in the opencode build for linux targets.
OpenCode version
dev (HEAD)
Steps to reproduce
Build a standalone binary: ./packages/opencode/script/build.ts --single
Run fff-backed search from the compiled binary (e.g. opencode debug file search <query>)
Activity