anomalyco / anomalyco/opencode
Official Alpine image: integrated terminal fails because bun-pty lacks musl support
@rekram1-node is already working on this.
Since Sep 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
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 bun-pty@0.4.8, whose Linux PTY library is glibc-linked. Musl support was added in bun-pty@0.4.10.
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-ptyto0.4.10or 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
- Run
ghcr.io/anomalyco/opencode:1.18.29withopencode serve --hostname 0.0.0.0 --port 4096. - Connect directly to port 4096 using the web interface or Flatpak desktop client.
- Open the integrated terminal.
- Observe that the terminal remains blank.
- Install
gcompat, exportLD_PRELOAD=/lib/libgcompat.so.0, and restart OpenCode. - 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.