[Bug] Auto-Compact fails with error, requires session reset and context loss

Resolved 💬 3 comments Opened Feb 15, 2026 by m3nt0l Closed Feb 19, 2026

Bug Description
Each time when the context is low and the automatic compact happens, i get an error and I have to clear the session losing all the context.

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.1.42
  • Feedback ID: e73c6c30-21f8-456b-b800-7da0d5a8e449

Errors

[{"error":"Error: 1: Command failed with ENOENT: cursor --force --install-extension anthropic.claude-code\nspawn cursor ENOENT \n    at pS9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1629:4053)\n    at async gS9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1629:1584)","timestamp":"2026-02-15T09:38:55.416Z"},{"error":"FileTooLargeError: File content (338KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Jy7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1179:496)\n    at async VS7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1365:2373)\n    at async Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1370:5851)\n    at async ciY (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3410:14112)","timestamp":"2026-02-15T09:59:53.328Z"},{"error":"FileTooLargeError: File content (338KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Jy7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1179:496)\n    at async VS7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1365:2373)\n    at async Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1370:5851)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5896:1593","timestamp":"2026-02-15T10:00:51.508Z"},{"error":"FileTooLargeError: File content (338KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Jy7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1179:496)\n    at async VS7 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1365:2373)\n    at async Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1370:5851)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5896:1593","timestamp":"2026-02-15T10:00:51.509Z"},{"error":"Error: File does not exist. Current working directory: /Users/acorex/Desktop/@WORK/Projects/mobcommerce/storefront\n    at Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1370:6150)\n    at async ciY (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3410:14112)","timestamp":"2026-02-15T10:14:15.142Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at fG1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3234:934)\n    at async tt4 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3319:2536)\n    at async iR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3412:7362)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:3605\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:4408\n    at async FZz (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7378:26279)\n    at async Ik6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7378:24919)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:8146\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7371:5397","timestamp":"2026-02-15T10:26:49.596Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at fG1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3234:934)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async tt4 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3319:2536)\n    at async iR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3412:7362)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:3605\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:4408\n    at async FZz (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7378:26279)\n    at async Ik6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7378:24919)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7388:8146\n    …

Note: Content was truncated.

View original on GitHub ↗

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