Add compaction started/ended events

This commit is contained in:
Ahmed Ibrahim
2026-01-27 11:44:28 -08:00
parent 877b76bb9d
commit 18e941c1b2
13 changed files with 87 additions and 19 deletions

View File

@@ -431,7 +431,9 @@ Today both notifications carry an empty `items` array even when item events were
- `imageView``{id, path}` emitted when the agent invokes the image viewer tool.
- `enteredReviewMode``{id, review}` sent when the reviewer starts; `review` is a short user-facing label such as `"current changes"` or the requested target description.
- `exitedReviewMode``{id, review}` emitted when the reviewer finishes; `review` is the full plain-text review (usually, overall notes plus bullet point findings).
- `compacted` - `{threadId, turnId}` when codex compacts the conversation history. This can happen automatically.
- `compactionStarted` - `{threadId, turnId}` when codex begins compacting conversation history.
- `compactionEnded` - `{threadId, turnId}` when compaction completes.
- `thread/compacted` is deprecated and should be treated as `compactionEnded`.
All items emit two shared lifecycle events: