[DOCS] SubagentStop hook reference missing agent_id and agent_transcript_path added in 2.0.42
Documentation Type
Incorrect/outdated documentation
Documentation Location
https://code.claude.com/docs/en/hooks#stop/subagentstop-decision-control
Section/Topic
Stop/SubagentStop Decision Control
Current Documentation
Stop and SubagentStop Input
stop_hook_active is true when Claude Code is already continuing as a result of
a stop hook. Check this value or process the transcript to prevent Claude Code
from running indefinitely.
```json theme={null}
{
"session_id": "abc123",
"transcript_path": "~/.claude/projects/.../00893aaf-19fa-41d2-8238-13269b9b3ca0.jsonl",
"permission_mode": "default",
"hook_event_name": "Stop",
"stop_hook_active": true
}
### What's Wrong or Missing?
```
"agent_id": <hexadecimal code string>,
"agent_transcript_path": <.jsonl transcript path>
Suggested Improvement
An advanced example showing parsing of the transcript would be superb!!
Impact
Medium - Makes feature difficult to understand
Additional Context
Also may need updating:
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗