[Bug] Compaction fails with "Conversation too long" error, triggering continuous retry loop.

Resolved 💬 2 comments Opened Jan 16, 2026 by garshythoel Closed Jan 17, 2026

Bug Description
⎿ Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.Compaction continously failing

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.7
  • Feedback ID: bc805b06-8007-4462-b1ea-5e7f4f28dd5e

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cEA (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3003:23303)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async hP0.<anonymous> (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5222:708)\n    at async hP0.parseAsync (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:4718:4156)\n    at async J_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5252:1637)\n    at async G_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5175:1561)\n    at async D_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5254:5850)","timestamp":"2026-01-16T01:42:18.234Z"},{"error":"Error: LSP server plugin:gopls-lsp:gopls failed to start: spawn gopls ENOENT\n    at Object.start (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:22356)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.X [as start] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:24792)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: spawn typescript-language-server ENOENT\n    at Object.start (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:22356)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.X [as start] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:24792)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: spawn gopls ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: spawn typescript-language-server ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: Failed to start LSP server plugin:gopls-lsp:gopls: spawn gopls ENOENT\n    at file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:32570\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: Failed to start LSP server plugin:typescript-lsp:typescript: spawn typescript-language-server ENOENT\n    at file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:32570\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-01-16T01:42:18.463Z"},{"error":"Error: Failed to fetch from remote origin: fatal: couldn't find remote ref claude/inku-memory-system-OUPXs\n    at Ii5 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2849:347)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async BEA (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2850:291)\n    at async hP0.<anonymous> (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5226:179)\n    at async hP0.parseAsync (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:4718:4156)\n    at async J_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5252:1637)\n    at async G_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5175:1561)\n    at async D_7 (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:5254:5850)","timestamp":"2026-01-16T01:42:22.659Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cEA (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3003:23303)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at runNextTicks (node:internal/process/task_queues:64:3)\n    at process.processImmediate (node:internal/timers:454:9)\n    at async K (file:///Users/har

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗