Skip to content

fix(hook): preserve command bypass prefix - #3246

Open
nightcityblade wants to merge 1 commit into
rtk-ai:developfrom
nightcityblade:fix/hook-command-bypass
Open

nightcityblade wants to merge 1 commit into
rtk-ai:developfrom
nightcityblade:fix/hook-command-bypass

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #3230

Summary

  • Leaves commands prefixed with the POSIX command bypass untouched by hook rewriting.
  • Adds regression coverage for direct commands, pipelines, and environment-prefixed pipeline stages.

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: target/debug/rtk rewrite 'command git status' produced no rewrite, while the git status control rewrote to rtk git status.

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

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


nightcityblade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@pszymkowiak

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! Before we can review and merge this, the CLA needs to be signed. The CLAassistant bot left the link above, it only takes a minute. Once it's signed we'll pick the review up.

@rtk-release-bot rtk-release-bot Bot removed the stale label Nov 2, 2026
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 rewrites the command bypass prefix into command rtk …, inverting the one prefix used to escape wrappers

3 participants