[FEATURE] Add attention_reason to Notification hooks

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Jan 22, 2026 · closed Jan 22, 2026

Problem

Determining if a session needs user attention requires parsing the message field with regex. notification_type alone isn't reliable.

Proposal

Add structured fields:

{
  "hook_event_type": "Notification",
  "attention_reason": "permission_request",
  "requires_user_attention": true
}

Enum values: permission_request, needs_input, error, completed, info

Why

This would make external tools more reliable. Example:
https://github.com/usedhonda/cc-status-bar

View original on GitHub ↗

4 Comments

usedhonda · 8 months ago

Screenshot

Here's what CC Status Bar looks like in action:

!CC Status Bar Screenshot

The color indicators (green/yellow) would be more reliable with attention_reason enum.

github-actions[bot] · 8 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/11189

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

usedhonda · 8 months ago

Closing as duplicate of #11189. I'll add my use case there instead.

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.