[Bug] Claude loses context and deletes code unintentionally during task execution

Status Open
Reported on v2.1.223
Maintainer reply None cached
Activity 0 comments · opened Aug 7, 2026

Bug Description
claude code is a very good tool to vibe code, its amazing, and i love it but still sometimes he doesnt does the tasks im assigning him how im telling it to, like he forgets the goal, and he deleted a important part of my code, thankfully i had a backup and didnt happen something bad, but its still there, and im not the only one that this has happened to him, theres people that claude did the exact same thing but didnt have a backup so, project wiped completely

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.223
  • Feedback ID: 22b179b6-efbe-48f4-88da-96be3cd90229

Errors

[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=198 messages=197 range=[116,198))\n    at kQS (B:/~BUN/root/src/entrypoints/cli.js:23006:8181)\n    at Yrm (B:/~BUN/root/src/entrypoints/cli.js:23006:1103)\n    at En (B:/~BUN/root/src/entrypoints/cli.js:2544:21373)\n    at HE (B:/~BUN/root/src/entrypoints/cli.js:2544:40470)\n    at OF (B:/~BUN/root/src/entrypoints/cli.js:2544:51396)\n    at _Fe (B:/~BUN/root/src/entrypoints/cli.js:2544:89068)\n    at yFe (B:/~BUN/root/src/entrypoints/cli.js:2544:88013)\n    at SHe (B:/~BUN/root/src/entrypoints/cli.js:2544:87832)\n    at IN (B:/~BUN/root/src/entrypoints/cli.js:2544:84093)\n    at Ke (B:/~BUN/root/src/entrypoints/cli.js:2544:6664)","timestamp":"2026-08-06T18:50:13.761Z"}]

View original on GitHub ↗