claude-code - 💡(How to fix) Fix [Bug] Auto mode classifier incorrectly denies legitimate bash commands [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#52891Fetched 2026-04-25 06:18:07
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 /Users/amilovidov/.local/share/claude/versions/2.1.71 (expected in multi-process scenarios)\n at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.70 (expected in multi-process scenarios)\n at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.69 (expected in multi-process scenarios)\n at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.68 (expected in multi-process scenarios)\n at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claud…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.71 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.70 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.69 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.68 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claud…
RAW_BUFFERClick to expand / collapse

Bug Description

⏺ Bash(HOST=$(aws ec2 describe-instances --profile ie --region us-east-1 --query 'Reservations[0].Instances[0].PublicIpAddress' --output text) && ssh -i "$HOME/.ssh/[REDACTED].pem" ubuntu@"$HOST" "docker exec [REDACTED] env | grep POSTGRES" 2>&1 | tail -5) ⎿ Denied by auto mode classifier ∙ /feedback if incorrect

⏺ Bash(HOST=$(aws ec2 describe-instances --profile ie --region us-east-1 --query 'Reservations[0].Instances[0].PublicIpAddress' --output text) && ssh -i "$HOME/.ssh/[REDACTED].pem" ubuntu@"$HOST" "docker exec [REDACTED] psql -U [REDACTED] -d [REDACTED] -c 'SELECT [REDACTED] FROM [REDACTED] ORDER BY [REDACTED] DESC LIMIT 5;'" 2>&1 | tail -15)
⎿ Denied by auto mode classifier ∙ /feedback if incorrect

these are incorrectly denied by auto mode classifier

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.119
  • Feedback ID: bc2ab0c6-09b9-4e50-a1b4-53b7c59890e6

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.71 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.70 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.69 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claude/versions/2.1.68 (expected in multi-process scenarios)\n    at mH6 (/$bunfs/root/src/entrypoints/cli.js:2736:2177)\n    at qO7 (/$bunfs/root/src/entrypoints/cli.js:2734:12719)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2736:4898)\n    at async nO_ (/$bunfs/root/src/entrypoints/cli.js:2736:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T14:41:55.972Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/amilovidov/.local/share/claud…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to lock acquisition failures in the Claude tool, which may be causing the auto mode classifier to deny certain commands.

Guidance

  • The errors suggest a problem with lock acquisition in multi-process scenarios, which could be related to the tool's version or configuration.
  • Check the Claude tool's documentation for any known issues or configuration options related to lock acquisition and multi-process scenarios.
  • Consider updating the Claude tool to the latest version, as the issue may have been fixed in a newer release.
  • If the issue persists, try running the commands in a single-process scenario to see if the problem is specific to multi-process environments.

Example

No code snippet is provided, as the issue is related to a specific tool and its configuration.

Notes

The content was truncated, which may limit the ability to provide a comprehensive solution. Additionally, the issue may be specific to the Claude tool and its version, which could require further investigation.

Recommendation

Apply workaround: Try running the commands in a single-process scenario or updating the Claude tool to the latest version, as this may resolve the lock acquisition issues.

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] Auto mode classifier incorrectly denies legitimate bash commands [1 comments, 2 participants]