claude-code - 💡(How to fix) Fix [Bug] Resume terminal session outputs minified JavaScript noise instead of error message [4 comments, 4 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#54811Fetched 2026-04-30 06:35:18
View on GitHub
Comments
4
Participants
4
Timeline
10
Reactions
0
Timeline (top)
labeled ×5commented ×4closed ×1

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:44.095Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6360:11041)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n at async v (/$bunfs/root/src/entrypoints/cli.js:6360:11902)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:44.095Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6360:11041)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6360:11902)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description resumed a terminal session (claude --resume) and saw this noise:

Id9(f_.host,Y9);return new Promise((l9)=>{if(!q9){pO((q)=>[...q,{hostPattern:f,resolvePromise: l9}]);return}pd9({requestId:Y9,host:f.host,resolve:l9}),e((q)=>({...q,pendingSandboxRequest:{r equestId:Y9,host:f.host}}))})}return new Promise((Y9)=>{let q9=!1;function l9(q){if(q9)return;q9=!0,Y9(q)}pO((q)=>[...q,{hostPattern:f,resolvePromise:l9}]);{let q=DH.getState().replBridgePermissionCallbacks;if(q){let z7=uYH.randomUUID();q.sendRequest(z7,hD6,{host:f.host},uYH.randomUUID(),Allow network connection to ${f_.host}?);let U1=q.onResponse(z7,(MT)=>{U1();let KY=MT.behavior==="allow";pO((Bj)=>{return Bj.filter((Fj)=>Fj.hostPattern.host===f.host).forEach( (Fj)=>Fj.resolvePromise(KY)),Bj.filter((Fj)=>Fj.hostPattern.host!==f.host)});let V0=mj.current.get(f.host);if(V0){for(let Bj of V0)Bj();mj.current.delete(f.host)}}),nw=()=>{U1(),q.cancelRequest(z7)},C4=mj.current.get(f.hos t)??[];C4.push(nw),mj.current.set(f.host,C4)}}})},[e,DH]);if(s.useEffect(()=>{let f=y8.getSand boxUnavailableReason();if(!f_)return;if(y8.isSandboxRequired()){process.stderr.write(`

9252: Error: sandbox required but unavailable: ${f_} 9253: + sandbox.failIfUnavailable is set \u2014 refusing to start without a working sandbox. 9254:

  • <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
  • WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.120
  • Feedback ID: 48902550-83b4-4625-b2f9-b03b4a9d4965

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:44.095Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6360:11041)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at uWH (/$bunfs/root/src/entrypoints/cli.js:2762:30485)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6360:11902)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T20:52:45.013Z"}]

extent analysis

TL;DR

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

Guidance

  • The error messages indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To fix this, set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable before running the application.
  • Verify that the environment variable is set correctly by checking the output of the command echo $GITHUB_PERSONAL_ACCESS_TOKEN in your terminal.
  • If you are using a .env file, ensure that it is being loaded correctly and that the variable is defined in the file.

Example

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

Notes

The GITHUB_PERSONAL_ACCESS_TOKEN environment variable is required for the MCP server to authenticate with GitHub. Without this variable set, the MCP server will throw an error.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error. This will allow the application to function correctly until a more permanent solution can be implemented.

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