Skip to content

feat(rollouts): store EventMsg::ApplyPatchEnd in limited history mode#20463

Merged
owenlin0 merged 3 commits into
mainfrom
owen/persist_apply_patch_for_limited_history
Apr 30, 2026
Merged

feat(rollouts): store EventMsg::ApplyPatchEnd in limited history mode#20463
owenlin0 merged 3 commits into
mainfrom
owen/persist_apply_patch_for_limited_history

Conversation

@owenlin0
Copy link
Copy Markdown
Collaborator

@owenlin0 owenlin0 commented Apr 30, 2026

The Codex App treats apply patch tool calls quite load-bearing in the UI (always shown on a completed turn), so we'd like to persist EventMsg::ApplyPatchEnd to guarantee that when a client reconnects to app-server mid-turn, we always have the full diff to display at the end of that turn.

Comment thread codex-rs/rollout/src/policy.rs Outdated
}

#[test]
fn persists_patch_apply_end_events_in_limited_mode() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tbh I don't think this test brings anything but load on the CI pipeline

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fair, down to remove

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

deleted the entire suite since they all did similar things

@owenlin0 owenlin0 force-pushed the owen/persist_apply_patch_for_limited_history branch from 27cb5da to 7ec0a94 Compare April 30, 2026 17:32
@owenlin0 owenlin0 enabled auto-merge (squash) April 30, 2026 17:49
@owenlin0 owenlin0 disabled auto-merge April 30, 2026 18:10
@owenlin0 owenlin0 force-pushed the owen/persist_apply_patch_for_limited_history branch from 418f9bd to eaeb87f Compare April 30, 2026 18:46
@owenlin0 owenlin0 merged commit 7dd08e3 into main Apr 30, 2026
25 checks passed
@owenlin0 owenlin0 deleted the owen/persist_apply_patch_for_limited_history branch April 30, 2026 19:11
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants