Repository navigation
Checkpoint restore should rewind the conversation, not just - #1286
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| const msgs = store.getMessages(threadId); | ||
| const last = msgs.length ? msgs[msgs.length - 1] : null; | ||
| lastId = last && last.id ? String(last.id) : ""; |
There was a problem hiding this comment.
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 👍 / 👎.
No description provided.