Guard the turn-end fallback snapshot against ended sessions

main

Commit

Soph2d ago

A Stop arriving after the session ended, with a change detection did not see, wrote a checkpoint to the ended session (or could recreate removed state). The no-detected-change turn-end path now saves with ExistingSessionOnly too; SaveStep reports ErrNothingToSnapshot for an ended session and the turn ends through the checkpoint-less tail.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M43VXCY9PG93P8VXEVB39EMM

Checkpoints

Fix Claude Code Subagent Attribution Issues

Claude CodeOpus 5.5
View session
Checkpoint 1