Skip to content

compaction#10034

Merged
aibrahim-oai merged 3 commits intomainfrom
compaction_item
Jan 28, 2026
Merged

compaction#10034
aibrahim-oai merged 3 commits intomainfrom
compaction_item

Conversation

@aibrahim-oai
Copy link
Collaborator

External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes.

Include a link to a bug report or enhancement request.

Copy link
Collaborator

@owenlin0 owenlin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need to map the core event to ThreadItem::ContextCompaction, see bespoke_event_handling.rs

unfortunately in app-server we still operate on EventMsgs instead of TurnItems from core. not sure if it's possible to use the as_legacy_event thing to emit both EventMsg::ContextCompactionStarted and EventMsg::ContextCompactionEnded somehow

- `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.
- `contextCompaction` — `{id}` emitted when codex compacts the conversation history. This can happen automatically.
- `compacted` - `{threadId, turnId}` when codex compacts the conversation history. This can happen automatically. **Deprecated:** Use `contextCompaction` instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can just remove this one from the README

@aibrahim-oai aibrahim-oai merged commit b7edeee into main Jan 28, 2026
31 of 32 checks passed
@aibrahim-oai aibrahim-oai deleted the compaction_item branch January 28, 2026 19:36
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants