claude-code - 💡(How to fix) Fix [Feature Request] Improve permission prompts: reduce noise for compound commands and repo subdirectories, delegate script review to subagent [1 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#54511Fetched 2026-04-30 06:43:38
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/madhu/.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-27T20:24:14.148Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/madhu/src/thunk-web.\n at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T20:50:32.725Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:08:03.741Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.278Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.279Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/madhu/.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-27T20:24:14.148Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/madhu/src/thunk-web.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T20:50:32.725Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:08:03.741Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n    at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.278Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n    at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.279Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Permissions. I am continuing to find that Claude will ask permissions for silly things and not ask permissions for some important things. the silly things are - compound commands. Usually this is a case where the command needs to be run from another directory and it will ask for permission for a command it has permission already for. reading from repo - when working in a worktree or branch, it seems often there are multuple permissions asked for different subdirectories when the full repo is available to read/write. Another seems to be something about newline in bash or script, there is some security risk and it will ask for permission, the user doesnt really parse a complex script anyway - better to get that script reviewed by another subagent than ask the user.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: 2470e364-413b-4936-abb8-e1f538648e58

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/madhu/.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-27T20:24:14.148Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/madhu/src/thunk-web.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T20:50:32.725Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:08:03.741Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n    at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.278Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: timeout of 30000ms exceeded\n    at aT5 (/$bunfs/root/src/entrypoints/cli.js:2734:5533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T01:55:57.279Z"}]

extent analysis

TL;DR

Review and adjust Claude's permission settings to reduce unnecessary requests, focusing on compound commands, repository access, and script execution.

Guidance

  • Investigate the permission settings for compound commands to understand why Claude is requesting permissions for already authorized actions.
  • Verify the repository access settings to ensure Claude has the necessary permissions to read and write without requesting multiple permissions for subdirectories.
  • Examine the script execution settings to determine if the newline security risk can be mitigated by reviewing scripts through a subagent instead of requesting user permission.
  • Check the error logs for any patterns or clues that might indicate a specific issue with Claude's permission system.

Example

No code snippet is provided as the issue description does not include specific code examples that can be used to illustrate a solution.

Notes

The provided error logs indicate various issues, including lock acquisition failures, file not found errors, and timeouts. However, these may not be directly related to the permission issues described. Further investigation is needed to determine the root cause of these errors and how they might be connected to the permission problems.

Recommendation

Apply workaround: Review and adjust Claude's permission settings to reduce unnecessary requests. This approach is recommended because it directly addresses the described issue and may help mitigate the problems without requiring a version upgrade or more extensive changes.

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