[Bug] Infinite loop attempting to read PNG as JPEG despite correct file type specification

Resolved 💬 4 comments Opened Nov 20, 2025 by altommo Closed Nov 20, 2025

Bug Description
unable to read a png and is now blocked form completing any other tasks have specified the file type is png and asked it to stop and it just keeps looping trying to read a png file as a jpeg

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.45
  • Feedback ID: 2c28cb86-c851-48a9-883b-e2b2bbcfe0d9

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 216291 tokens > 200000 maximum\"},\"request_id\":\"req_011CVGmp3A98yUNv2bvUf3HK\"}\n    at D9.generate (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:436:20049)\n    at IT.makeStatusError (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:778:2195)\n    at IT.makeRequest (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:778:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async SF9.Z21.model (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:14522)\n    at async Z21 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1965:39801)\n    at async SF9 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:14676)\n    at async file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:7611\n    at async ar1 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1729:1972)\n    at async S_ (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:7582)","timestamp":"2025-11-19T06:27:22.136Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 218113 tokens > 200000 maximum\"},\"request_id\":\"req_011CVGn19frhJYeX3wA8ATb4\"}\n    at D9.generate (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:436:20049)\n    at IT.makeStatusError (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:778:2195)\n    at IT.makeRequest (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:778:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async SF9.Z21.model (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:14522)\n    at async Z21 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1965:39801)\n    at async SF9 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:14676)\n    at async file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:7611\n    at async ar1 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1729:1972)\n    at async S_ (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:3752:7582)","timestamp":"2025-11-19T06:29:53.483Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: csv\n    at IE (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1105:4489)\n    at file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1105:4217\n    at Array.map (<anonymous>)\n    at QD (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1105:4208)\n    at G32 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1828:3681)\n    at lq (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:105:19416)\n    at hQA (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:107:42839)\n    at p9 (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:107:38371)\n    at Na (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:107:38299)\n    at BN (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:107:38153)","timestamp":"2025-11-19T07:19:18.030Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: csv\n    at IE (file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1105:4489)\n    at file:///C:/Users/hp/AppData/Local/nvm/v22.17.0/node_modules/@anthropic-ai/claude-code/cli.js:1105:4217\n    at Array.map (<anonymous>)\n    at QD (file:///

Note: Error logs were truncated.

View original on GitHub ↗

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