[Bug] Agent hooks PreToolUse missing messages context

Resolved 💬 3 comments Opened Mar 25, 2026 by tddyco Closed Mar 28, 2026

Bug Description
2026-03-25T01:13:39.989Z [DEBUG] Hook PreToolUse:Bash (PreToolUse) error:
Failed to run: Messages are required for agent hooks. This is a bug.

See https://github.com/anthropics/claude-code/issues/22637 and https://github.com/anthropics/claude-code/issues/26474

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.81
  • Feedback ID: 671508a9-f421-4a01-99be-d4e140ffa0ba

View original on GitHub ↗

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