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

Resolved 💬 4 comments Opened Dec 18, 2025 by dexhorthy Closed Feb 14, 2026

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.43: 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_011CWF1A8xg3AWMkZ7GoJ36f"}

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.0.72
  • Feedback ID: 5cc34b3a-5632-40bd-92c8-b3dce5d58b99

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/dex/.local/share/claude/versions/2.0.72 (expected in multi-process scenarios)\n    at TZR (/$bunfs/root/claude:2428:2165)\n    at yYA (/$bunfs/root/claude:2428:1885)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T23:15:50.660Z"},{"error":"Error: Tool StructuredOutput not found\n    at gbB (/$bunfs/root/claude:2568:6713)\n    at uq (/$bunfs/root/claude:173:20697)\n    at cq (/$bunfs/root/claude:173:39069)\n    at WTT (/$bunfs/root/claude:173:49684)\n    at Y6 (/$bunfs/root/claude:173:85872)\n    at Fv (/$bunfs/root/claude:173:84850)\n    at tf (/$bunfs/root/claude:173:84675)\n    at Hk (/$bunfs/root/claude:173:81115)\n    at FA (/$bunfs/root/claude:173:6362)\n    at oT (/$bunfs/root/claude:173:4876)","timestamp":"2025-12-18T23:15:58.265Z"},{"error":"Error: Tool StructuredOutput not found\n    at gbB (/$bunfs/root/claude:2568:6713)\n    at uq (/$bunfs/root/claude:173:20697)\n    at cq (/$bunfs/root/claude:173:39069)\n    at WTT (/$bunfs/root/claude:173:49684)\n    at Y6 (/$bunfs/root/claude:173:85872)\n    at Fv (/$bunfs/root/claude:173:84850)\n    at tf (/$bunfs/root/claude:173:84675)\n    at Hk (/$bunfs/root/claude:173:81115)\n    at zA (/$bunfs/root/claude:173:6242)\n    at SaR (/$bunfs/root/claude:166:4072)","timestamp":"2025-12-18T23:15:58.707Z"},{"error":"SyntaxError: JSON Parse error: Property name must be a string literal\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:78:751)\n    at A (/$bunfs/root/claude:11:6978)\n    at wW1 (/$bunfs/root/claude:2590:27963)\n    at async CkB (/$bunfs/root/claude:2590:30749)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-18T23:15:58.746Z"},{"error":"Error: Tool StructuredOutput not found\n    at gbB (/$bunfs/root/claude:2568:6713)\n    at uq (/$bunfs/root/claude:173:20697)\n    at cq (/$bunfs/root/claude:173:39069)\n    at WTT (/$bunfs/root/claude:173:49684)\n    at Y6 (/$bunfs/root/claude:173:85872)\n    at Fv (/$bunfs/root/claude:173:84850)\n    at tf (/$bunfs/root/claude:173:84675)\n    at Hk (/$bunfs/root/claude:173:81115)\n    at FA (/$bunfs/root/claude:173:6362)\n    at oT (/$bunfs/root/claude:173:4876)","timestamp":"2025-12-18T23:16:03.971Z"}]

View original on GitHub ↗

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