claude-code - 💡(How to fix) Fix [Bug] Auto mode denies recursive directory deletion despite allowlist in settings.json [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#52321Fetched 2026-04-24 06:10:16
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/dennis/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n at fn_ (/$bunfs/root/src/entrypoints/cli.js:2754:2177)\n at H98 (/$bunfs/root/src/entrypoints/cli.js:2754:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.285Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.314Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.079Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.105Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaK8G2DFGRr1Ry77p9ZLR"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54524)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:29:00.527Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/dennis/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at fn_ (/$bunfs/root/src/entrypoints/cli.js:2754:2177)\n    at H98 (/$bunfs/root/src/entrypoints/cli.js:2754:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.285Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.314Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.079Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.105Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaK8G2DFGRr1Ry77p9ZLR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54524)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:29:00.527Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description auto mode denies rm -rf .next folder -- even though it is allowed in the settings.json

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.117
  • Feedback ID: 972befc8-efbf-4f7f-a17b-8f9e984d85cc

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/dennis/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at fn_ (/$bunfs/root/src/entrypoints/cli.js:2754:2177)\n    at H98 (/$bunfs/root/src/entrypoints/cli.js:2754:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.285Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.314Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:53.887Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6151:11827)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.079Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at aJH (/$bunfs/root/src/entrypoints/cli.js:2754:30499)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6151:11021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:14:54.105Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaK8G2DFGRr1Ry77p9ZLR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54524)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T16:29:00.527Z"}]

extent analysis

TL;DR

The issue is likely due to missing environment variables, specifically GITHUB_PERSONAL_ACCESS_TOKEN, which is required for the MCP server to function correctly.

Guidance

  • Check the environment variables set in the system or project configuration to ensure GITHUB_PERSONAL_ACCESS_TOKEN is properly defined.
  • Verify that the settings.json file allows the removal of the .next folder, as mentioned in the bug description.
  • Review the error logs to identify any other potential issues that may be contributing to the problem, such as rate limiting errors.
  • Consider setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable manually to test if it resolves the issue.

Notes

The provided error logs suggest that there are multiple issues at play, including missing environment variables and rate limiting errors. Addressing the missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable may resolve the primary issue, but additional troubleshooting may be necessary to fully resolve the problem.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable manually to test if it resolves the issue, as this is the most direct and likely solution based on the provided error logs.

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