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

Resolved 💬 3 comments Opened Mar 5, 2026 by ProfVex Closed Mar 9, 2026

Bug Description

❯ Something else — like using the event's own CVD fields as the primary source
⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.1: 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_011CYg6HnZRuFTMd9khikXJN"}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.42
  • Feedback ID: 4b448a19-3ac8-4420-8e13-308c310a7d0a

Errors

[{"error":"Error: 1P event logging: 59 events failed to export (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\n    at queueFailedEvents (/$bunfs/root/claude:2110:2350)\n    at async doExport (/$bunfs/root/claude:2110:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:29.377Z"},{"error":"Error: {\"message\":\"Failed to export 59 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"2110\",\"originalColumn\":\"1409\",\"line\":\"2110\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 59 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:2110:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2153:25028)\n    at <anonymous> (/$bunfs/root/claude:2105:20180)\n    at cd7 (/$bunfs/root/claude:2105:20724)\n    at <anonymous> (/$bunfs/root/claude:2106:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:29.377Z"},{"error":"Error\n    at _M (/$bunfs/root/claude:42:1144)\n    at <anonymous> (/$bunfs/root/claude:43:10097)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:36.872Z"},{"error":"MaxFileReadTokenExceededError: File content (38201 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Gz_ (/$bunfs/root/claude:1300:7592)\n    at async Jz_ (/$bunfs/root/claude:1304:2464)\n    at async call (/$bunfs/root/claude:1309:5930)\n    at async <anonymous> (/$bunfs/root/claude:5821:1670)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:38.125Z"},{"error":"Error: 1P event logging: 62 events failed to export (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\n    at queueFailedEvents (/$bunfs/root/claude:2110:2350)\n    at async doExport (/$bunfs/root/claude:2110:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:39.788Z"},{"error":"Error: {\"message\":\"Failed to export 62 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"2110\",\"originalColumn\":\"1409\",\"line\":\"2110\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 62 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:2110:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2153:25028)\n    at <anonymous> (/$bunfs/root/claude:2105:20180)\n    at cd7 (/$bunfs/root/claude:2105:20724)\n    at <anonymous> (/$bunfs/root/claude:2106:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:37:39.789Z"},{"error":"Error\n    at _M (/$bunfs/root/claude:42:1144)\n    at <anonymous> (/$bunfs/root/claude:43:10097)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T11:38:01.959Z"},{"error":"MaxFileReadTokenExceededError: File content (38201 tokens) exceeds maximum allowed tokens (25000).…

Note: Content was truncated.

View original on GitHub ↗

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