The whole hunk
from line 1348, old and new numbered
/
lines
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 1348
13481348
13491349#### UserPromptSubmit input
13501350
1351In addition to the [common input fields](#common-input-fields), UserPromptSubmit hooks receive the `prompt` field containing the text the user submitted.
1351In addition to the [common input fields](#common-input-fields), UserPromptSubmit hooks receive the `prompt` field containing the text the user submitted. Pasted content that collapsed to a `[Pasted text #N]` placeholder arrives expanded in place. In sessions where Claude Code [marks pasted text for Claude](/docs/en/terminal-config#how-claude-treats-pasted-text), that expanded content sits between a `<pasted_content id="…">` line and a `</pasted_content id="…">` line, so account for those lines if your hook parses the prompt.
13521352
13531353```json theme={null}
13541354{
from line 2663
26632663}
26642664```
26652665
2666StopFailure hooks have no decision control. They run for notification and logging purposes only.
2667
2668### TeammateIdle
2669
2670Runs when an [agent team](/docs/en/agent-teams) teammate is about to go idle after finishing its turn. Use this to enforce quality gates before a teammate stops working, such as requiring passing lint checks or verifying that output files exist.
2671
2672TeammateIdle hooks don't support match
2666StopFailure hooks ha