OpenCode breaks on FreeBSD/ZFS: BigInt dev field overflow bug fixed upstream in Effect 4.0.5
asomers · ghdev · 2026-10-21
A developer filed a reproduced issue showing OpenCode's filesystem layer fails almost entirely on FreeBSD hosts with ZFS datasets: the /cd command and file pickers return nothing, GET /api/fs/list, /find, and /read return HTTP 500, and POST /api/session/{id}/move claims existing directories don't exist.
Root cause: OpenCode's Node filesystem layer comes from @effect/platform-node-shared, whose stat calls fs.stat(path, { bigint: true }) then converts the BigInt dev field to a Number. FreeBSD reports 64-bit stdev values for ZFS datasets (e.g. 8599779474788709465), which exceed the safe integer range and throw a RangeError.
Status: Effect fixed this upstream in @effect/platform-node-shared 4.0.5 by keeping dev as BigInt, but OpenCode still pins 4.0.1 across its workspace catalog, v2.0.32, v2.1.1, and dev. Reproduced on FreeBSD 15.1-RELEASE with ZFS 2.4.2, opencode 2.0.32 (embedded Bun v1.4.2).
More from coding & agent
- Ethan Mollick's new book charts 30 months of AI progress, from cyborg to conjurer work — rseroter · 2026-10-23
- OpenJet claims Qwen3.8-27B coding runs 1.9x faster than llama.cpp on one RTX 3090 — JeremyCMorgan · 2026-10-23
- Jensen Huang details Vera Rubin agentic stack: NVL72, MGX, CMX and RTX — rohanpaul_ai · 2026-10-23
- Building an autonomous SEO agent in Hermes with three skills: programmatic pages, Keywords Everywhere, DataForSEO — EXM7777 · 2026-10-23
- Building a sports betting AI agent with onchain execution and human approval by default: architecture and lessons — Dry-Comfortable-2678 · 2026-10-23
- Capy 0.5.0 lets Claude Pro/Max subscribers reuse their plan quota, adds OIDC cloud access — garrytan · 2026-10-23