Skip to content

fix(hook): propagate global flags through Claude rewrites#2993

Open
coyaSONG wants to merge 1 commit into
rtk-ai:developfrom
coyaSONG:fix/hook-propagate-global-flags
Open

fix(hook): propagate global flags through Claude rewrites#2993
coyaSONG wants to merge 1 commit into
rtk-ai:developfrom
coyaSONG:fix/hook-propagate-global-flags

Conversation

@coyaSONG

Copy link
Copy Markdown

Summary

  • propagate --ultra-compact and --skip-env from rtk hook claude into each rewritten RTK command
  • preserve environment-prefixed and compound rewrites without modifying raw pipe consumers or rtk arguments
  • add CLI parsing and hook regression coverage

Fixes #2984.

Test plan

  • cargo fmt --all --check
  • cargo clippy --all-targets
  • cargo test --all
  • Manual testing: Claude PreToolUse payload returns rtk --ultra-compact --skip-env next

Signed-off-by: coyaSONG <66289470+coyaSONG@users.noreply.github.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: --ultra-compact and --skip-env are accepted but never propagate into the rewritten command

1 participant