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

Resolved 💬 2 comments Opened Dec 3, 2025 by charles-lupiya-zm Closed Dec 3, 2025

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

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.57
  • Feedback ID: eaf89a4b-eeda-4394-bf16-c0821feb5340

Errors

[{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.270Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.270Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.272Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.275Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.503Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.503Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at tq (/$bunfs/root/claude:720:38160)\n    at EU (/$bunfs/root/claude:720:35235)\n    at V$ (/$bunfs/root/claude:718:4818)\n    at p_ (/$bunfs/root/claude:720:32481)\n    at xCR (/$bunfs/root/claude:718:25183)","timestamp":"2025-12-03T06:33:37.503Z"},{"error":"Error: Tool mcp__postgres__execute_sql not found\n    at cS0 (/$bunfs/root/claude:2731:6034)\n    at v7 (/$bunfs/root/claude:718:19666)\n    at y5 (/$bunfs/root/claude:720:42845)\n    at FU (/$bunfs/root/claude:720:38378)\n    at _D (/$bunfs/root/claude:720:38306)\n    at

Note: Error logs were truncated.

View original on GitHub ↗

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