碳塑复材科技(郑州)有限公司
Section navigation
Back to FAQ
FAQ article

常见问题24 `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original

`thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain ...

Published 2026/06/04354 views
常见问题

status_code=400, {"type":"error","error":{"type":"invalid_request_error","message":"***.***.content.0: 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_011CZP1tjn3Kwg19GC8zVSzb"}(traceid: 33323160dcf49f1845e602493a5b42bd) (request id: 202603250233254049760029kWmCGTB) (request id: 20260325023325216246005hoJXYaTS)

claude code压缩对话的bug

解决办法:

先将/model设置为 Sonnet,然后/compact进行压缩,再将模型设回 opus

https://github.com/anthropics/claude-code/issues/12311