claude-code - 💡(How to fix) Fix [Bug] Rules from CLAUDE.md ignored and edit-first behavior persists in v2.1.119 [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#53319Fetched 2026-04-26 05:18:47
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.1.119 (expected in multi-process scenarios)\n at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n at E$8 (/$bunfs/root/src/entrypoints/cli.js:2736:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T17:17:15.115Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.1.119 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at E$8 (/$bunfs/root/src/entrypoints/cli.js:2736:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T17:17:15.115Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Title: Rules ignored + edit-first behavior persists after v2.1.116 fix (v2.1.119)

Description:

Systematic rule violations and edit-first behavior continue in v2.1.119, starting from turn 1 of a session — not a context-length issue.

Observed on April 25–26, 2026 (session 46dfd054):

CLAUDE.md rules loaded and acknowledged but not followed during execution — specifically "explain before acting", "ask before modifying files", "read file before editing" Files modified without prior Read tool call in current session Bash commands executed without user confirmation, even with explicit instructions requiring it Behavior is consistent from session start, not degrading mid-session Matches "research-first → edit-first" regression from postmortem, suggesting fix is incomplete Plan: Max 100 / OS: macOS / Auto-update enabled

Related issue: #46727

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.119
  • Feedback ID: 24e68906-d711-47fc-9d59-4313ec53d75f

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.1.119 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at E$8 (/$bunfs/root/src/entrypoints/cli.js:2736:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T17:17:15.115Z"}]

extent analysis

TL;DR

The issue may be resolved by re-examining the implementation of the "explain before acting", "ask before modifying files", and "read file before editing" rules in the CLAUDE.md configuration.

Guidance

  • Review the CLAUDE.md rules configuration to ensure that the rules are correctly defined and enabled.
  • Verify that the rules are being loaded and acknowledged correctly during session initialization.
  • Investigate the possibility of a regression in the fix implemented in v2.1.116, which may have been incomplete or introduced new issues.
  • Check the error log for any other relevant errors that may be related to the issue, in addition to the "Lock acquisition failed" error.

Example

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

Notes

The issue may be related to a regression in the fix implemented in v2.1.116, and further investigation is needed to determine the root cause. The "Lock acquisition failed" error may be a red herring, and the actual issue may lie in the rules configuration or implementation.

Recommendation

Apply workaround: Revert to a previous version of the software (e.g., v2.1.116) to see if the issue persists, and if not, investigate what changes were made in v2.1.119 that may have introduced the 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

claude-code - 💡(How to fix) Fix [Bug] Rules from CLAUDE.md ignored and edit-first behavior persists in v2.1.119 [2 comments, 3 participants]