[Bug] Claude Code: Incorrect Layout Handling with Persistent Misplacement of Elements

Resolved 💬 5 comments Opened Sep 7, 2025 by RawLabs Closed Jan 8, 2026

Bug Description
claude is failing to follow instructions... in a simple html page build with like 6 elements following a template , buttons were placed in the wrong spots.. i ask specifically that two buttons had to be on the bottom and not vertical on the right.. claude instead of changing the code just written went in a tirade of patches and !important and forces to make the changes???? this has been consistent.. and when asked it says yah i messed up let me fix, then adds more patches and more !important.. every request it guesses without looking at the code first even when the instructions are explicit and clear. regardless what prompts guides and instructions used, its like coding with a schizophrenic drunk.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.108
  • Feedback ID: 465835d9-b252-492c-a7bc-aec0179db5e2

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aH (/$bunfs/root/claude:1611:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1611:905)\n    at xCW (/$bunfs/root/claude:2772:9236)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bunfs/root/claude:231:38129)\n    at VF (/$bunfs/root/claude:231:35208)","timestamp":"2025-09-06T22:08:30.779Z"},{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:582:9937)\n    at W (/$bunfs/root/claude:533:13280)\n    at ryG (/$bunfs/root/claude:1021:1920)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-06T23:42:53.519Z"},{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:582:9937)\n    at W (/$bunfs/root/claude:533:13280)\n    at ryG (/$bunfs/root/claude:1021:1920)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-06T23:47:14.379Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at SR (/$bunfs/root/claude:1679:737)\n    at renderToolUseRejectedMessage (/$bunfs/root/claude:1736:998)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bunfs/root/claude:231:38129)\n    at VF (/$bunfs/root/claude:231:35208)\n    at WX (/$bunfs/root/claude:229:4842)\n    at OX (/$bunfs/root/claude:231:32454)","timestamp":"2025-09-06T23:55:16.153Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aH (/$bunfs/root/claude:1611:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1611:905)\n    at xCW (/$bunfs/root/claude:2772:9236)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bunfs/root/claude:231:38129)\n    at VF (/$bunfs/root/claude:231:35208)","timestamp":"2025-09-06T23:55:16.167Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at SR (/$bunfs/root/claude:1679:737)\n    at renderToolUseRejectedMessage (/$bunfs/root/claude:1736:998)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bunfs/root/claude:231:38129)\n    at VF (/$bunfs/root/claude:231:35208)\n    at WX (/$bunfs/root/claude:229:4842)\n    at OX (/$bunfs/root/claude:231:32454)","timestamp":"2025-09-06T23:55:16.259Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at SR (/$bunfs/root/claude:1679:737)\n    at renderToolUseRejectedMessage (/$bunfs/root/claude:1736:998)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bunfs/root/claude:231:38129)\n    at VF (/$bunfs/root/claude:231:35208)\n    at WX (/$bunfs/root/claude:229:4842)\n    at OX (/$bunfs/root/claude:231:32454)","timestamp":"2025-09-06T23:55:16.334Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at SR (/$bunfs/root/claude:1679:737)\n    at renderToolUseRejectedMessage (/$bunfs/root/claude:1736:998)\n    at hq (/$bunfs/root/claude:229:19415)\n    at Uu (/$bunfs/root/claude:231:42805)\n    at p5 (/$bunfs/root/claude:231:38347)\n    at Ox (/$bunfs/root/claude:231:38275)\n    at aq (/$bun

Note: Error logs were truncated.

View original on GitHub ↗

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