claude-code - 💡(How to fix) Fix [Bug] /rewind default option unsafe: rolls back code without confirmation or clear warning [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50897Fetched 2026-04-20 12:10:04
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Timeline (top)
commented ×2labeled ×2

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/robmorris/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T20:53:14.148Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/robmorris/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T20:53:14.148Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description /rewind has a big UX footgun. The default option, "code and conversation", is an unsafe destructive operation that rolls back context AND code touched (directly by Claude tools) during the session.

  1. This is not at all clear. "code and conversation" (and "code") are not presented as a dangerous options that might result in loss of work
  2. "Code and conversation" is bad as the default: accidentally triggering this command and hitting enter = loss of data
  3. Rollbacks are inconsistent: only what claude touched with internal tools
  4. There's no confirmation before proceeding with the dangerous op, no listing of what will be rolled back, hard to assess blast radius.
  5. /rewind has dual use, as recovery tool but also as context management tool. If using for context management, it's reasonable to interpret "code" as "internal code used by claude to support its work", not "my work".

The command should telegraph the consequences & meaning of the dangerous operations more clearly, ask for confirmation before proceeding, ideally confirm the blast radius, and preferably start with the "safe" default of "chat only".

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.114
  • Feedback ID: 1da591a2-5c87-4325-9b8b-906082f67a40

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/robmorris/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T20:53:14.148Z"}]

extent analysis

TL;DR

The /rewind command should be modified to clearly indicate the potential consequences of its operations, request confirmation before proceeding, and default to a safer option to prevent accidental data loss.

Guidance

  • Consider changing the default option of /rewind from "code and conversation" to "chat only" to minimize the risk of accidental data loss.
  • Add a confirmation prompt before executing the /rewind command to ensure the user understands the potential consequences of their action.
  • Provide a clear indication of what will be rolled back and the potential "blast radius" of the operation to help users make informed decisions.
  • Review the UI/UX of the /rewind command to ensure it effectively communicates the differences between its recovery and context management uses.

Example

No code snippet is provided as the issue focuses on the UX and functionality of the /rewind command rather than a specific code implementation.

Notes

The provided error message does not seem directly related to the issue described, as it mentions a lock acquisition failure, which may be a separate problem. The focus of the issue is on improving the safety and usability of the /rewind command.

Recommendation

Apply a workaround by using the /rewind command with caution and ensuring that the "chat only" option is selected by default, until a more permanent fix can be implemented to address the safety concerns.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING