Skip to content

[Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64): "Permission denied" on /proc/self/fd #8620

Closed

Description

@tered12114-bot

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:

  1. Regression: Version 1.1.20 works perfectly in the same environment.
  2. Workaround: Downgrading to 1.1.20 resolves the issue immediately.
  3. 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

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

  1. Set up a Termux environment on Android.
  2. Install a PRoot distro (e.g., proot-distro install debian).
  3. Login to PRoot (proot-distro login ubuntu).
  4. Install the latest OpenCode: pnpm add -g opencode-ai@1.1.21.
  5. Run opencode.
  6. Observation: The TUI does not render. Running opencode --print-logs shows the /proc/self/fd permission denied error.

Screenshot and/or share link

No response

Operating System

Android (Termux) running debian via proot-distro (aarch64)

Terminal

Termux

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 15, 2026
  2. github-actions commented on Jan 15, 2026

    @github-actions
    Contributor

    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.

  3. mike-shen-github commented on Jan 15, 2026

    @mike-shen-github

    This bug wasted me 4hours....

  4. tered12114-bot commented on Jan 16, 2026

    @tered12114-bot
    Author

    This bug wasted me 4hours....

    me too............

  5. tered12114-bot commented on Jan 18, 2026

    @tered12114-bot
    Author

    The bug has been fixed in 1.1.25

  6. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions