[Bug] Claude Code repeats completed work phases and loses context of prior modifications

Resolved 💬 3 comments Opened Jan 28, 2026 by ExtravagantHoboLabs Closed Jan 28, 2026

Bug Description
So this is more bizarre behavior. I finally got it to use the latest documentation to audit this Swift camera code along with the other previous changes. It executes the other changes/updates from the audit, gets to the phase2-camera section and pushes back against changes again, citing ancient 3rd world iOS compatibility, and i prompt it AGAIN to research. It AGAIN determines it's time to upgrade to AVFoundation for the camera, updates the plan, and then apparently is ready to start from scratch again with the other already-completed phases. Guys. Honestly you really fucked this thing up in the last few weeks. December 2025 was great. You're falling down the toilet that ChatGPT showed us with 5.2 here, seriously. Why? Opus4.5 was so great! Sad :(

Environment Info

  • Platform: darwin
  • Terminal: windsurf
  • Version: 2.1.22
  • Feedback ID: 992dd3f3-d02f-47b1-bafb-9037e8ba974f

Errors

[{"error":"TypeError: Cannot read properties of undefined (reading 'safeParse')\n    at TQ6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5228:25188)\n    at tr2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1314)\n    at Yv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1754)\n    at oq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1683)\n    at Object.Qb8 [as isPlatformInEnabledList] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:244:2532)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4744:21550\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4881:6409\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5148:913","timestamp":"2026-01-28T16:07:58.784Z"},{"error":"TypeError: Cannot read properties of undefined (reading 'safeParse')\n    at TQ6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5228:25188)\n    at tr2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1314)\n    at Yv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1754)\n    at oq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5229:1683)\n    at Object.Qb8 [as isPlatformInEnabledList] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:244:2532)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4744:21550\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4881:6409\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5148:913","timestamp":"2026-01-28T16:07:58.785Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1569:26)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1909\n    at hX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:35183)\n    at Object.readdirSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1879)\n    at sZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1827:369)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1827:4509\n    at q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)\n    at Un2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4881:4362)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4881:6995\n    at q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)","timestamp":"2026-01-28T16:07:58.860Z"},{"error":"AxiosError: Request failed with status code 401\n    at Bh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:39:1138)\n    at IncomingMessage.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:44:9787)\n    at IncomingMessage.emit (node:events:520:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at iNA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:46:2132)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async sU2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4334:24286)\n    at async file:///opt/homebrew/li…

Note: Content was truncated.

View original on GitHub ↗

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