miteshashar/claude-code-thinking-blocks-fix

Fix Claude Code 'thinking blocks cannot be modified' API errors caused by streaming interleaving corruption in session JSONL files

26
/ 100
Experimental

This tool helps Claude Code users recover from a specific, frustrating API error: "thinking blocks cannot be modified." When your Claude Code session unexpectedly gets stuck and every message fails, this tool diagnoses and repairs the underlying corrupted conversation history. It takes your unrecoverable session file as input and outputs a repaired version, allowing you to resume your coding work without starting over.

Use this if your Claude Code session is bricked by the "thinking blocks cannot be modified" error, and you need to salvage your valuable conversation history to continue your work.

Not ideal if your Claude Code session is experiencing errors unrelated to thinking block corruption or if the session file is severely damaged with invalid JSON lines.

AI-coding-assistant Claude-Code-troubleshooting developer-workflow session-recovery coding-productivity
No License No Package No Dependents
Maintenance 10 / 25
Adoption 5 / 25
Maturity 3 / 25
Community 8 / 25

How are scores calculated?

Stars

9

Forks

1

Language

Python

License

Last pushed

Feb 14, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/miteshashar/claude-code-thinking-blocks-fix"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.