Skip to content

OpenTUI fails to start on Windows ARM64: bun:ffi dlopen() is not available in this build #38520

Closed as not planned

Description

@dufacc

Description

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

  1. Install OpenCode using Winget:

    winget install SST.opencode

  2. Open PowerShell.

  3. Verify installation:

    opencode --version

  4. Run:

    opencode

  5. 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)

Activity

  1. github-actions commented on Jul 23, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. sanathusk commented on Jul 28, 2026

    @sanathusk

    +1

  3. RGutierrezWind commented on Aug 1, 2026

    @RGutierrezWind

    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)

  4. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions