checkpoint: route committed writes through refs.Primary

main

Commit

pfleidi3mo ago

Five write sites in committed.go and the getSessionsBranchRef helper in parse_tree.go now use s.refs.Primary instead of the v1 branch literal. At today's resolver Primary is the v1 branch, so behavior is unchanged. A new test asserts the property directly: writes against a synthetic Primary advance that ref, not v1.

Entire-Checkpoint: a4f1609e268d

Checkpoints

Streamline Checkpoint Version Mirroring with refs.Primary

Claude Code
View session
Checkpoint 1