Skip to content

Restore session history in order after a partial clear - #6232

Open
markstuart-oai wants to merge 1 commit into
mainfrom
fix/repair-partial-session-clear
Open

markstuart-oai wants to merge 1 commit into
mainfrom
fix/repair-partial-session-clear

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Why

After a partial clear, the compaction session has been appending its full backup to surviving messages, duplicating messages or changing their order.

How

Recovery has been retaining the matching prefix, removing the divergent tail, and restoring missing items in order.

Test plan

Partial and complete clears, the original exception, cancellation during recovery, queued writes and failed repairs.

The full local suite has been passing 12,873 tests, with 30 skipped.

Checks

  • Regression coverage
  • Full local repository checks with bash .agents/skills/code-change-verification/scripts/run.sh on Linux
  • Two independent reviews of the complete patch

@markstuart-oai
markstuart-oai marked this pull request as ready for review November 27, 2026 05:20
@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners November 27, 2026 05:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T05:21:40.726190Z bd34506 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-27T05:22:31.559969Z bd34506 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant