[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant message
Resolved 💬 3 comments Opened Jan 26, 2026 by satriyop Closed Jan 30, 2026
Bug Description
got API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.114: 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_011CXWEDyYXr72i1YNzaB8Lq"} after implementation task is done, when planning there was compation, claude code do the job, finished. i prompt new, this error occured.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.19
- Feedback ID: 5b899518-9088-44b3-816e-c744e38194b7
Errors
[{"error":"Error: 1P event logging: 12 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:639:2077)\n at async doExport (/$bunfs/root/claude:639:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:34:34.853Z"},{"error":"Error: {\"message\":\"Failed to export 12 events\",\"originalLine\":\"639\",\"originalColumn\":\"1336\",\"line\":\"639\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 12 events\\n at doExport (/$bunfs/root/claude:639:1336)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1791:25028)\n at <anonymous> (/$bunfs/root/claude:633:34987)\n at iMD (/$bunfs/root/claude:633:35531)\n at <anonymous> (/$bunfs/root/claude:634:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:34:34.854Z"},{"error":"Error: 1P event logging: 12 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:639:2077)\n at async doExport (/$bunfs/root/claude:639:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:34:44.762Z"},{"error":"Error: {\"message\":\"Failed to export 12 events\",\"originalLine\":\"639\",\"originalColumn\":\"1336\",\"line\":\"639\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 12 events\\n at doExport (/$bunfs/root/claude:639:1336)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1791:25028)\n at <anonymous> (/$bunfs/root/claude:633:34987)\n at iMD (/$bunfs/root/claude:633:35531)\n at <anonymous> (/$bunfs/root/claude:634:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:34:44.762Z"},{"error":"Error: 1P event logging: 6 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:639:2077)\n at async doExport (/$bunfs/root/claude:639:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:36:20.939Z"},{"error":"Error: {\"message\":\"Failed to export 6 events\",\"originalLine\":\"639\",\"originalColumn\":\"1336\",\"line\":\"639\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 6 events\\n at doExport (/$bunfs/root/claude:639:1336)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1791:25028)\n at <anonymous> (/$bunfs/root/claude:633:34987)\n at iMD (/$bunfs/root/claude:633:35531)\n at <anonymous> (/$bunfs/root/claude:634:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:36:20.939Z"},{"error":"Error: 1P event logging: 12 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:639:2077)\n at async doExport (/$bunfs/root/claude:639:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:36:25.945Z"},{"error":"Error: {\"message\":\"Failed to export 12 events\",\"originalLine\":\"639\",\"originalColumn\":\"1336\",\"line\":\"639\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 12 events\\n at doExport (/$bunfs/root/claude:639:1336)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1791:25028)\n at <anonymous> (/$bunfs/root/claude:633:34987)\n at iMD (/$bunfs/root/claude:633:35531)\n at <anonymous> (/$bunfs/root/claude:634:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-26T13:36:25.945Z"},{"error":"Error: 1P event logging: 6 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:639:2077)\n at async doExport (/$bunfs/root/claude:639:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"20…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗