[Bug] Claude misinterprets component-specific prompts, removes unintended similar UI elements
Resolved 💬 3 comments Opened Jan 3, 2026 by Michael-Duck Closed Jan 7, 2026
Bug Description
sometimes doesn't understand prompts very well, when i am to copy and paste specific prompts of specific UIs it would interface the removal of ALL components with similar contents, even if the contents aren't directly a replica, for example with this chat, i copied and pasted the contents of a very specific UI with contents within that UI and instead it decided to remove a UI similar despite it not necessarily being the one i was talking about, the only dissimilar aspect of the difference between the component was the button. sometimes it struggles with specifics.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.76
- Feedback ID: 8f341478-7577-4674-b30b-954c4d752b98
Errors
[{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:441:20)\n at file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:429\n at oI (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)\n at Object.readFileSync (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:404)\n at zdB (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4739:22342)\n at Object.call (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1027:942)\n at Au5 (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2207:17446)","timestamp":"2026-01-03T17:29:51.765Z"},{"error":"MaxFileReadTokenExceededError: File content (66695 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 EdB (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n at async Au5 (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2207:17438)","timestamp":"2026-01-03T17:30:07.456Z"},{"error":"MaxFileReadTokenExceededError: File content (32136 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 EdB (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n at async Au5 (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2207:17438)","timestamp":"2026-01-03T17:30:07.496Z"},{"error":"MaxFileReadTokenExceededError: File content (66695 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 EdB (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n at async file:///C:/Users/micha/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2026-01-03T17:31:11.731Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗