[Bug] PreToolUse/PostToolUse hooks not fired for subagent tool calls

Status Closed — not planned
Reported on v2.1.231
Maintainer reply None cached
Activity 2 comments · opened Aug 13, 2026 · closed Aug 22, 2026

Bug Description
PreToolUse/PostToolUse "fire the same configured hooks as in the main conversation" inside subagents, carrying agent_id/agent_type. They don't explicitly split out background/async Agent-tool dispatches from inline subagent turns — but the live test shows this dispatch path behaves as if hooks are simply not evaluated for it at all, which contradicts the documented guarantee regardless of how you categorize the dispatch mechanism internally.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.231
  • Feedback ID: 01d67556-0e7d-40ee-b896-80a1e50e5a80

Errors

[]

View original on GitHub ↗

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