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

Resolved 💬 3 comments Opened Feb 12, 2026 by tdimino Closed Feb 15, 2026

Bug Description
I interrupted Claude Code as it was awaiting agent outputs and got this error: " API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.1: 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_011CY3NLEWujKLadYEGYjtRS"} " which prevented me from continuing my session

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.39
  • Feedback ID: 6efd9700-110e-48f7-8fcf-1c48bfaddb95

Errors

[{"error":"Error: ENOENT: no such file or directory, open '/Users/tomdimino/.claude/remote-settings.json'\n    at openSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:947)\n    at B2 (/$bunfs/root/claude:11:49917)\n    at readSync (/$bunfs/root/claude:12:875)\n    at $2 (/$bunfs/root/claude:6133:113)\n    at Q5 (/$bunfs/root/claude:6135:226)\n    at S9A (/$bunfs/root/claude:178:8273)\n    at s7R (/$bunfs/root/claude:178:8436)\n    at ZFD (/$bunfs/root/claude:179:1202)\n    at H9T (/$bunfs/root/claude:179:2080)","timestamp":"2026-02-12T02:14:56.149Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/tomdimino/.local/share/claude/versions/2.1.39 (expected in multi-process scenarios)\n    at wVR (/$bunfs/root/claude:3626:2098)\n    at DjA (/$bunfs/root/claude:3626:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-12T02:14:56.224Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.1: `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_011CY3NLEWujKLadYEGYjtRS\"}\n    at generate (/$bunfs/root/claude:319:8796)\n    at makeRequest (/$bunfs/root/claude:358:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-12T02:15:07.629Z"}]

View original on GitHub ↗

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