[Bug] PostToolUse "block" reason is additive not substitutive; SubagentStop exit-2 behavior undocumentedroceed

Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened May 2, 2026 · closed Jun 2, 2026

Bug Description
Two undocumented behaviors in Claude Code's PostToolUse / SubagentStop
hooks that affect agent-orchestration patterns:

(1) PostToolUse:Agent with decision: "block" + reason. Docs say
"prevents Claude from seeing the result" + "reason shown to Claude
when blocked" — natural reading is reason substitutes for the body.
Empirically: the original tool_response.output lands in the parent
agent's transcript IN FULL, AND the reason is appended as an

Note: Content was truncated.

View original on GitHub ↗

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