checkpoint: dedup session-metadata mutation and test slice assertion

main

Commit

Soph2mo ago

Extract updateSessionMetadata, the read-modify-write-blob pattern shared by replaceSkillEvents and setCompactTranscriptStart, so both express only their field mutation. Reading from the entries blob (not an in-memory copy) is kept, so sequential finalize-path mutations still see each other's changes.

Generalize the test helper assertCodexSliceIsGamma into assertCompactSliceScoped (parameterized absent/present strings), used by both the Claude and Codex slice-scoping assertions.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 0aa2d57378e2

Checkpoints

Compact Transcript Storage and Boundary Markers

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1