Short description
magic-context doctor cant find opencode in $PATH
What happened?
bin exists in path, and is chmod a+x:
ravi@svelte:~ [1]% run=bash ~/bin/opencode --ro ~/bin -- -c 'PATH=/bin:/home/ravi/.local/share/npm/bin; which opencode; stat $(which opencode); echo "PATH=$PATH"; magic-context doctor'
Setting run cmd to: bash
/bin/opencode
File: /bin/opencode
Size: 145324160 Blocks: 280544 IO Block: 4096 regular file
Device: 0,38 Inode: 46499604 Links: 1
Access: (0755/-rwxr-xr-x) Uid: (65534/ nobody) Gid: (65534/ nobody)
Access: 2026-05-31 19:12:59.000000000 +0700
Modify: 2026-05-31 07:55:51.000000000 +0700
Change: 2026-05-31 19:12:59.541564394 +0700
Birth: 2026-05-31 19:12:59.248839309 +0700
PATH=/bin:/home/ravi/.local/share/npm/bin
│
● Detected OpenCode — using it for diagnose.
│
◇ Running doctor for OpenCode…
┌ Magic Context Doctor
│
■ OpenCode is not installed or not in PATH
│
● Doctor checked ~/.opencode/bin/opencode and each entry in $PATH.
│
● If `which opencode` succeeds outside doctor, your wrapper or shim may not be readable by Node — please share that wrapper in the issue.
│
└ Doctor failed — install OpenCode first
Diagnostics
Plugin version
Magic Context CLI v0.21.8 is current (npm latest v0.21.8)
OpenCode version
No response
Platform
Linux Manjaro
Client
Unknown
Log output (optional)
/tmp/magic-context.log doesn't exist. Does doctor produce logs? @AIBOT This may be another issue.
Short description
magic-contextdoctor cant find opencode in $PATHWhat happened?
bin exists in path, and is chmod a+x:
Diagnostics
Plugin version
Magic Context CLI v0.21.8 is current (npm latest v0.21.8)
OpenCode version
No response
Platform
Linux Manjaro
Client
Unknown
Log output (optional)
/tmp/magic-context.log doesn't exist. Does doctor produce logs? @AIBOT This may be another issue.