-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Open
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
What happened?
After updating from v1.1.20 to v1.1.21, OpenCode fails to start the TUI interface in a Termux PRoot environment (running Ubuntu via proot-distro on Android ARM64).
The process hangs or exits immediately. Using --print-logs reveals a critical error in the new OpenTUI render library. It appears v1.1.21 attempts to load shared libraries via memfd_create referenced through /proc/self/fd/, which is intercepted and restricted by PRoot, causing a "Permission denied" error.
Key Findings:
- Regression: Version
1.1.20works perfectly in the same environment. - Workaround: Downgrading to
1.1.20resolves the issue immediately. - Failed Fixes: Cleaning
~/.cache/opencode,~/.local/share/opencode, and attempting to setL2S_DLOPEN_TMPDIRorTMPDIRto a physical directory did not resolve the issue.
Error Logs:
INFO 2026-01-15T05:55:13 +290ms service=default version=1.1.21 args=["--print-logs"] opencode
ERROR 2026-01-15T05:55:13 +112ms service=default e=Failed to initialize OpenTUI render library: Failed to open library "/proc/self/fd/19": /proc/self/fd/19: cannot open shared object file: Permission denied rejection
ERROR 2026-01-15T05:55:13 +0ms service=default Error: Failed to initialize OpenTUI render library: Failed to open library "/proc/self/fd/19": /proc/self/fd/19: cannot open shared object file: Permission denied
Environment:
- OS: Android (Termux)
- Environment: PRoot container (Debian)
- Architecture: aarch64 (ARM64)
- Package Manager: pnpm / bun
Plugins
@opencode-ai/plugin, opencode-anthropic-auth (Core plugins)
OpenCode version
1.1.21 (Issue present), 1.1.20 (Last working version)
Steps to reproduce
- Set up a Termux environment on Android.
- Install a PRoot distro (e.g.,
proot-distro install debian). - Login to PRoot (
proot-distro login ubuntu). - Install the latest OpenCode:
pnpm add -g opencode-ai@1.1.21. - Run
opencode. - Observation: The TUI does not render. Running
opencode --print-logsshows the/proc/self/fdpermission denied error.
Screenshot and/or share link
No response
Operating System
Android (Termux) running debian via proot-distro (aarch64)
Terminal
Termux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui