[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages

Resolved 💬 3 comments Opened Jan 17, 2026 by mimosel Closed Jan 20, 2026

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5.content.92: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original
response."},"request_id":"req_011CXCXXoRExvpeQ2QHij1Wn"}

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.9
  • Feedback ID: 89026a01-7efb-4cdc-888d-852c92d82088

Errors

[{"error":"Error\n    at uh (B:/~BUN/root/claude.exe:38:1144)\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10093)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:58.824Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at start (B:/~BUN/root/claude.exe:1639:22101)\n    at async E (B:/~BUN/root/claude.exe:1639:24557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:58.961Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/claude.exe:1639:20642)\n    at start (B:/~BUN/root/claude.exe:1639:22155)\n    at E (B:/~BUN/root/claude.exe:1639:24557)\n    at E (B:/~BUN/root/claude.exe:1639:25533)\n    at L (B:/~BUN/root/claude.exe:1639:32337)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:58.961Z"},{"error":"Error: Failed to start LSP server plugin:typescript-lsp:typescript: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at <anonymous> (B:/~BUN/root/claude.exe:1639:32360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:58.961Z"},{"error":"Error\n    at uh (B:/~BUN/root/claude.exe:38:1144)\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10093)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:59.271Z"},{"error":"Error: Error opening file C:\\Users\\micha\\.claude\\projects\\C--Users-micha-OneDrive-Desktop-ClaudeProjects-LektoratAddin\\54b8f4c4-2fff-474d-8cb1-909a5a6c126a.jsonl: Error: ENOENT: no such file or directory, open 'C:\\Users\\micha\\.claude\\projects\\C--Users-micha-OneDrive-Desktop-ClaudeProjects-LektoratAddin\\54b8f4c4-2fff-474d-8cb1-909a5a6c126a.jsonl'\n    at Vk (B:/~BUN/root/claude.exe:65:177)\n    at async Qs (B:/~BUN/root/claude.exe:3273:1893)\n    at async PTI (B:/~BUN/root/claude.exe:3273:6966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:29:59.401Z"},{"error":"Error: Error opening file C:\\Users\\micha\\.claude\\projects\\C--Users-micha-OneDrive-Desktop-ClaudeProjects-LektoratAddin\\f948baab-375f-43fe-9eac-efc0e6922068.jsonl: Error: ENOENT: no such file or directory, open 'C:\\Users\\micha\\.claude\\projects\\C--Users-micha-OneDrive-Desktop-ClaudeProjects-LektoratAddin\\f948baab-375f-43fe-9eac-efc0e6922068.jsonl'\n    at Vk (B:/~BUN/root/claude.exe:65:177)\n    at async Qs (B:/~BUN/root/claude.exe:3273:1893)\n    at async PTI (B:/~BUN/root/claude.exe:3273:6966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:30:00.613Z"},{"error":"XyD: Diagnostics file path mismatch: expected C:\\Users\\micha\\.claude\\plans\\zany-snacking-iverson.md, got file://c:\\users\\micha\\.claude\\plans\\zany-snacking-iverson.md/)\n    at beforeFileEdited (B:/~BUN/root/claude.exe:1277:34047)\n    at async call (B:/~BUN/root/claude.exe:1675:2701)\n    at async Wd1 (B:/~BUN/root/claude.exe:2715:19646)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:32:17.035Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:947:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:4645:2149)","timestamp":"2026-01-17T06:32:18.028Z"},{"error":"XyD: Diagnostics file path mismatch: expected C:\\Users\\micha\\.claude\\plans\\purring-strolling-thacker.md, got file://c:\\users\\micha\\.claude\\plans\\purring-strolling-thacker.md/)\n    at beforeFileEdited (B:/~BUN/root/claude.exe:1277:34047)\n    at async call (B:/~BUN/root/claude.exe:1675:2701)\n    at async Wd1 (B:/~BUN/root/claude.exe:2715:19646)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T06:44:14.498Z"},{"error":"XyD: Diagnosti

Note: Error logs were truncated.

View original on GitHub ↗

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