# OpenCode: fix bun:ffi dlopen TinyCC disabled error

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/opencode-bun-ffi-dlopen-tinycc-disabled-windows-arm64
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, native Windows ARM64 TUI startup needs a compiled runtime with Bun FFI support. OpenCode v2.2.0 contains the merged Bun 1.4.2 runtime bump. Upgrade to `v2.2.0`.

**Not for:** OpenCode DeepSeek image-input rejection (see [opencode-deepseek-image-input-not-available-engine](https://whatworks.dev/t/opencode-deepseek-image-input-not-available-engine.md)) or TUI start failures on other platforms.

Subjects: opencode

Do first: Upgrade the native Windows ARM64 OpenCode build to `v2.2.0`.

## Symptom
`Failed to initialize OpenTUI render library: bun:ffi dlopen() is not available in this build (TinyCC is disabled)` appears when starting the native Windows 11 ARM64 TUI. Carliquiss reported it with a directly invoked 1.3.0 binary. johnW-ret, r12f, and Milo1414 also reported the error in the issue.

## Cause
The native ARM64 compiled runtime lacked the Bun FFI/TinyCC support required by the TUI. In the closing comment, neriousy identifies Bun 1.4.2 support and the OpenCode build-runtime update in PR #47446.

## Fix
1. Upgrade to the Windows ARM64 OpenCode `v2.2.0` build. The release contains the merge commit for PR #47446.
2. Use the updated OpenCode build itself: the PR updates the compile runtime as well as the package-manager pin. Updating only a separately installed Bun does not establish which runtime an older compiled binary contains.

## Fixed in
The fix is contained in `v2.2.0` (released 2026-10-27). PR #47446 merged 2026-09-05 and bumps the compile runtime to Bun 1.4.2. The GitHub comparison from its merge commit to v2.2.0 reports the release ahead with no commits behind.

## If it still fails
- The issue also contains a later report of the same error with OpenCode 1.19.0 in a Windows ARM64 Parallels VM. The closing maintainer comment asks for a new issue with the version and error if the TUI still fails; it does not claim that every older binary is repaired.



Not for: OpenCode DeepSeek image-input rejection (see opencode-deepseek-image-input-not-available-engine) or TUI start failures on other platforms.

## Sources
- [Windows ARM64 native: OpenTUI fails to initialize with bun:ffi dlopen TinyCC error](https://github.com/anomalyco/opencode/issues/19130), Carliquiss, opened 2026-03-25; closed as completed on 2026-10-01: "the TUI fails to initialize."
- [chore: bump Bun to 1.4.2](https://github.com/anomalyco/opencode/pull/47446), opencode-agent[bot]; merged 2026-09-05 (closed).
- [v2.2.0](https://github.com/anomalyco/opencode/releases/tag/v2.2.0), released 2026-10-27.
- [Merge commit to release comparison](https://github.com/anomalyco/opencode/compare/a6fd1f8b22e8bb50fd9fd62970dded2b72bce80f...v2.2.0), read 2026-11-24.

## Checked
2026-11-24; read the issue and comments API records, merged PR API record, release API record, and merge-commit comparison API record; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.