[Bug] Claude Code Persistently Erases Previous Context Between Tasks

Resolved 💬 3 comments Opened Sep 23, 2025 by cmcgrath2023 Closed Jan 10, 2026

Bug Description
Claude continuously erases text each time it goes to a new task. This is an old bug that has returned from the early days and it makes the pathetic level of problem solving 100X more maddening. Please fix it. I at this point have no choice but to leave yoru product. It's just dismal.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.120
  • Feedback ID: 28a9406d-7d72-4e47-b8fb-7bf6d0a73a33

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Object.readSync (node:fs:744:3)\n    at tryReadSync (node:fs:444:20)\n    at Module.readFileSync (node:fs:490:19)\n    at Object.readFileSync (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:719:6848)\n    at x9B (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:3563:9983)\n    at Object.call (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:978)\n    at call.next (<anonymous>)\n    at VJ5 (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:21057)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async WNB (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:17339)","timestamp":"2025-09-22T05:12:29.335Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at iV (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1794:1184)\n    at file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1794:912\n    at Array.map (<anonymous>)\n    at TX (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1794:903)\n    at oCB (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:3032:9581)\n    at QC (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:19415)\n    at Jp (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:86:42814)\n    at W9 (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:86:38355)\n    at Hh (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:86:38283)\n    at zC (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:86:38137)","timestamp":"2025-09-22T23:47:07.875Z"},{"error":"MaxFileReadTokenExceededError: File content (113417 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at k9B (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:432)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:1036)\n    at async ZO (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:2967)\n    at async file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1810:1327","timestamp":"2025-09-23T00:35:04.266Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Object.readSync (node:fs:744:3)\n    at tryReadSync (node:fs:444:20)\n    at Module.readFileSync (node:fs:490:19)\n    at Object.readFileSync (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:719:6848)\n    at x9B (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:3563:9983)\n    at Object.call (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:978)\n    at call.next (<anonymous>)\n    at ZO (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:2967)\n    at file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:1810:1333\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-09-23T00:35:06.134Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Object.readSync (node:fs:744:3)\n    at tryReadSync (node:fs:444:20)\n    at Module.readFileSync (node:fs:490:19)\n    at Object.readFileSync (file:///Users/chrismcgrath/.nvm/versions/node/v18.20.8/lib/node_modules/@anthropic-ai/claude-code/cli.js:719:6848)\n    at x9B (file:///Users/chrismcgrath/.nv

Note: Error logs were truncated.

View original on GitHub ↗

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