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
android: su fails with "No daemon is currently running!" because the shell sandbox does not bind /debug_ramdisk #59942
On a Magisk-rooted Android device, su from the agent shell always fails:
$ su -c id
No daemon is currently running! # exit 1
$ magisk -c
28.1:MAGISK:R (28100) # client binary is fine
$ magisk --path
(empty) # tmp dir not discoverable
Root is healthy: in Termux on the same device su -c id returns uid=0(root), and the device mount table has magisk on /debug_ramdisk type tmpfs, magisk on /system/bin type tmpfs, magisk on /system/lib64/libzygisk.so type tmpfs.
Cause: Magisk 28.1 keeps magiskd at %s/.magisk/device/socket (format string is in the client binary), where %s is /debug_ramdisk. The Android shell runs under proot with root /data/user/0/com.opencode/files and binds only:
/debug_ramdisk is missing, so the client cannot reach the socket. /proc/self/mountinfo inside the sandbox also shows no magisk mounts, consistent with magisk --path being empty.
Plugins
none
OpenCode version
2.0.27 (bootstrap 3, tools 6)
Steps to reproduce
On a Magisk-rooted device, run su -c id in the agent shell.
Thanks for the detailed write-up and the root-cause analysis.
One thing to clear up first: as far as I can tell, the proot sandbox you describe isn't part of OpenCode. That's the com.opencode app with its root at /data/user/0/com.opencode/files, the -b ...:/opt/oc-lib binds, oc-shell and the "bootstrap 3, tools 6" version string. OpenCode v2 doesn't ship an Android app, and its shell tool runs commands without a proot sandbox. The Kotlin fix you suggest would have to go into whichever app builds those proot arguments.
Could you tell us:
Which Android app this is and where you got it (Play Store, F-Droid, a GitHub release; a link would help)?
Whether su -c id also fails when you run the opencode CLI directly in Termux (installed with npm, @opencode/cli) and ask the agent to run it there?
You can reply here or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
Related Android/Termux issues, though neither covers this problem:
Closing this as not planned because we haven't heard back. We needed to know which Android app runs the proot sandbox (com.opencode, oc-shell, "bootstrap 3, tools 6"). OpenCode itself doesn't ship that app or build those bind mounts, so the /debug_ramdisk fix would have to go to whoever maintains it.
If su -c id also fails when you run the opencode CLI directly in Termux, or you can point us to where the app comes from, please reply or open a new issue with those details and we'll look again. Thanks for the thorough analysis.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the detailed write-up and the root-cause analysis.
One thing to clear up first: as far as I can tell, the proot sandbox you describe isn't part of OpenCode. That's the
com.opencodeapp with its root at/data/user/0/com.opencode/files, the-b ...:/opt/oc-libbinds,oc-shelland the "bootstrap 3, tools 6" version string. OpenCode v2 doesn't ship an Android app, and its shell tool runs commands without a proot sandbox. The Kotlin fix you suggest would have to go into whichever app builds those proot arguments.Could you tell us:
su -c idalso fails when you run theopencodeCLI directly in Termux (installed with npm,@opencode/cli) and ask the agent to run it there?You can reply here or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
Related Android/Termux issues, though neither covers this problem:
opencodejr commentedon Oct 31, 2026
Closing this as not planned because we haven't heard back. We needed to know which Android app runs the proot sandbox (
com.opencode,oc-shell, "bootstrap 3, tools 6"). OpenCode itself doesn't ship that app or build those bind mounts, so the/debug_ramdiskfix would have to go to whoever maintains it.If
su -c idalso fails when you run theopencodeCLI directly in Termux, or you can point us to where the app comes from, please reply or open a new issue with those details and we'll look again. Thanks for the thorough analysis.