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
opencode command disappears after exit because auto-upgrade misdetects install method #26479
When opencode starts, the auto-upgrade flow can infer installation method from process.execPath (Node/Bun runtime path) instead of the invoked opencode CLI path. In some local setups this can select the wrong installer path and leave the command unavailable after exit.
System information
OpenCode version: 1.14.41
Operating system: Linux
Reproduction
Install and run opencode in an environment where runtime executable path differs from the installed CLI shim path.
Start opencode and allow startup update checks.
Exit the command.
Observe that opencode may no longer resolve in shell.
Expected
opencode remains installed and available after running/exiting.
Proposed fix
Use invoked command path (process.argv[1] fallback chain) in installation method detection heuristics, instead of relying on process.execPath.
Activity
github-actions commentedon Jul 9, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.