Skip to content

Fix opencode PATH resolution in sidebar launches#28

Merged
nicosuave merged 1 commit intomainfrom
nicosuave/resolve-opencode-path
Mar 5, 2026
Merged

Fix opencode PATH resolution in sidebar launches#28
nicosuave merged 1 commit intomainfrom
nicosuave/resolve-opencode-path

Conversation

@nicosuave
Copy link
Member

Summary

  • Add an opencode wrapper script (matching the existing claude/codex/copilot pattern) that augments PATH with common install locations before finding and exec-ing the real binary
  • Add ~/.opencode/bin to the PATH augment snippet used by all agent wrappers and to the availability check search paths

Fixes the issue where clicking "+" in the sidebar to start an opencode session fails with opencode: not found because Ghostty's launch mechanism uses a profileless bash (--noprofile --norc) that only has the bare system PATH. opencode was the only agent without a wrapper script to handle this.

@nicosuave nicosuave merged commit cad50bf into main Mar 5, 2026
120 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant