Skip to content

Official Alpine image: integrated terminal fails because bun-pty lacks musl support #48688

Closed as not planned

Description

@alterdaemon

Description

The integrated terminal remains blank when connecting to the official ghcr.io/anomalyco/opencode:1.18.29 server from either the browser or Flatpak desktop client. It also fails through the directly exposed service port, without a reverse proxy.

The official image uses Alpine/musl, while OpenCode 1.18.29 pins [email protected], whose Linux PTY library is glibc-linked. Musl support was added in [email protected].

Installing Alpine's gcompat package and preloading it fixes the terminal:

apk add --no-cache gcompat && export LD_PRELOAD=/lib/libgcompat.so.0

Suggested fix:

  • Upgrade bun-pty to 0.4.10 or newer.
  • Add a container test that creates a PTY instead of only running opencode --version.

Plugins

No plugins required to reproduce.

OpenCode version

1.18.29, official ghcr.io/anomalyco/opencode image.

Steps to reproduce

  1. Run ghcr.io/anomalyco/opencode:1.18.29 with opencode serve --hostname 0.0.0.0 --port 4096.
  2. Connect directly to port 4096 using the web interface or Flatpak desktop client.
  3. Open the integrated terminal.
  4. Observe that the terminal remains blank.
  5. Install gcompat, export LD_PRELOAD=/lib/libgcompat.so.0, and restart OpenCode.
  6. Observe that the terminal now works.

Screenshot and/or share link

No response

Operating System

Official OpenCode Alpine Linux container.

Terminal

OpenCode integrated terminal in browser and Flatpak desktop client.

Activity

  1. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  2. alterdaemon commented on Oct 12, 2026

    @alterdaemon
    Author

    But the same issue occurs on V2 ... Same Case

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