Reference
Hook events
The event of each agent that sets each session state.
Claude Code
| Event | State |
|---|---|
SessionStart | Done (the session waits for a first prompt) |
UserPromptSubmit, PreToolUse, PostToolUse | Working |
Notification | Waiting |
Stop | Done |
SessionEnd | Stopped (the session leaves the list) |
Codex
| Event | State |
|---|---|
SessionStart, Stop, Interrupt | Done |
UserPromptSubmit, PreToolUse, PostToolUse | Working |
PermissionRequest | Waiting |
SessionEnd | Stopped |
OpenCode
The Widgetful plugin sends these events. It sends one event at a time, so that the states arrive in the correct order.
| Event | State |
|---|---|
session.status busy or retry, permission.replied | Working |
session.status idle, session.idle | Done |
permission.asked | Waiting |
session.deleted | Stopped |