review fix: distinguish checkpoint settlement

This commit is contained in:
pku-xht
2026-07-17 17:38:39 +08:00
parent 0b720942df
commit 915c727e14
6 changed files with 13 additions and 13 deletions

View File

@@ -221,8 +221,8 @@ export interface SessionEventMap {
'turn/start': { turn: number; trigger: TurnTrigger }
/**
* Closes turn `turn` with the {@link TurnEndReason} that ended it. The loop
* fires the awaited `session/flush` checkpoint at every turn end, so the turn
* boundary is also the durable-commit boundary.
* fires the awaited `session/flush` checkpoint at every turn end; the next turn waits for settlement.
* Success commits the closed turn; rejection is reported live and does not prevent later work.
*/
'turn/end': { turn: number; reason: TurnEndReason }
/** Opens step `step` of turn `turn` — one model call plus the tool executions it requested. */