Skip to content

feat(hooks): allow configured ask rewrites#2698

Draft
wyf027 wants to merge 1 commit into
rtk-ai:developfrom
wyf027:feat/allow-ask-commands-1344
Draft

feat(hooks): allow configured ask rewrites#2698
wyf027 wants to merge 1 commit into
rtk-ai:developfrom
wyf027:feat/allow-ask-commands-1344

Conversation

@wyf027

@wyf027 wyf027 commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Fixes Config key to auto-allow specific ask-level commands ([hooks] allow_ask_commands) #1344.
  • Add [hooks].allow_ask_commands so users can opt specific ask-level rewritten commands into auto-allow behavior.
  • Apply the allowlist consistently to rtk rewrite exit-code handling and JSON hook decisions while preserving deny and unsafe-shell safeguards.
  • Document the new config key and add focused tests for config parsing and hook/rewrite behavior.

Test plan

  • cargo fmt --all --check
  • cargo test allow_ask -- --nocapture
  • git diff --check
  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk rewrite "vitest --run" output inspected

@CLAassistant

CLAassistant commented Jun 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Config key to auto-allow specific ask-level commands ([hooks] allow_ask_commands)

2 participants