claude-code - 💡(How to fix) Fix [Bug] /config command hangs on second invocation [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#47131Fetched 2026-04-13 05:40:39
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3closed ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jshute/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n at KQ$ (/$bunfs/root/src/entrypoints/cli.js:2838:2153)\n at ye8 (/$bunfs/root/src/entrypoints/cli.js:2838:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.428Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.463Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.081Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.082Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jshute/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n    at KQ$ (/$bunfs/root/src/entrypoints/cli.js:2838:2153)\n    at ye8 (/$bunfs/root/src/entrypoints/cli.js:2838:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.428Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.463Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.081Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.082Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description /config hangs the second time we open it

Reproduce

  1. Start claude CLI
  2. /config
  3. escape twice to exit out
  4. /config

It shows the config screen but it's frozen. Typing in the search box, pressing escape, etc, nothing happens. I have to control-C kill claude.

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.1.104
  • Feedback ID: 4ba00d25-8cd4-418d-ae5d-cd0cbfcad111

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/jshute/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n    at KQ$ (/$bunfs/root/src/entrypoints/cli.js:2838:2153)\n    at ye8 (/$bunfs/root/src/entrypoints/cli.js:2838:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.428Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:49.463Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.081Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T23:22:50.082Z"}]

extent analysis

TL;DR

  • The issue may be resolved by setting the required environment variable GITHUB_PERSONAL_ACCESS_TOKEN to prevent plugin MCP server errors.

Guidance

  • Check if the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is set before running the claude CLI.
  • Verify that the lock acquisition failure is not causing the freeze by checking the file system permissions for /home/jshute/.local/share/claude/versions/2.1.104.
  • Try setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable and then run the /config command again to see if it resolves the issue.
  • If the issue persists, investigate the lock acquisition failure error further to determine if it's related to the freeze.

Example

  • To set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable, you can use the command export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value before running the claude CLI.

Notes

  • The provided error messages suggest that the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is missing, which may be causing the plugin MCP server errors.
  • The lock acquisition failure error may be a separate issue, and further investigation is needed to determine its cause.

Recommendation

  • Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to prevent plugin MCP server errors, as this is the most likely cause of the issue based on the provided error messages.

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] /config command hangs on second invocation [1 participants]