claude-code - 💡(How to fix) Fix [Bug] Model performance degradation after updates: excessive iterations and livelock behavior [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#45185Fetched 2026-04-09 08:11:18
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×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 lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:14.896Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.109Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.112Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:11:28.110Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:04.926Z"},{"error":"MaxFileReadTokenExceededError: File content (22274 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:05.543Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: "typescript-language-server"\n at start (/$bunfs/root/src/entrypoints/cli.js:2274:22349)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.893Z"},{"error":"Error: Executable not found in $PATH: "typescript-language-server"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:2274:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:2274:24869)\n at T (/$bunfs/root/src/entrypoints/cli.js:2274:29589)\n at w (/$bunfs/root/src/entrypoints/cli.js:2274:29926)\n at f (/$bunfs/root/src/entrypoints/cli.js:2274:30472)\n at call (/$bunfs/root/src/entrypoints/cli.js:2792:3897)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.899Z"},{"error":"Error: Failed to start …

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:14.896Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.109Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.112Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:11:28.110Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:04.926Z"},{"error":"MaxFileReadTokenExceededError: File content (22274 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:05.543Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:2274:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.893Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:2274:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2274:24869)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2274:29589)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2274:29926)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2274:30472)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2792:3897)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.899Z"},{"error":"Error: Failed to start …
RAW_BUFFERClick to expand / collapse

Bug Description Stop playing around with the models, before or after an update, for some reason, they start performing extremely poorly: long waiting times, poor responses, multiple iterations doing the exact same thing - looks like a never ending pool, livelock.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.92
  • Feedback ID: f8d9db3c-1f2e-4bea-8b76-615a3fee25b6

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:14.896Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.060Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5820:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.109Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5820:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:10:22.112Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:11:28.110Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lAH (/$bunfs/root/src/entrypoints/cli.js:1526:34345)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:16:21.312Z"},{"error":"MaxFileReadTokenExceededError: File content (11164 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:04.926Z"},{"error":"MaxFileReadTokenExceededError: File content (22274 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T11:19:05.543Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:2274:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.893Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:2274:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2274:24869)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2274:29589)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2274:29926)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2274:30472)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2792:3897)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T12:18:57.899Z"},{"error":"Error: Failed to start …

Note: Content was truncated.

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the mcp-config-invalid errors.

Guidance

  1. Environment Variable Setup: Ensure the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is set correctly in your development environment.
  2. Executable Path Verification: Verify that typescript-language-server is installed and its executable is in the system's PATH.
  3. File Read Token Limit: Consider using offset and limit parameters when reading files to avoid exceeding the maximum allowed tokens (10000).
  4. Error Monitoring: Continuously monitor the errors to identify any patterns or recurring issues after applying the fixes.
  5. Dependency Installation: Ensure all required dependencies, including typescript-language-server, are properly installed and up-to-date.

Example

No specific code example is provided due to the nature of the issue, but setting an environment variable in a Unix-like system (such as darwin) can be done using the command export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value before running your application.

Notes

The provided error logs indicate multiple issues, including missing environment variables, file read token limits, and executable not found errors. Addressing these individually should help in resolving the overall performance and functionality issues described.

Recommendation

Apply workaround by setting the required environment variables and ensuring dependencies are correctly installed and configured. This should help mitigate the immediate errors and improve the application's performance.

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