Skip to content

[Bug] Claude Code: Fails to Complete Basic Code Editing Task #6595

@mattgodbolt

Description

@mattgodbolt

Bug Description
Claude having terible trouble making a simple edit


● Update(assembler_source.asm)
  ⎿  Error editing file

● Update(assembler_source.asm)
  ⎿  Updated assembler_source.asm with 1 addition and 1 removal
       164    STAZ 09     ; Store low byte
       165    LDA# 00
       166    STAZ 0A     ; Clear high byte
       167 -  JMP  :WRITE_INST   ; Jump to WRITE_INST
       167 +  RTS         ; Return to caller
       168    
       169    @0540       ; Align READ_WORD routine
       170    ; Read two-byte operand (little-endian)

● Update(assembler_source.asm)
  ⎿  Error editing file

● Let me check the exact text:

● Read(assembler_source.asm)
  ⎿  Read 3 lines (ctrl+r to expand)

● Update(assembler_source.asm)
  ⎿  Error editing file

● Update(assembler_source.asm)
  ⎿  Error editing file

● Let me check the exact spacing:

● Bash(head -150 assembler_source.asm | tail -10 | cat -A)
  ⎿  CMP# 01     ; Type 1: single byte$            
     BNE  :CHECK_TYPE_2   ; Not 1, check type 2$
     JMP  :READ_BYTE   ; Type 1: jump to READ_BYTE$
     … +7 lines (ctrl+r to expand)

● Update(assembler_source.asm)
  ⎿  Error editing file

● Let me use MultiEdit to make both changes at once:

● Update(assembler_source.asm)
  ⎿  Error editing file

● Let me check the file again:

● Bash(grep -n "jump to read_BYTE" assembler_source.asm)
  ⎿  No matches found

● Bash(grep -n "READ_BYTE" assembler_source.asm | head -5)
  ⎿  143:JMP  :READ_BYTE   ; Type 1: jump to READ_BYTE
     150:JSR  :READ_BYTE   ; Call READ_BYTE
     160:@0500       ; Align READ_BYTE routine
     … +1 line (ctrl+r to expand)
  ⎿  Interrupted by user

> /bug 
  ⎿  Bug report submitted

> carry on

● Update(assembler_source.asm)
  ⎿  Error editing file

● Let me check if the comment changed:

● Bash(sed -n '143p' assembler_source.asm | cat -A)

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.92
  • Feedback ID: b140bcd0-bedd-4918-9f0a-ffab3e2ac903

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at y5W (/$bunfs/root/claude:3128:11956)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.597Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: asm\n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.614Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: asm\n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.616Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: asm\n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.635Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.649Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.650Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at N3 (/$bunfs/root/claude:1606:1192)\n    at map (native:1:11)\n    at zK (/$bunfs/root/claude:1606:905)\n    at E5W (/$bunfs/root/claude:3128:8960)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)","timestamp":"2025-08-26T12:06:46.682Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.162: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01CFfjBWCNwozobK1f7qD7y9. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSWHwdnKCHcwPggXzBzkW\"}\n    at new nW (unknown:1:28)\n    at new r5 (/$bunfs/root/claude:764:1962)\n    at new 

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions