Skip to content

upstream port: conversation rewind (double-ESC + /rewind) (#3441) #187

@mabry1985

Description

@mabry1985

Backport upstream's conversation rewind feature: press ESC twice (or run /rewind) to roll the conversation back to a checkpoint.

Upstream PR

Why

Big user-facing feature — reset the conversation to an earlier turn without losing the rest of the session. Gracefully handles the "I went down a wrong path" case better than /clear.

Scope / effort

Large. New subsystem with checkpoint store, picker UI, multi-turn replay logic, and integration into useGeminiStream + AppContainer.

Files of interest (rough): new RewindPicker.tsx, checkpointStore.ts, additions to useGeminiStream.ts, AppContainer.tsx, keypress handling. We already have a RewindPicker import in our DialogManager (residual from a partial merge?) — investigate whether some scaffolding is already in place before estimating real effort.

Prerequisites

Investigate: git grep "RewindPicker\|checkpointStore" shows we may already have partial work. Audit current state before deciding to backport vs. build out what we have.

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestupstream-portBackport from QwenLM/qwen-code upstream

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions