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

Resolved 💬 3 comments Opened Dec 3, 2025 by sh4d0w Closed Dec 7, 2025

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

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.57
  • Feedback ID: 428a978f-ed25-4b9f-884e-c2eeec9c424a

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n    at Iw0 (/$bunfs/root/claude:2682:1622)\n    at GCA (/$bunfs/root/claude:2682:1300)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-03T09:53:00.071Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n    at Iw0 (/$bunfs/root/claude:2682:1622)\n    at ACA (/$bunfs/root/claude:2680:35352)\n    at async z77 (/$bunfs/root/claude:2680:37460)\n    at async dx (/$bunfs/root/claude:2682:236)\n    at async <anonymous> (/$bunfs/root/claude:2682:12981)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-03T09:53:09.487Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.90: `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_011CVjYq7zTsnVx5PBHsB6SH\"}\n    at generate (/$bunfs/root/claude:415:9395)\n    at makeRequest (/$bunfs/root/claude:1269:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-03T09:53:11.533Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n    at Iw0 (/$bunfs/root/claude:2682:1622)\n    at ACA (/$bunfs/root/claude:2680:35352)\n    at async z77 (unknown)\n    at async dx (/$bunfs/root/claude:2682:236)\n    at async <anonymous> (/$bunfs/root/claude:2682:12981)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-03T09:53:37.060Z"}]

View original on GitHub ↗

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