Skip to content

hooks: version floor says rtk rewrite came in 0.23.0; it came in 0.25.0 #5126

Done

Description

@KuSh

The Pi extension and the legacy shell hooks gate on rtk >= 0.23.0 "when rtk rewrite was introduced":

  • hooks/pi/rtk.ts: header comment, MIN_SUPPORTED_RTK_MINOR = 23, the two "need >= 0.23.0" messages
  • hooks/claude/rtk-rewrite.sh and hooks/cursor/rtk-rewrite.sh: Requires: line, version guard comment and warning
  • hooks/README.md ("rtk version too old (< 0.23.0)"), hooks/claude/README.md, hooks/cursor/README.md

rtk rewrite first shipped in 0.25.0: commit f447a3d (feat: rtk rewrite — single source of truth for LLM hook rewrites (#241)) is not an ancestor of v0.24.0 and is first contained in v0.25.0, and CHANGELOG.md lists it under 0.25.0. #3918 reports that the v0.23.0 and v0.24.0 release binaries answer rtk rewrite "git status" with exit 2 and empty stdout.

Nothing breaks today, because every one of these hooks passes the command through on a non-0/3 exit, so 0.23.0 and 0.24.0 fall open. The floor and its messages are still wrong: a user on 0.24.0 is told their rtk is recent enough and gets no rewrites. The fix is the floor (23 → 25) and the wording in the files above.

Activity

  1. added
    bug
    good first issue
    on Nov 16, 2026
  2. rtk-wshm-sync-bot commented on Nov 16, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟢 Priority low
    🎯 Confidence 93%

    Summary

    Version floor and docs incorrectly claim rtk rewrite shipped in 0.23.0 (it shipped in 0.25.0); update MIN_SUPPORTED_RTK_MINOR and related messages/docs.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • hooks/pi/rtk.ts
    • hooks/claude/rtk-rewrite.sh
    • hooks/cursor/rtk-rewrite.sh
    • hooks/README.md
    • hooks/claude/README.md
    • hooks/cursor/README.md

    Suggested Actions

    1. Bump MIN_SUPPORTED_RTK_MINOR from 23 to 25 in hooks/pi/rtk.ts and update its two warning messages
    2. Update Requires: lines and version-guard comments in hooks/claude/rtk-rewrite.sh and hooks/cursor/rtk-rewrite.sh
    3. Fix '< 0.23.0' wording in hooks/README.md, hooks/claude/README.md, hooks/cursor/README.md
    4. Reference CHANGELOG.md and commit f447a3d as the authoritative source for the 0.25.0 floor

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. visy-ani commented on Nov 22, 2026

    @visy-ani

    can i take this? will bump MIN_SUPPORTED_RTK_MINOR to 25 and fix the 0.23.0 mentions in the hook scripts and docs

  4. KuSh commented on Nov 22, 2026

    @KuSh
    CollaboratorAuthor

    can i take this? will bump MIN_SUPPORTED_RTK_MINOR to 25 and fix the 0.23.0 mentions in the hook scripts and docs

    Looks like there's already a PR from @TechWizard9999 on this one, so it might be more useful to spend your time reviewing or testing that one, or picking up another issue. Thanks for looking into it!

  5. TechWizard9999 commented on Nov 22, 2026

    @TechWizard9999
    Contributor

    @KuSh I've spotted issues in a few other open PRs. Is it okay if I review those too?

  6. visy-ani commented on Nov 22, 2026

    @visy-ani

    ah missed that, thanks

  7. added a commit that references this issue on Nov 28, 2026
    9748ac0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsbuggood first issuepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions