Skip to content

Commit 5d9c71c

Browse files
refactor(server): clarify single-turn checkpoint baseline
1 parent 1890d02 commit 5d9c71c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/server/src/checkpointing/CheckpointDiffQuery.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ export const make = Effect.gen(function* () {
161161
});
162162
}
163163

164-
// A single turn starts at the checkpoint its capture diffed against: the
165-
// previous ordinal in the same scope. That checkpoint may belong to a
166-
// stopped run or be the baseline left when the previous run captured none.
164+
// Capture compares against the preceding scope ordinal, even when that
165+
// checkpoint belongs to a stopped run or has no run.
167166
const parentCheckpoint =
168167
input.fromTurnCount === input.toTurnCount - 1
169168
? projection.checkpoints.find(

0 commit comments

Comments
 (0)