claude-code - 💡(How to fix) Fix [Bug] Cache warning shown after /clear command before new messages [1 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#52174Fetched 2026-04-23 07:34:39
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jochen/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n at Tn8 (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n at tK_ (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T21:14:14.458Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jochen/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at Tn8 (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at tK_ (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T21:14:14.458Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I get a cache warning
although I just /cleared the conversation, is that valid? The message:
▐▛███▜▌ Claude Code v2.1.117
▝▜█████▛▘ Sonnet 4.6 with medium effort · Claude Pro
▘▘ ▝▝ ~/Documents/audioworks/audioworks/audio_mix_service

❯ /clear

⎿  (no content)

❯ /model

───────────────────────────────────────────────────────────────────────────── ───
Switch model?
Your next response will be slower and use more tokens

This conversation is cached for the current model. Switching to Opus 4.7    
means the full history gets re-read on your next message.                   
                                                                            
❯ 1. Yes, switch to Opus 4.7                                                
  2. No, go back

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.1.117
  • Feedback ID: 8f4f777b-80f7-4d7e-8342-c10e81eb7ff1

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jochen/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at Tn8 (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at tK_ (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T21:14:14.458Z"}]

extent analysis

TL;DR

The cache warning may be related to the lock acquisition failure, and switching to a different model like Opus 4.7 might resolve the issue.

Guidance

  • The error message indicates a lock acquisition failure, which could be causing the cache warning.
  • The conversation history is cached for the current model, and switching to a different model will re-read the full history on the next message.
  • Try switching to Opus 4.7 as suggested in the prompt to see if it resolves the cache warning.
  • Verify if the issue persists after switching to the new model and re-reading the conversation history.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue seems to be related to the multi-process scenario, and the error message is non-fatal. However, the root cause of the lock acquisition failure is not explicitly stated.

Recommendation

Apply workaround: Switch to Opus 4.7 as suggested in the prompt to see if it resolves the cache warning, as it may help to re-read the conversation history and potentially resolve the lock acquisition issue.

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