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

Resolved 💬 3 comments Opened Dec 15, 2025 by sh4d0w Closed Dec 19, 2025

Bug Description
/compact
⎿ Error: Error during compaction: Error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.19.content.24: 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_011CW8Gjykx2J2k8wtM3KVX3"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.64
  • Feedback ID: 5c0dfe45-72f8-4c16-9751-784cb5ef5d6d

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.64 (expected in multi-process scenarios)\n    at BMB (/$bunfs/root/claude:2589:1618)\n    at lTA (/$bunfs/root/claude:2589:1296)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T09:50:50.828Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.65 (expected in multi-process scenarios)\n    at BMB (/$bunfs/root/claude:2589:1618)\n    at cTA (/$bunfs/root/claude:2587:35604)\n    at async iTA (/$bunfs/root/claude:2589:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T09:50:50.830Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.62 (expected in multi-process scenarios)\n    at BMB (/$bunfs/root/claude:2589:1618)\n    at cTA (/$bunfs/root/claude:2587:35604)\n    at async iTA (/$bunfs/root/claude:2589:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T09:50:50.845Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/katana/.local/share/claude/versions/2.0.61 (expected in multi-process scenarios)\n    at BMB (/$bunfs/root/claude:2589:1618)\n    at cTA (/$bunfs/root/claude:2587:35604)\n    at async iTA (/$bunfs/root/claude:2589:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T09:50:50.847Z"},{"error":"Error: Tool mcp__chrome-devtools__list_pages not found\n    at cuB (/$bunfs/root/claude:2637:6013)\n    at G0 (/$bunfs/root/claude:561:21824)\n    at i_ (/$bunfs/root/claude:561:38072)\n    at Yz (/$bunfs/root/claude:561:49019)\n    at eY (/$bunfs/root/claude:561:85355)\n    at kl (/$bunfs/root/claude:561:84361)\n    at Ml (/$bunfs/root/claude:561:84187)\n    at bx (/$bunfs/root/claude:561:80678)\n    at rR (/$bunfs/root/claude:561:8796)\n    at CFR (/$bunfs/root/claude:554:5634)","timestamp":"2025-12-15T09:50:51.940Z"},{"error":"Error: Tool mcp__chrome-devtools__navigate_page not found\n    at cuB (/$bunfs/root/claude:2637:6013)\n    at G0 (/$bunfs/root/claude:561:21824)\n    at i_ (/$bunfs/root/claude:561:38072)\n    at Yz (/$bunfs/root/claude:561:49019)\n    at eY (/$bunfs/root/claude:561:85355)\n    at kl (/$bunfs/root/claude:561:84361)\n    at Ml (/$bunfs/root/claude:561:84187)\n    at bx (/$bunfs/root/claude:561:80678)\n    at rR (/$bunfs/root/claude:561:8796)\n    at CFR (/$bunfs/root/claude:554:5634)","timestamp":"2025-12-15T09:50:51.940Z"},{"error":"Error: Tool mcp__chrome-devtools__list_console_messages not found\n    at cuB (/$bunfs/root/claude:2637:6013)\n    at G0 (/$bunfs/root/claude:561:21824)\n    at i_ (/$bunfs/root/claude:561:38072)\n    at Yz (/$bunfs/root/claude:561:49019)\n    at eY (/$bunfs/root/claude:561:85355)\n    at kl (/$bunfs/root/claude:561:84361)\n    at Ml (/$bunfs/root/claude:561:84187)\n    at bx (/$bunfs/root/claude:561:80678)\n    at rR (/$bunfs/root/claude:561:8796)\n    at CFR (/$bunfs/root/claude:554:5634)","timestamp":"2025-12-15T09:50:51.940Z"},{"error":"Error: Tool mcp__chrome-devtools__list_network_requests not found\n    at cuB (/$bunfs/root/claude:2637:6013)\n    at G0 (/$bunfs/root/claude:561:21824)\n    at i_ (/$bunfs/root/claude:561:38072)\n    at Yz (/$bunfs/root/claude:561:49019)\n    at eY (/$bunfs/root/claude:561:85355)\n    at kl (/$bunfs/root/claude:561:84361)\n    at Ml (/$bunfs/root/claude:561:84187)\n    at bx (/$bunfs/root/claude:561:80678)\n    at rR (/$bunfs/root/claude:561:8796)\n    at CFR (/$bunfs/root/claude:554:5634)","timestamp":"2025-12-15T09:50:51.940Z"},{"error":"Error: Tool mcp__chrome-devtools__get_network_request not found\n    at cuB (/$bunfs/root/claude:2637:6013)\n    at G0 (/$bunfs/root/claude:561:21824)\n    at i_ (/$bunfs/root/claude:561:38072)\n    at Yz (/$bunfs/root/claude:561:49019)\n    at eY (/$bunfs/root/claude:561:85355)\n    at kl (/$bunfs/root/claude:561:84361)\n    at Ml (/$bunfs/root/claude:561:84187)\n    at bx (/$bunfs/root/claude:561:80678)\n    at rR (/$bunfs/root/claude:561:8796)\n    at CFR (/

Note: Error logs were truncated.

View original on GitHub ↗

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