claude-code - 💡(How to fix) Fix [Bug] File read-tracking state not reset when conversation is rewound [1 comments, 2 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#54657Fetched 2026-04-30 06:39:38
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T12:37:19.849Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T12:37:19.849Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Rewinding a conversation After Claude reads a file, the harness tracks it as "already read / unchanged" to suppress redundant reads. When the user rewinds the conversation to a point before that Read call, the tool result is removed from Claude's context — but the harness's read-tracking state persists. On the next attempt, Claude is told the file is unchanged and the re-read is blocked, even though Claude no longer has the file contents in context. Result: Claude must act on a file it cannot see, with no path to recover the content (only via Bash).

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.123
  • Feedback ID: e4deb6f5-6205-480c-a3d9-881a1bde72f7

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/user/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T12:37:19.849Z"}]

extent analysis

TL;DR

The issue can be mitigated by resetting the harness's read-tracking state when rewinding the conversation to a point before a Read call.

Guidance

  • When rewinding the conversation, ensure that the harness's read-tracking state is reset to reflect the new context, allowing Claude to re-read the file if necessary.
  • Investigate the cli.js file at line 2769 to understand the lock acquisition failure and its relation to the read-tracking state.
  • Consider adding a check to verify if Claude has the file contents in context before attempting to act on it, to prevent errors.
  • Review the error handling mechanism to determine if the "NON-FATAL" error can be safely ignored or if it indicates a more significant issue.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The provided error message suggests a potential issue with lock acquisition, but its relation to the main problem is unclear. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Reset the harness's read-tracking state when rewinding the conversation, as this directly addresses the described issue and allows Claude to recover the file content.

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

claude-code - 💡(How to fix) Fix [Bug] File read-tracking state not reset when conversation is rewound [1 comments, 2 participants]