rtk-ai/rtk

OpenCode Desktop does not detect rtk when launched from macOS GUI

Open

#2.039 geöffnet am 22. Mai 2026

Auf GitHub ansehen
 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:configbughelp wantedplatform:macospriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

Problem

RTK works when OpenCode is started from a terminal, but it does not work when using OpenCode Desktop launched normally.

This suggests the OpenCode Desktop runtime may not be loading the same environment as the user’s shell session. As a result, the RTK OpenCode plugin may fail to detect or execute the rtk binary even though RTK is installed and available in the terminal.

Expected Behavior

OpenCode Desktop should load the RTK plugin.

Actual Behavior

  • Starting OpenCode from terminal: RTK works.
  • Starting OpenCode Desktop normally: RTK does not appear to run.

Possible Cause

The Desktop app may be running with a different environment than the user’s login shell, especially a different PATH. The RTK plugin currently depends on resolving rtk from the runtime environment, so it may disable itself if the binary is not discoverable there.

Reproduction

  1. Install and configure RTK for OpenCode.
  2. Confirm RTK works when OpenCode is launched from terminal.
  3. Launch OpenCode Desktop normally.
  4. Run a command that should be rewritten by RTK.
  5. Observe that RTK is not used.

Contributor Guide