[Bug] Markdown Image Encoding Causes Project Load Failure

Resolved 💬 3 comments Opened Oct 2, 2025 by gvsg-rs Closed Oct 5, 2025

Bug Description
I ran a fairly innocuous command to load project files pertaining to a project I'm testing. And this error popped up. The md file has an image that was encoded as text.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.0.1
  • Feedback ID: 41cae421-fe40-41c0-b1b9-e1cb0a879419

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QK (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:1183)\n    at file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:911\n    at Array.map (<anonymous>)\n    at xX (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:902)\n    at dJB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2847:9380)\n    at CC (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Fp (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at I9 (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Ch (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at TC (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-01T21:45:43.594Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QK (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:1183)\n    at file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:911\n    at Array.map (<anonymous>)\n    at xX (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1741:902)\n    at dJB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2847:9380)\n    at CC (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Fp (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at I9 (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Ch (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at TC (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-02T00:37:23.271Z"},{"error":"MaxFileReadTokenExceededError: File content (31214 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 cBB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async Eh6 (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3162:21927)\n    at async wFB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3162:18069)","timestamp":"2025-10-02T00:41:08.819Z"},{"error":"MaxFileReadTokenExceededError: File content (31214 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 cBB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-02T00:42:21.369Z"},{"error":"MaxFileReadTokenExceededError: File content (31214 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 cBB (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///Users/gautam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-02T00:42:21.595Z"},{"error":"MaxFileReadTokenExceededError: File content (91607 tokens) exceeds maximum allowed tokens (25000). Please us

Note: Error logs were truncated.

View original on GitHub ↗

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