[Bug] Auto-Compact fails with "Conversation too long" error repeatedly

Resolved 💬 3 comments Opened Jan 15, 2026 by garshythoel Closed Jan 17, 2026

Bug Description
I am unable to compact any conversations they keep failing w/ ⎿ Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

I have auto compaction on but it just never successfully works. Have to open a new convo every time i hit compaction

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.7
  • Feedback ID: 8be170b6-5e01-4780-8324-82ea19a1cef9

Errors

[{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.V [as sendNotification] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:27003)\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:33856)","timestamp":"2026-01-15T21:00:29.733Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/packages/server-utilities/src/avatars.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)","timestamp":"2026-01-15T21:00:29.734Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/packages/server-utilities/src/avatars.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)","timestamp":"2026-01-15T21:00:29.734Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.V [as sendNotification] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:27003)\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:33856)","timestamp":"2026-01-15T21:00:38.225Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/packages/server-utilities/src/avatars.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)","timestamp":"2026-01-15T21:00:38.226Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/packages/server-utilities/src/avatars.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)","timestamp":"2026-01-15T21:00:38.226Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.V [as sendNotification] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:27003)\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:33856)\n    at runNextTicks (node:internal/process/task_queues:60:5)\n    at process.processImmediate (node:internal/timers:454:9)\n    at process.topLevelDomainCallback (node:domain:160:15)\n    at process.callbackTrampoline (node:internal/async_hooks:128:24)","timestamp":"2026-01-15T21:01:00.267Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/apps/inku-app/src/sheets.types.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)\n    at runNextTicks (node:internal/process/task_queues:60:5)\n    at process.processImmediate (node:internal/timers:454:9)\n    at process.topLevelDomainCallback (node:domain:160:15)\n    at process.callbackTrampoline (node:internal/async_hooks:128:24)","timestamp":"2026-01-15T21:01:00.267Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/apps/inku-app/src/sheets.types.ts: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:34032)\n    at runNextTicks (node:internal/process/task_queues:60:5)\n    at process.processImmediate (node:internal/timers:454:9)\n    at process.topLevelDomainCallback (node:domain:160:15)\n    at process.callbackTrampoline (node:internal/async_hooks:128:24)","timestamp":"2026-01-15T21:01:00.267Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.V [as sendNotification] (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:27003)\n    at D (file:///Users/harshytgoel/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2443:33856)","timestamp":"2026-01-15T21:01:16.071Z"},{"error":"Error: Failed to sync file open /Users/harshytgoel/Projects/inkrepo/apps/inku-app/src/screens/AvatarSetShowcase/compon

Note: Error logs were truncated.

View original on GitHub ↗

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