The whole hunk
from line 139, old and new numbered
/
lines
from line 139
139139| `WorktreeRemove` | When a worktree is being removed at session exit, when a subagent finishes, or when you delete a background session |
140140| `PreCompact` | Before context compaction |
141141| `PostCompact` | After context compaction completes |
142| `PreModelSwitch` | Before Claude Code applies a model switch that you or a client requested. Can block the switch |
143| `PostModelSwitch` | After the session's model changes, including changes Claude Code makes on its own, such as restoring the model when you resume a session |
142144| `Elicitation` | When an MCP server requests user input during a tool call |
143145| `ElicitationResult` | After a user responds to an MCP elicitation, before the response is sent back to the server |
144146| `SessionEnd` | When a session terminates |