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

Resolved 💬 3 comments Opened Jan 25, 2026 by bma-d Closed Jan 28, 2026

Bug Description
❯ Commit all
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message"
:"messages.25.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_011CXUgsMQjW4JQP7opUzWjz"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.15
  • Feedback ID: 74c94e59-df93-4b66-82eb-4556dae8ec4a

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at AW (/$bunfs/root/claude:11:34882)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at hGR (/$bunfs/root/claude:1482:380)\n    at hGR (/$bunfs/root/claude:1482:1350)\n    at <anonymous> (/$bunfs/root/claude:1482:4440)\n    at <anonymous> (/$bunfs/root/claude:1482:5171)\n    at A (/$bunfs/root/claude:11:7245)\n    at iq8 (/$bunfs/root/claude:4125:4342)\n    at async <anonymous> (/$bunfs/root/claude:5413:2332)","timestamp":"2026-01-25T19:58:49.820Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/joon/.local/share/claude/versions/2.1.15 (expected in multi-process scenarios)\n    at eZR (/$bunfs/root/claude:3243:2091)\n    at cFA (/$bunfs/root/claude:3243:1202)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-25T19:58:49.848Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at AW (/$bunfs/root/claude:11:34882)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at hGR (/$bunfs/root/claude:1482:380)\n    at hGR (/$bunfs/root/claude:1482:1350)\n    at <anonymous> (/$bunfs/root/claude:1482:4440)\n    at <anonymous> (/$bunfs/root/claude:1482:5171)\n    at A (/$bunfs/root/claude:11:7245)\n    at iq8 (/$bunfs/root/claude:4125:4342)","timestamp":"2026-01-25T19:58:51.494Z"}]

View original on GitHub ↗

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