Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(ci): reformat 09-event-schema.md table to unbreak the Prettier lane
  • Loading branch information
he-yufeng committed Oct 7, 2026
commit 5826353a6d5906c7d73d7f0d6cb6f53d8271ab25
8 changes: 4 additions & 4 deletions docs/developers/daemon/09-event-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ These events are workspace-keyed, not session-keyed. The session reducer treats

### Pending prompt queue

| Type | Direction | Trigger | Key payload fields |
| -------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| `pending_prompt_added` | S->C | A prompt was appended to the session's prompt FIFO and is waiting behind the active turn. Published only when the prompt is *genuinely queued* — the first prompt on an idle session starts immediately and emits no queue events. | `sessionId, promptId, text, queuedAt` |
| `pending_prompt_started` | S->C | The queued prompt reached the head of the FIFO and was promoted to running (also emitted for a promoted mid-turn message that starts immediately). Skipped when the prompt is aborted before promotion. | `sessionId, promptId, text` |
| Type | Direction | Trigger | Key payload fields |
| -------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| `pending_prompt_added` | S->C | A prompt was appended to the session's prompt FIFO and is waiting behind the active turn. Published only when the prompt is _genuinely queued_ — the first prompt on an idle session starts immediately and emits no queue events. | `sessionId, promptId, text, queuedAt` |
| `pending_prompt_started` | S->C | The queued prompt reached the head of the FIFO and was promoted to running (also emitted for a promoted mid-turn message that starts immediately). Skipped when the prompt is aborted before promotion. | `sessionId, promptId, text` |
| `pending_prompt_completed` | S->C | A queued prompt settled — `state: 'completed'` (it ran; execution errors still report `completed` and ride the terminal `turn_error` frame) or `state: 'removed'` (removed from the queue and never ran). Only emitted for prompts that were genuinely queued (an `added` was published). This is queue-view bookkeeping, **not a turn terminal**; correlate `turn_complete` / `turn_error` by `promptId` for completion. | `sessionId, promptId, state: 'completed' \| 'removed'` |

### Turn lifecycle / assistant pushes
Expand Down
Loading