claude-code - 💡(How to fix) Fix [Bug] Unintended git checkout execution causes data loss [2 comments, 3 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#54036Fetched 2026-04-28 06:40:59
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/nikitagriu/.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-27T13:39:15.334Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.356Z"},{"error":"AxiosError: Request failed with status code 400\n at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.644Z"},{"error":"AxiosError: Request failed with status code 401\n at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at async Ql (/$bunfs/root/src/entrypoints/cli.js:259:273781)\n at async qI6 (/$bunfs/root/src/entrypoints/cli.js:259:280285)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.843Z"},{"error":"AxiosError: Request failed with status code 400\n at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:17.927Z"},{"error":"AxiosError: Request failed with status code 401\n at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at async yn (/$bunfs/root/src/entrypoints/cli.js:427:5498)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2623:190)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6786:23780)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.138Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"AxiosError: Request failed with status code 400\n at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.925Z"},{"error":"AxiosError: Request failed with s…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/nikitagriu/.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-27T13:39:15.334Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.356Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.644Z"},{"error":"AxiosError: Request failed with status code 401\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async Ql (/$bunfs/root/src/entrypoints/cli.js:259:273781)\n    at async qI6 (/$bunfs/root/src/entrypoints/cli.js:259:280285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.843Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:17.927Z"},{"error":"AxiosError: Request failed with status code 401\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async yn (/$bunfs/root/src/entrypoints/cli.js:427:5498)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2623:190)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6786:23780)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.138Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.925Z"},{"error":"AxiosError: Request failed with s…
RAW_BUFFERClick to expand / collapse

Bug Description Claude made a huge mistake by using git checkout and did not save a HUGE result and a lot of data disappeared

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.119
  • Feedback ID: fa169bec-70b7-426a-b2db-308d226764c1

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/nikitagriu/.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-27T13:39:15.334Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.356Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.644Z"},{"error":"AxiosError: Request failed with status code 401\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async Ql (/$bunfs/root/src/entrypoints/cli.js:259:273781)\n    at async qI6 (/$bunfs/root/src/entrypoints/cli.js:259:280285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:15.843Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:17.927Z"},{"error":"AxiosError: Request failed with status code 401\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async yn (/$bunfs/root/src/entrypoints/cli.js:427:5498)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2623:190)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6786:23780)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.138Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.485Z"},{"error":"AxiosError: Request failed with status code 400\n    at zl (/$bunfs/root/src/entrypoints/cli.js:114:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:12696)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at async KeH (/$bunfs/root/src/entrypoints/cli.js:259:275970)\n    at async _Q6 (/$bunfs/root/src/entrypoints/cli.js:412:4433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T13:39:18.925Z"},{"error":"AxiosError: Request failed with s…

Note: Content was truncated.

extent analysis

TL;DR

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

Guidance

  • Check the errors for any authentication or authorization issues, such as missing environment variables.
  • Verify that the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is set correctly.
  • Review the code for any potential issues with git checkout or version control.
  • Investigate the cause of the lock acquisition failure for the Claude version.

Example

No code snippet is provided as the issue is related to environment variables and authentication.

Notes

The issue seems to be related to authentication and environment variables. The GITHUB_PERSONAL_ACCESS_TOKEN environment variable is missing, which is causing the plugin MCP server error. The lock acquisition failure and other errors may be related to this issue.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the plugin MCP server error. This should fix the authentication issue and potentially resolve the other 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] Unintended git checkout execution causes data loss [2 comments, 3 participants]