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
rtk init -g --opencode installs no plugin when the Claude side fails first #4413
With #4323, --opencode also installs the Claude setup (#4046), so a Claude-side failure that happens before the OpenCode install ends the command with exit 1 and no plugin. Before #4323--opencode touched only OpenCode, so these inputs exited 0 with the plugin installed.
Fresh HOME, LC_ALL=C, stdin /dev/null:
~/.claude/CLAUDE.md contains <!-- rtk-instructions with no closing marker: rtk init -g --opencode --claude-md -> exit 1, plugin missing (write_rtk_block refuses the malformed block before the install).
~/.claude mode 555: rtk init -g --opencode --auto-patch -> exit 1, plugin missing (Failed to write RTK.md ... Permission denied, before the install in run_default_mode).
Both fail loudly with the offending path, and plain rtk init -g fails the same way on those inputs. The question is whether the OpenCode install should be independent of the Claude side, for example by running first, or by attempting both and reporting each outcome.
Since #4323, rtk init -g --opencode aborts with exit 1 and installs nothing if the Claude-side setup fails first, a regression from the prior independent behavior.
📁 Relevant files
src/init/mod.rs
src/init/claude.rs
src/init/opencode.rs
Suggested Actions
Decide design: run OpenCode install independently/first, or attempt both and report each outcome
Check run_default_mode ordering where Claude-side write_rtk_block/RTK.md write happens before OpenCode install
Activity
rtk-wshm-sync-bot commentedon Oct 3, 2026
🔍 Automated Triage
bughighSummary
Since #4323,
rtk init -g --opencodeaborts with exit 1 and installs nothing if the Claude-side setup fails first, a regression from the prior independent behavior.📁 Relevant files
src/init/mod.rssrc/init/claude.rssrc/init/opencode.rsSuggested Actions
run_default_modeordering where Claude-sidewrite_rtk_block/RTK.md write happens before OpenCode installrtk init --opencodeappears to skip Claude hook installation #4046 (Claude setup) for intended couplingrtk-instructionsmarker and read-only~/.claudeto cover both reported failure m…Triaged automatically by wshm · This is an automated analysis, not a human review.
TechWizard9999 commentedon Oct 5, 2026
Hi @KuSh , Can I look into this again if possible ?
fix(init): install the OpenCode plugin independently of agent setup
chore(upstream): merge 341 commits from rtk-ai/rtk develop (2 Novembe…
chore(upstream): record rtk-ai/rtk develop 22812af as merged so the n…