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

Resolved 💬 3 comments Opened Jan 30, 2026 by BoukaryDiallo Closed Feb 2, 2026

Bug Description
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.9.content.28:
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_011CXcZemXfNohsu5gf8GWpy"}

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.1.23
  • Feedback ID: 6519aa8a-363b-45eb-9be7-053fd159b41c

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/etc/claude-code/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:2063)\n    at nJ (/$bunfs/root/claude:11:35715)\n    at readdirSync (/$bunfs/root/claude:12:2024)\n    at zZ$ (/$bunfs/root/claude:1781:380)\n    at zZ$ (/$bunfs/root/claude:1781:1350)\n    at <anonymous> (/$bunfs/root/claude:1781:4670)\n    at <anonymous> (/$bunfs/root/claude:1781:5401)\n    at A (/$bunfs/root/claude:11:7259)\n    at ax1 (/$bunfs/root/claude:4791:4342)","timestamp":"2026-01-29T13:45:58.737Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:937:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (/$bunfs/root/claude:2998:209)","timestamp":"2026-01-29T13:47:33.306Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:161:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T16:58:24.802Z"},{"error":"Error: Request was aborted.\n    at wC$ (/$bunfs/root/claude:1686:44936)\n    at nAB (/$bunfs/root/claude:5060:7413)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T17:18:23.428Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:937:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (/$bunfs/root/claude:5146:2153)","timestamp":"2026-01-29T17:21:37.175Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/etc/claude-code/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:2063)\n    at nJ (/$bunfs/root/claude:11:35715)\n    at readdirSync (/$bunfs/root/claude:12:2024)\n    at zZ$ (/$bunfs/root/claude:1781:380)\n    at zZ$ (/$bunfs/root/claude:1781:1350)\n    at <anonymous> (/$bunfs/root/claude:1781:4670)\n    at <anonymous> (/$bunfs/root/claude:1781:5401)\n    at A (/$bunfs/root/claude:11:7259)\n    at ax1 (/$bunfs/root/claude:4791:4342)","timestamp":"2026-01-29T17:36:49.950Z"},{"error":"Error: Request was aborted.\n    at wC$ (/$bunfs/root/claude:1686:44936)\n    at nAB (/$bunfs/root/claude:5060:7413)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T17:50:40.222Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:47:10681)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/claude:46:3321)\n    at request (/$bunfs/root/claude:49:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T18:04:29.880Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:161:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T18:44:47.825Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:47:10681)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/claude:46:3321)\n    at request (/$bunfs/root/claude:49:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T18:46:12.671Z"},{"error":"Error: Command failed: /home/boukary/.local/share/claude/versions/2.1.23 --ripgrep --hidden --glob !.git --glob !.svn --glob !.hg --glob !.bzr --max-columns 500 -l sidebar|Sidebar --type vue /home/boukary/Lab/web/node/sliresto\n    at genericNodeError (node:child_process:1000:22)\n    at exitHandler (node:child_process:103:28)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:768:16)\n    at #handleOnExit (node:child_process:520:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T18:46:14.498Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at D (/$bunfs/root/claude:74:189)\n    at <anonymous> (/$bunfs/root…

Note: Content was truncated.

View original on GitHub ↗

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