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
OpenTUI fails to start on Windows ARM64: bun:ffi dlopen() is not available in this build #38520
I'm unable to start the TUI on a Windows 11 ARM64 machine.
The CLI installs successfully via Winget and most commands work as expected, but any command that starts the terminal UI fails with the following error:
Failed to initialize OpenTUI render library: bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Device: Microsoft Surface Laptop 7 Architecture: ARM64 OpenCode: 1.18.4 Installed via Winget (SST.opencode)
Interestingly:
opencode --help ✅ works
opencode --version ✅ works
opencode web ✅ works
opencode ❌ fails
opencode --mini ❌ fails
This looks like the ARM64 build is unable to initialize the native OpenTUI renderer.
Additional information
opencode web works correctly, so the CLI itself is functional.
The issue only occurs when initializing the terminal UI (OpenTUI).
Output:
Error: Unexpected error
Failed to initialize OpenTUI render library:
bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Plugins
None
OpenCode version
1.18.4
Steps to reproduce
Install OpenCode using Winget:
winget install SST.opencode
Open PowerShell.
Verify installation:
opencode --version
Run:
opencode
The application immediately exits with:
Failed to initialize OpenTUI render library:
bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Screenshot and/or share link
No response
Operating System
Windows 11 ARM64
Terminal
Windows PowerShell 7 (also reproducible in the VS Code integrated terminal)
I reproduced this issue on Windows 11 ARM64 and confirmed an experimental path forward by rebuilding OpenCode with Bun 1.4.0-canary.1, which includes Windows ARM64 bun:ffi/TinyCC support from oven-sh/bun#33696.
The resulting native ARM64 OpenCode 1.18.10 TUI completed bootstrap without TinyCC is disabled, bun:ffi dlopen() is not available, or OpenTUI initialization errors. This was a bounded startup validation, not the full OpenCode test suite, so official ARM64 readiness still requires OpenCode to build with a Bun version containing that fix and pass its complete Windows ARM64 test matrix.
I posted the reproducible build steps, validation performed, and remaining test gaps in #20767: #20767 (comment)
Activity
github-actions commentedon Jul 23, 2026
This issue might be a duplicate of existing issues. Please check:
sanathusk commentedon Jul 28, 2026
+1
RGutierrezWind commentedon Aug 1, 2026
I reproduced this issue on Windows 11 ARM64 and confirmed an experimental path forward by rebuilding OpenCode with Bun
1.4.0-canary.1, which includes Windows ARM64bun:ffi/TinyCC support from oven-sh/bun#33696.The resulting native ARM64 OpenCode 1.18.10 TUI completed bootstrap without
TinyCC is disabled,bun:ffi dlopen() is not available, or OpenTUI initialization errors. This was a bounded startup validation, not the full OpenCode test suite, so official ARM64 readiness still requires OpenCode to build with a Bun version containing that fix and pass its complete Windows ARM64 test matrix.I posted the reproducible build steps, validation performed, and remaining test gaps in #20767: #20767 (comment)
github-actions commentedon Oct 2, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.