9 people asked for
All time, since Sep 25, including 8 thumbs-up on GitHub.
Replace error output in hooks
“When a Bash command exits nonzero, the full raw error text always reaches the model, and a hook can only append to it.”
What gets counted gets built. Pile on.
Paste this into your agent. It files your request, with what you need it for.
I want this: rapsheet.dev/sheets/claude-code/issues/1502/file Follow it to file my request. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Let PostToolUseFailure hooks replace error output the model sees. A PostToolUse hook can swap in updatedToolOutput for successful calls, but on a nonzero Bash exit the full raw error text still reaches the model.
Is this your request?
File my request- Where
- PostToolUseFailure hooks
- Platforms
- Linux
Original reports1, newest first
- Let PostToolUseFailure hooks replace the error output the model sees (re-file of #77180)#97278