[BUG]

Resolved 💬 3 comments Opened Aug 1, 2025 by chris-sanders Closed Jan 3, 2026

Environment

  • Platform (select one):
  • [ x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.65 (Claude Code) but it auto-updates obviously
  • Operating System: macOS 15.5 (24F74)
  • Terminal: ghostty w/ tmux

Bug Description

I'm getting stop hooks triggered for an idle claude-code.

2025-08-01 12:39:43,369 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 12:39:43,370 [hook_utils] INFO: Raw payload: {
  "session_id": "5ebe18cd-b778-4770-b343-dd6670e5e0f6",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 12:39:43,595 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 12:39:43,595 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 12:55:52,148 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 12:55:52,148 [hook_utils] INFO: Raw payload: {
  "session_id": "51309e9b-4aa3-4565-95bf-72d0f00e521b",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 12:55:52,363 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 12:55:52,363 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 13:01:39,917 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 13:01:39,918 [hook_utils] INFO: Raw payload: {
  "session_id": "ea3c064a-aa4e-4aa3-80c5-5010f7d550e6",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 13:01:40,140 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 13:01:40,140 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 13:04:41,360 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 13:04:41,360 [hook_utils] INFO: Raw payload: {
  "session_id": "aa8cae93-9dd8-42a4-9af3-07f1e1d31704",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 13:04:41,599 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 13:04:41,599 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 13:41:56,866 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 13:41:56,866 [hook_utils] INFO: Raw payload: {
  "session_id": "496a82e1-99b9-4971-b9af-106ba5c4d376",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 13:41:57,103 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 13:41:57,103 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 14:12:16,452 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 14:12:16,453 [hook_utils] INFO: Raw payload: {
  "session_id": "45d4563d-7fdb-4aa6-bb00-4eed4b75e0c1",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 14:12:16,708 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 14:12:16,708 [hook_utils] INFO: All 2 hooks completed successfully
2025-08-01 14:33:13,058 [hook_utils] INFO: Running 2 hooks for Stop on None
2025-08-01 14:33:13,059 [hook_utils] INFO: Raw payload: {
  "session_id": "8a514947-5d72-46ab-bb7a-2aa4bd2a63d6",
  "hook_event_name": "Stop",
  "stop_hook_active": false
}
2025-08-01 14:33:13,276 [__main__] INFO: Home Assistant stop notification sent successfully
2025-08-01 14:33:13,276 [hook_utils] INFO: All 2 hooks completed successfully

I removed a few fields for privacy, but I went to lunch, left claude-code open, and as you'll see it's triggering stop hook s every like 15-20 minutes. I have a python script logging the above on each stop hook call, and I send a notification which is why I noticed it.

Steps to Reproduce

  1. Launch claude code and do something
  2. Don't do anything for an hour
  3. See hooks firing continuously, at least the STOP hook possibly others

Expected Behavior

Hooks only fire at the given event.

View original on GitHub ↗

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