claude-code - 💡(How to fix) Fix [Bug] Opus model ignoring plan mode restrictions and executing bash commands without approval [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#45037Fetched 2026-04-09 08:14:46
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sidhartha/.local/share/claude/versions/2.1.96 (expected in multi-process scenarios)\n at Cg$ (/$bunfs/root/src/entrypoints/cli.js:1888:2153)\n at ni8 (/$bunfs/root/src/entrypoints/cli.js:1888:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:49:30.936Z"},{"error":"Error: Request was aborted.\n at sh$ (/$bunfs/root/src/entrypoints/cli.js:1243:11929)\n at next (native:1:11)\n at vC7 (/$bunfs/root/src/entrypoints/cli.js:7775:9035)\n at next (native:1:11)\n at VC7 (/$bunfs/root/src/entrypoints/cli.js:7780:11451)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:51:55.956Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sidhartha/.local/share/claude/versions/2.1.96 (expected in multi-process scenarios)\n    at Cg$ (/$bunfs/root/src/entrypoints/cli.js:1888:2153)\n    at ni8 (/$bunfs/root/src/entrypoints/cli.js:1888:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:49:30.936Z"},{"error":"Error: Request was aborted.\n    at sh$ (/$bunfs/root/src/entrypoints/cli.js:1243:11929)\n    at next (native:1:11)\n    at vC7 (/$bunfs/root/src/entrypoints/cli.js:7775:9035)\n    at next (native:1:11)\n    at VC7 (/$bunfs/root/src/entrypoints/cli.js:7780:11451)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:51:55.956Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Opus 4.6 (1M) overrules the plan mode multiple times since last 36 hours and ran bash commands without approval. This was specifically instructred not to do bypass permissions for BASH from plan mode, and even added on Memories. failed instructions.

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.1.96
  • Feedback ID: 41631549-fbec-4101-b7f1-e0678bea8308

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/sidhartha/.local/share/claude/versions/2.1.96 (expected in multi-process scenarios)\n    at Cg$ (/$bunfs/root/src/entrypoints/cli.js:1888:2153)\n    at ni8 (/$bunfs/root/src/entrypoints/cli.js:1888:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:49:30.936Z"},{"error":"Error: Request was aborted.\n    at sh$ (/$bunfs/root/src/entrypoints/cli.js:1243:11929)\n    at next (native:1:11)\n    at vC7 (/$bunfs/root/src/entrypoints/cli.js:7775:9035)\n    at next (native:1:11)\n    at VC7 (/$bunfs/root/src/entrypoints/cli.js:7780:11451)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:51:55.956Z"}]

extent analysis

TL;DR

Review and adjust the permissions and configuration for Opus 4.6 to prevent unauthorized execution of bash commands.

Guidance

  • Investigate the permissions and access controls for Opus 4.6 to ensure they are correctly set to prevent bypassing permissions for BASH from plan mode.
  • Check the Memories configuration to verify that the instructions to not execute bash commands without approval are correctly implemented.
  • Analyze the error messages to determine if there are any issues with lock acquisition or request aborts that may be contributing to the problem.
  • Verify that the version of Opus 4.6 (1M) is compatible with the platform (linux) and terminal (ghostty) being used.

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 configuration or permissions problem, but without more information, it is difficult to provide a specific solution. The error messages suggest that there may be issues with lock acquisition and request aborts, but these may be symptoms of a larger problem.

Recommendation

Apply workaround: Review and adjust the permissions and configuration for Opus 4.6 to prevent unauthorized execution of bash commands, as this is the most likely cause of the problem and can be addressed without requiring additional information or upgrades.

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