Skip to content

fix: make OpenCode plugin work under OpenCode Desktop (Node runtime) - #2705

Closed
mvanhorn wants to merge 1 commit into
rtk-ai:developfrom
mvanhorn:fix/2650-opencode-desktop-hook
Closed

mvanhorn wants to merge 1 commit into
rtk-ai:developfrom
mvanhorn:fix/2650-opencode-desktop-hook

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Summary

Makes the OpenCode plugin work under OpenCode Desktop, which runs plugins in a Node runtime rather than Bun. GUI launches on macOS may not inherit the shell PATH, so the plugin now resolves the rtk binary from RTK_BIN, PATH, ~/.local/bin, ~/.cargo/bin, and the common Homebrew locations, and falls back to node:child_process when the Bun shell helper is absent.

Fixes #2650

AI was used for assistance.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Working hook for OpenCode Desktop

1 participant