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

Resolved 💬 2 comments Opened Jan 26, 2026 by Kasempiternal Closed Jan 26, 2026

Bug Description
❯ continue
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.152: 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_011CXWDPMGt3KMM9JVkyvc5B"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.19
  • Feedback ID: 6ba07ee6-e608-4a0b-974b-ae7ac597f63d

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at mW (/$bunfs/root/claude:11:35435)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at ILR (/$bunfs/root/claude:2215:380)\n    at ILR (/$bunfs/root/claude:2215:1350)\n    at <anonymous> (/$bunfs/root/claude:2215:4440)\n    at <anonymous> (/$bunfs/root/claude:2215:5171)\n    at A (/$bunfs/root/claude:11:7259)\n    at FZ8 (/$bunfs/root/claude:4862:4342)","timestamp":"2026-01-26T15:01:53.840Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/izotz.cristobal/.local/share/claude/versions/2.1.19 (expected in multi-process scenarios)\n    at BUR (/$bunfs/root/claude:4003:2091)\n    at YkA (/$bunfs/root/claude:4003:1202)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T15:01:53.903Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:161:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T15:03:09.531Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:582)\n    at mW (/$bunfs/root/claude:11:35435)\n    at readFileSync (/$bunfs/root/claude:12:541)\n    at bPB (/$bunfs/root/claude:5237:27443)\n    at call (/$bunfs/root/claude:3899:945)\n    at call (/$bunfs/root/claude:3895:6496)\n    at v18 (/$bunfs/root/claude:2963:20041)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T15:03:42.919Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:935:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (/$bunfs/root/claude:5244:2153)","timestamp":"2026-01-26T15:06:58.989Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at mW (/$bunfs/root/claude:11:35435)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at ILR (/$bunfs/root/claude:2215:380)\n    at ILR (/$bunfs/root/claude:2215:1350)\n    at <anonymous> (/$bunfs/root/claude:2215:4440)\n    at <anonymous> (/$bunfs/root/claude:2215:5171)\n    at A (/$bunfs/root/claude:11:7259)\n    at FZ8 (/$bunfs/root/claude:4862:4342)","timestamp":"2026-01-26T15:11:50.819Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.152: `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_011CXWDCHbZrXcpjFngCyGwF\"}\n    at generate (/$bunfs/root/claude:144:37450)\n    at makeRequest (/$bunfs/root/claude:161:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T15:16:53.295Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.152: `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_011CXWDPMGt3KMM9JVkyvc5B\"}\n    at generate (/$bunfs/root/claude:144:37450)\n    at makeRequest (/$bunfs/root/claude:161:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T15:19:23.392Z"}]

View original on GitHub ↗

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