Skip to content

Conversation History Management and Error Handling Improvements for Claude Code #4425

@super-walter-2

Description

@super-walter-2

Bug Description
The issue that I have with the current version of Claude Code is not being able to do what I was able to do with Github Copilot as in being able to select a previous message from the convo history and then by pressing delete, being able to not only delete the messages that came after that message and the message itself, but also delete the diffs that came into being after that message. ALSO... (!)
There is a very BIG ISSUE with the handling of requests when the server is overloaded (and by the looks of today's session, this could be a huge issue), basically, if the AI is trying to modify something by searching for a string to then update that portion of code, AND it gets an error because it was't able to properly match the string, AND we then have our request postponed because of the overload, THEN the AI will SKIP ENTIRELY that action. ALSO!!! ... IF the overloaded error persists, we may find ourselves with requests that get half completed and then we skip to other parts, resulting in a file full of errors, uncompleted functions and just broken unusable code!
Thanks for the effort guys, you buit something incredible, but the REPL in and of itself is limiting a lot of Claude Code's potential, I hope you are able to address the issue without needing to change the whole architecture.

Environment Info

  • Platform: win32
  • Terminal: cursor
  • Version: 1.0.60
  • Feedback ID: b49008c7-15bb-462a-8ccf-182c3944cb00

The following errors are COMPLETELY UNRELATED TO WHAT I DESCRIBED, but I will leave the logs that were attached (automatically) here because who knows if these won't be useful
Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.174: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01H3J2NcWEFqY7tEfB2jDPYK. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at i4.generate (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1317:6428)\n    at BP.makeStatusError (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at BP.makeRequest (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ZvB.TG1.showErrors (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:14365)\n    at async TG1 (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2345:5642)\n    at async ZvB (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:14216)\n    at async file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:9271\n    at async OL0 (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:1690)\n    at async de (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:9241)","timestamp":"2025-07-25T14:59:18.504Z"},{"error":"Error: 529 {\"type\":\"error\",\"error\":{\"type\":\"overloaded_error\",\"message\":\"Overloaded\"}}\n    at i4.generate (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1317:6672)\n    at BP.makeStatusError (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at BP.makeRequest (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ZvB.TG1.showErrors (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:14365)\n    at async TG1 (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2345:5642)\n    at async ZvB (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:14216)\n    at async file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:9271\n    at async OL0 (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:1690)\n    at async de (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2902:9241)","timestamp":"2025-07-25T14:59:46.159Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.174: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01H3J2NcWEFqY7tEfB2jDPYK. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at i4.generate (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1317:6428)\n    at BP.makeStatusError (file:///C:/Users/pc_ho/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at BP.makeRequest (file:

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:tuiautocloseIssue will be closed automaticallybugSomething isn't workingenhancementNew feature or requesthas reproHas detailed reproduction stepsmemoryplatform:windowsIssue specifically occurs on Windows

    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