Skip to content

Checkpoint restore should rewind the conversation, not just the worktree #149

Closed

Description

@currentbits

What T3 Code does

Reverting a checkpoint reverts both the workspace AND the provider conversation (CheckpointReactor, internals).

Solenta today

Restore is a worktree hard reset only: "Uncommitted changes and later checkpoints' work will be lost" (src/components/ThreadView.tsx:2683-2684). Messages and provider session state from the undone turns remain, so after an undo the agent still remembers and re-references the abandoned work, and the transcript claims it happened.

Why it matters

Restore is semantically clean only if the conversation rewinds with the code. Today the agent and the user disagree about reality after every restore.

Fix direction

On restore, truncate the transcript to the checkpoint turn and re-resume the provider session from the matching point (or start a fresh session seeded with the surviving transcript). Also note #132: restore currently hard-resets without creating a safety checkpoint first.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Validation from the new-launches round: Waku (Show HN Aug 2026) does exactly this — checkpoints rewind the working tree under a hidden git ref together with the provider conversation, atomically. Proven demand for atomic code+conversation restore.

  3. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (Synara 0.6.3): rescue-snapshot revert — before any rollback, snapshot the worktree; if the provider-side rollback fails, restore from the snapshot; undo preserves the transcript. The failure-mode spec for checkpoint restore.

  4. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 23 validation: Factory Droid shipped the combined version as /rewind-conversation (v0.156.2): "rewinds the chat and restores your files to an earlier point." One command, both dimensions, exactly this issue's thesis. Also relevant from Codex 0.147.0: their "remote conversation compaction" work and OpenCode's Aug 7 fix that revert/fork must use real message chronology, not message-ID ordering (imported/legacy IDs are not chronological). When Solenta implements rewind, order turns by timestamp, never by ID.

  5. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 25 demand validation: two top-10 Codex requests are exactly this. "Please make /undo back" (openai/codex#9203, 70 comments) and "/rewind checkpoint restore that reverts both chat context and code edits" (#11626, 38 comments). The combined chat+files rewind is not a nice-to-have; users are publicly asking vendors for it by name, and Factory already shipped it as /rewind-conversation (see earlier comment). This issue should stay high on the list.

  6. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 10, 2026
  7. currentbits commented on Sep 10, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Checkpoint restore should rewind the conversation, not just " (PR #1286). Closed on merge.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions