Skip to content

Checkpoint restore should rewind the conversation, not just - #1286

Merged
currentbits merged 1 commit into
mainfrom
coder/checkpoint-restore-should-rewind-the-con-b977bb
Sep 10, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/checkpoint-restore-should-rewind-the-con-b977bb

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T17:23:33.500649Z a77259c PR opened
ℹ️ 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.

@currentbits
currentbits merged commit 9b65d53 into main Sep 10, 2026
0 of 6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a77259c517

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/worktrees.js
Comment on lines +4994 to +4996
const msgs = store.getMessages(threadId);
const last = msgs.length ? msgs[msgs.length - 1] : null;
lastId = last && last.id ? String(last.id) : "";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Capture the checkpoint message before asynchronous Git work

When a completed turn has a type-ahead prompt queued, afterSuccessfulTurn launches maybeCreateCheckpoint without awaiting it and immediately drains the queue. Because this lookup occurs after the asynchronous status and checkpoint-count Git calls, the next turn's user message can already be appended and becomes the Solenta-Message-Id for the previous turn's checkpoint. Restoring that checkpoint then retains the later prompt while resetting files to the earlier turn, leaving the conversation and worktree out of sync; capture the completed turn's message ID before the first await or pass it explicitly from the runner.

Useful? React with 👍 / 👎.

@currentbits
currentbits deleted the coder/checkpoint-restore-should-rewind-the-con-b977bb branch October 3, 2026 16:07
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