messages.11.content.11: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified.

Resolved 💬 3 comments Opened May 28, 2026 by puthre Closed Jul 1, 2026

Bug Description
400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.11: 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_011CVTZiv4zz4a4AmyidNwVx"}

Environment Info

  • Platform: linux
  • Terminal: pycharm
  • Version: 2.1.154
  • Feedback ID: 67408137-a802-4c22-944b-2da29508ec51

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.51.content.8: `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_011CbVdckURSyYxSckHAyKUK\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:63571)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T20:54:23.983Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.51.content.8: `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_011CbViHnQZQRidUs8tE2wfq\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:63571)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T21:55:40.672Z"}]

View original on GitHub ↗

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