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
[Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64): "Permission denied" on /proc/self/fd #8620
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.20 works perfectly in the same environment.
Workaround: Downgrading to 1.1.20 resolves the issue immediately.
Failed Fixes: Cleaning ~/.cache/opencode, ~/.local/share/opencode, and attempting to set L2S_DLOPEN_TMPDIR or TMPDIR to 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
Activity
github-actions commentedon Jan 15, 2026
This issue might be a duplicate of existing issues. Please check:
All of these relate to v1.1.21 regressions or Termux/Proot environment issues. Feel free to ignore if your specific case is distinct from these.
mike-shen-github commentedon Jan 15, 2026
This bug wasted me 4hours....
tered12114-bot commentedon Jan 16, 2026
me too............
tered12114-bot commentedon Jan 18, 2026
The bug has been fixed in 1.1.25
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.