claude-code - 💡(How to fix) Fix [Bug] Session limit consumption rate is unpredictable and inconsistent [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#51912Fetched 2026-04-23 07:41:35
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

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

Code Example

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

Bug Description It's really random on how quickly the session limit dissapears. Today, without changing any of my usual work patterns my first 5h session from my work Team (premium seat) just got gobbled up really quickly. After that i had a private Pro account that i switched to, it took 30 mins and all of it was gone.

Now changing back to the Team account, making sure to clear all sessions before starting. One single simple change to a configuration class took 3% of the session. It's very unpredictable.

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.1.117
  • Feedback ID: b907f12f-a3e2-46a7-8bb4-64096c37d843

Errors

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

extent analysis

TL;DR

The session limit issue may be related to the lock acquisition failure error, and clearing sessions before starting a new one might help mitigate the problem.

Guidance

  • The error message suggests a lock acquisition failure, which could be causing the session limit to disappear quickly. Investigate if multiple processes are accessing the same resource simultaneously.
  • Try to reproduce the issue with a consistent workload to see if the session limit depletion is indeed unpredictable.
  • Clearing all sessions before starting a new one, as done with the Team account, might help prevent the issue. Try to make this a standard practice.
  • The fact that the issue occurs on both Team and Pro accounts suggests that the problem might not be account-specific.

Example

No code snippet is provided as the issue does not imply a specific code-related fix.

Notes

The issue seems to be related to the specific version (2.1.117) and platform (linux), so the solution might not apply to other versions or platforms.

Recommendation

Apply workaround: Clear all sessions before starting a new one, as this seems to have helped in one of the instances described. This might help mitigate the issue until a more permanent fix is found.

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