[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant message after long session
Resolved 💬 3 comments Opened Feb 13, 2026 by yosif111 Closed Feb 17, 2026
Bug Description
getting {"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_011CY62WRvicnJpoxLsgqZvp"} after a long session
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.41
- Feedback ID: 55330979-abff-4cc4-851e-cb7dd62acc50
Errors
[{"error":"Error: ENOENT: no such file or directory, open '/Users/yousefalkhalifah/Projects/Voxa/API/.claude/settings.json'\n at openSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:947)\n at O2 (/$bunfs/root/claude:11:50064)\n at readSync (/$bunfs/root/claude:12:875)\n at J2 (/$bunfs/root/claude:6149:113)\n at h5 (/$bunfs/root/claude:6151:226)\n at ml9 (/$bunfs/root/claude:187:2479)\n at <anonymous> (/$bunfs/root/claude:7252:4579)","timestamp":"2026-02-13T11:49:30.595Z"},{"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_011CY61xMr1eTd2jHm6hthpC\"}\n at generate (/$bunfs/root/claude:327:8796)\n at makeRequest (/$bunfs/root/claude:366:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T11:49:41.697Z"},{"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_011CY624v8t4L1edSXonYMMH\"}\n at generate (/$bunfs/root/claude:327:8796)\n at makeRequest (/$bunfs/root/claude:366:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T11:51:10.495Z"},{"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_011CY62WRvicnJpoxLsgqZvp\"}\n at generate (/$bunfs/root/claude:327:8796)\n at makeRequest (/$bunfs/root/claude:366:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T11:56:56.528Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗