claude-code - 💡(How to fix) Fix [Bug] Unexpected 20x token consumption increase in session [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#48738Fetched 2026-04-16 06:52:22
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.001Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.031Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.494Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.497Z"},{"error":"Error: Request was aborted.\n at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n at next (native:1:11)\n at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:40:42.472Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5jjtSEjjisomX62P9Db"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:46:03.278Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kMcSKU6PGpJ4RCvwPC"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:54:08.130Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:07.260Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:15.895Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T17:16:20.328Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.001Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.031Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.494Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.497Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:40:42.472Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5jjtSEjjisomX62P9Db\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:46:03.278Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kMcSKU6PGpJ4RCvwPC\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:54:08.130Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:07.260Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:15.895Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T17:16:20.328Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description My consumption rose 20 times in the last session without any changes in the workflow.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: fd6af5b0-cc67-4a2b-aaab-aac2dc51c1a9

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.001Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.031Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.494Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:07:04.497Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:40:42.472Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5jjtSEjjisomX62P9Db\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:46:03.278Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kMcSKU6PGpJ4RCvwPC\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:54:08.130Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:07.260Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:41:15.895Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T17:16:20.328Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error.

Guidance

  • The errors indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • Verify that the GITHUB_PERSONAL_ACCESS_TOKEN variable is set in your environment before running the application.
  • Check the documentation for the application to ensure that the token is being used correctly and that there are no other required environment variables.
  • If the issue persists, try checking the application logs for more detailed error messages.

Example

No code example is provided as the issue is related to environment variable configuration.

Notes

The provided errors suggest that the issue is related to the MCP server configuration and the missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable. However, there are other errors reported, such as "Request was aborted" and "Internal server error", which may indicate additional issues.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error. This should allow the application to function correctly, but may not address the underlying cause of the other reported errors.

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] Unexpected 20x token consumption increase in session [1 comments, 2 participants]