[BUG/Feature] Hooks UI does not allow for "empty"/null matcher

Resolved 💬 3 comments Opened Jul 19, 2025 by hesreallyhim Closed Jul 24, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: Current version: 1.0.56
  • Operating System: macOS 15.5
  • Terminal: VS-Code terminal

Bug Description

The "universal" (catch-all) matcher for a hook is either empty string or omit "matcher", per the docs:

omit “matcher” or use "matcher": ""

But in the /hooks "UI", there is no way to omit "matcher" or submit empty string. Submitting "" produces "\"\"", i.e. a "quoted" empty string, which does not match the same way (doesn't match anything). So, again, the /hooks interface forces the user outside of the primary flow, which is non-optimal IMO.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗