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 leaves a pre-v0.10 CLAUDE.md RTK block in place and adds @RTK.md next to it #4423
rtk v0.9.x (v0.9.0–v0.9.4, released 3–6 February 2026) rtk init -g wrote the RTK instructions into ~/.claude/CLAUDE.md opening with <!-- rtk-instructions v2 --> and no closing marker (git show v0.9.4:src/init.rs: one rtk-instructions v2, no /rtk-instructions). The closing marker arrived in v0.10.0 (7 February 2026).
When rtk init -g on develop (4f9015f) meets that block, it warns and leaves it in place, then appends @RTK.md. Here the 132-line v0.9.4 block was written into an isolated HOME:
The hook is registered, so auto-rewrite works. But the full v0.9 instructions stay in every session's context next to the slim RTK.md, and re-running init never removes them. The block is rtk's own output, so its extent is known: it is the v0.9.x RTK_INSTRUCTIONS text. remove_rtk_block could recognise that shape (opening marker, no closing marker, content matching a shipped legacy template) instead of only warning.
Found while checking the Windows migration docs in #4350.
rtk init -g detects pre-v0.10 unterminated RTK blocks in CLAUDE.md but only warns and leaves them in place, duplicating instructions alongside the new @RTK.md reference
📁 Relevant files
src/init.rs
Suggested Actions
Extend remove_rtk_block to recognize opening marker + no closing marker + content matching shipped v0.9.x RTK_INSTRUC…
Add a regression test that seeds a v0.9.4-shaped CLAUDE.md and asserts the legacy block is removed, not just warned abo…
Activity
rtk-wshm-sync-bot commentedon Oct 3, 2026
🔍 Automated Triage
bugmediumSummary
rtk init -g detects pre-v0.10 unterminated RTK blocks in CLAUDE.md but only warns and leaves them in place, duplicating instructions alongside the new @RTK.md reference
📁 Relevant files
src/init.rsSuggested Actions
remove_rtk_blockto recognize opening marker + no closing marker + content matching shipped v0.9.x RTK_INSTRUC…rtk init --agent antigravityleaves the rules file written by earlier releases in place, on install and on uninstall #4317 (similar legacy-file-left-in-place pattern for antigravity agent) for a shared fix approachTriaged automatically by wshm · This is an automated analysis, not a human review.