claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE] Rewind should checkpoint Plan and Q&A Tool uses

Open ANogin opened this issue 10 months ago • 1 comments

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Currently, rewind captured the dialog steps, but not plan acceptance/rejection steps in planning mode or Q&A entries.

Proposed Solution

Would be great to be able to rewind to where the plan was presented and chance the accept/reject answer, or to where Q&A happened and give a different answer.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

No response

Additional Context

This was originally reported as #8995 that was incorrectly closed by buggy github-actions (see #16497)

After I originally reported this, I realized that this is more important than I originally thought - I had an instance where Claude Code was stopped waiting for me to approve/disapprove it plan, and I killed and restated it (rebuilt the dev container it was in) just to realize that resuming the session placed me to the last checkpoint before the plan was created :(

ANogin avatar Jan 18 '26 01:01 ANogin

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8995
  2. https://github.com/anthropics/claude-code/issues/18141
  3. https://github.com/anthropics/claude-code/issues/10095

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 18 '26 01:01 github-actions[bot]

Use case: Re-answering planning Q&A after seeing the generated plan

When Claude uses AskUserQuestion during plan mode to clarify requirements, those Q&A exchanges should be rewindable checkpoints — just like regular conversation turns.

Concrete scenario:

  1. Claude asks "Which authentication method?" → I answer "JWT"
  2. Claude generates a plan based on JWT
  3. I realize I should have said "session-based"
  4. Currently: must start a new session and lose all context
  5. Expected: rewind to step 1, re-answer, get revised plan

What I'd expect:

  • Each AskUserQuestion call (and its answer) is a rewind point
  • ExitPlanMode (plan approval) is also a rewind point
  • Rewinding to a Q&A step re-presents the question for a different answer
  • The plan regenerates from the new answer

Related to #22024 — both cases share the same root: the planning phase isn't treated as a rewindable checkpoint sequence.

Priority: Medium-high. It's the difference between plan mode being a one-shot interaction vs. a genuine iterative design tool.

deleon626 avatar Feb 25 '26 09:02 deleon626