Repository navigation
feat: hook bypass: $(...) subshell, backticks, and xargs <cmd> skip - #2693
wilmerdooley wants to merge 1 commit into
Conversation
Signed-off-by: wilmerdooley <wilmerdooley1@gmail.com>
|
Thank you for this. Both halves target code that has since been replaced: the pipe-tail rewriting in rewrite_compound gave way to the pipeline-safety model merged in #3128 (2026-07-23) and #3343, where only a verified-safe final stage is rewritten and |
Resolves #2145.
The
rtk hook claudePreToolUse 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 testrtk <command>output inspected