Commit 0927687
committed
Fix turn-diff-completed regressing latestTurn to older turn
Guard the latestTurn update in the turn-diff-completed handler so it
only overwrites latestTurn when the event's turnId matches the current
latestTurn or latestTurn is null. This prevents a delayed checkpoint
event for an older turn from regressing latestTurn away from a newer
running turn, which mirrors the guard already present in the
turn-interrupt-requested handler.1 parent bef63d4 commit 0927687
1 file changed
+13
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
879 | 891 | | |
880 | 892 | | |
881 | 893 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
| 894 | + | |
897 | 895 | | |
898 | 896 | | |
899 | 897 | | |
| |||
0 commit comments