Redacted thinking error in claud code

Resolved 💬 4 comments Opened Feb 12, 2026 by Harshil-Jani Closed Mar 13, 2026

Bug Description
How to resolve?

messages.1.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.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.39
  • Feedback ID: 9ef4862c-c997-4907-8804-2a33d3956314

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.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_011CY4oMNruPvBzKG4eGFfxX\"}\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-12T20:23:49.383Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.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_011CY4oYQxU3KdWcjohEhxqa\"}\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-12T20:26:19.298Z"},{"error":"Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.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_011CY4oYQxU3KdWcjohEhxqa\"}\n    at yhT (/$bunfs/root/claude:3303:795)\n    at async <anonymous> (/$bunfs/root/claude:3602:56)\n    at async n08 (/$bunfs/root/claude:1989:3696)\n    at async YXB (/$bunfs/root/claude:1989:1064)\n    at async vk8 (/$bunfs/root/claude:7276:2509)\n    at async HyR (/$bunfs/root/claude:7274:3516)\n    at async Zx8 (/$bunfs/root/claude:7415:23321)\n    at async OkR (/$bunfs/root/claude:7415:22473)\n    at async <anonymous> (/$bunfs/root/claude:7425:7842)\n    at async <anonymous> (/$bunfs/root/claude:7408:5408)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-12T20:26:19.300Z"},{"error":"Error: Error during compaction: Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.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_011CY4oYQxU3KdWcjohEhxqa\"}\n    at <anonymous> (/$bunfs/root/claude:3603:189)\n    at async n08 (/$bunfs/root/claude:1989:3696)\n    at async YXB (/$bunfs/root/claude:1989:1064)\n    at async vk8 (/$bunfs/root/claude:7276:2509)\n    at async HyR (/$bunfs/root/claude:7274:3516)\n    at async Zx8 (/$bunfs/root/claude:7415:23321)\n    at async OkR (/$bunfs/root/claude:7415:22473)\n    at async <anonymous> (/$bunfs/root/claude:7425:7842)\n    at async <anonymous> (/$bunfs/root/claude:7408:5408)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-12T20:26:19.300Z"}]

View original on GitHub ↗

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