-
Notifications
You must be signed in to change notification settings - Fork 11
fix: get hook_type from process.argv[2] instead of payload #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The hook_type is now properly retrieved from command line arguments (process.argv[2]) and added to the payload, allowing Claude to pass the hook type via CLI rather than requiring it in the JSON payload. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Caution Review failedThe pull request is closed. WalkthroughThe Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
## [1.1.2](v1.1.1...v1.1.2) (2025-07-04) ### Bug Fixes * get hook_type from process.argv[2] instead of payload ([#10](#10)) ([06a7210](06a7210))
|
🎉 This PR is included in version 1.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
runHookfunction to gethook_typefromprocess.argv[2]Test plan
✅ Tested PreToolUse hook with safe commands
✅ Tested PreToolUse hook blocks dangerous commands (rm -rf)
✅ Tested Notification hook
✅ Verified session files are created with correct hook_type
✅ All hooks work without hook_type in the input JSON
🤖 Generated with Claude Code
Summary by CodeRabbit