Skip to content

feat: hook bypass: $(...) subshell, backticks, and xargs <cmd> skip#2693

Open
wilmerdooley wants to merge 1 commit into
rtk-ai:developfrom
wilmerdooley:oss/issue-2145
Open

feat: hook bypass: $(...) subshell, backticks, and xargs <cmd> skip#2693
wilmerdooley wants to merge 1 commit into
rtk-ai:developfrom
wilmerdooley:oss/issue-2145

Conversation

@wilmerdooley

Copy link
Copy Markdown

Resolves #2145.

The rtk hook claude PreToolUse rewriter correctly handles top-level commands and common compound forms (|, ;, &&) but bypasses three runtime-resolved patterns. Result: commands that should be rewritten ship as bare invocations, leaking token savings.

Summary

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

Important: All PRs must target the develop branch (not master).
See CONTRIBUTING.md for details.

Signed-off-by: wilmerdooley <wilmerdooley1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook bypass: $(...) subshell, backticks, and xargs <cmd> skip auto-rewrite

1 participant