[Bug] Conditional hook substitution fires incorrectly when IF condition doesn't match expanded command
Status Open
Reported on v2.1.224
Maintainer reply None cached
Activity 1 comment · opened Aug 7, 2026
Bug Description
https://github.com/anthropics/claude-code/issues/48722 this issue is still valid as of 2.1.224 version, any substitution make the hook fires even when i have IF not matching what we have in the expanded command
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.224
- Feedback ID: 0dfbda4a-a455-4b42-af6c-b11e8e9d6644
Errors
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗