claude-code - 💡(How to fix) Fix [Bug] /effort command applies globally instead of per-session [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#52548Fetched 2026-04-24 06:04:14
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sjunot/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at ii$ (/$bunfs/root/src/entrypoints/cli.js:2758:2177)\n at R46 (/$bunfs/root/src/entrypoints/cli.js:2758:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:02:09.785Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sjunot/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at ii$ (/$bunfs/root/src/entrypoints/cli.js:2758:2177)\n    at R46 (/$bunfs/root/src/entrypoints/cli.js:2758:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:02:09.785Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description /effort sets the effort level for all sessions, not just the current one.

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.1.118
  • Feedback ID: 5d5f6112-8b52-4f5f-b394-1d6a2901082d

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sjunot/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at ii$ (/$bunfs/root/src/entrypoints/cli.js:2758:2177)\n    at R46 (/$bunfs/root/src/entrypoints/cli.js:2758:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:02:09.785Z"}]

extent analysis

TL;DR

The issue may be resolved by modifying the /effort command to only set the effort level for the current session, rather than all sessions.

Guidance

  • The error message suggests a lock acquisition failure, which could be related to the /effort command affecting multiple sessions simultaneously.
  • To verify the issue, try running the /effort command in a single session and check if the effort level is set correctly.
  • To mitigate the issue, consider modifying the command to accept a session-specific parameter or flag to limit its scope.
  • Investigate the cli.js file, specifically line 2758, to understand how the /effort command is implemented and how it interacts with session management.

Notes

The provided error message and code snippet are not directly related to the /effort command, but rather indicate a potential issue with lock acquisition in a multi-process scenario.

Recommendation

Apply workaround: Modify the /effort command to accept a session-specific parameter or flag to limit its scope, as this may help resolve the issue without requiring a full version upgrade.

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