Artifact 33e13ea30cffb49e5c80f66c8fa6c405e271fbed35eab2d3fd704e62ceb2c586:
- File docs/reference/events.md — part of check-in [ee511df7eb] at 2026-11-23 17:09:56 on branch grapevine-3 — Grapevine stage 3: the terminal joins a conversation another pic runs. /resume marks it running in another pic; the follower shows the running request, its tool calls under way and its reply as it streams (pic attach tails the owner's .live file), a typed line steers it, and a dead owner is reported interrupted (agent_end) so Enter resumes it. prompt joins the inbox with Pi's busy rules; one sent idle runs after the next request, pic --mode rpc included; pic attach -i starts a request from Pi's prompt. pic sessions --json gains live. (user: dmestas, size: 2071) [annotate] [blame] [check-ins using] [more...]
JSON events
The event lines pic --json and pic --mode rpc write to stdout, as Pi's JSON mode does. Each is
one JSON object with a type.
| Event | When |
|---|---|
agent_start |
a request starts |
agent_end |
a request ends; status and, for a cut-short request, stopReason (such as request_cap); from pic attach, status interrupted when the pic running it stopped before it ended (an agent_start follows if another takes it up) |
agent_settled |
RPC mode: the request and everything it queued have finished |
turn_start |
a reply request starts |
turn_end |
a reply request and its tool calls have finished |
message_start |
a message starts; a user message from elsewhere carries origin (remote:DEVICE for a phone, or an inbox sender) |
message_update |
streamed text or thinking; pic attach sends the text (not thinking) of a reply another pic is streaming |
message_end |
a message is complete |
tool_execution_start |
a tool call starts |
tool_execution_update |
a tool call's partial output |
tool_execution_end |
a tool call's result |
auto_retry_start |
a failed reply request will be retried |
credential_locked |
pic's, RPC mode: the model's key is sealed in the credential store, which is locked; provider; the prompt or compaction fails at once, and unlock opens the store |
key_failure |
pic's, with --hold-key-failures: a reply was refused for its key; request, provider, credential, label, state (invalid, credit, limited), status, until, errorMessage; the request stays unfinished |
compaction_start |
a compaction starts; reason (such as lapse) |
compaction_end |
a compaction ends |
queue_update |
the steering and follow-up queues changed |
queue_returned |
a queued message came back, for example because a hook blocked it |
bash_execution_update |
a bash command's output so far |
session_info_changed |
RPC mode: the conversation's name changed |
thinking_level_changed |
RPC mode: the thinking level changed |