v1.8.35
Fix: resume-corruption data-loss (#147)
A guard terminate-first reload could leave claude --resume unable to parse the transcript — "Failed to resume session". Root cause: terminating Claude mid-write leaves a torn trailing JSON line, and the deferred writer (per #106) skips the write and left that line unrepaired.
This release:
- Automatic repair on the guard reload path — a torn trailing line is dropped (a
.torn.bakis kept) so the resume succeeds. cozempic doctor --fix— newunresumable-sessioncheck repairs any session already affected, in one command.
Conservative + safe: only ever drops a provably-unparseable trailing line, never a valid one. Fleet-reviewed; full suite (1757 tests) green.
Recover an already-broken session: cozempic doctor --fix (after upgrading).