@@ -176,6 +176,7 @@ describe("main session recovery state", () => {
176176 it ( "marks without charging and replaces an older lifecycle owner for the same run" , ( ) => {
177177 const entry = interruptedEntry ( {
178178 lifecycleRunId : "dead-run" ,
179+ lastRunId : "settled-run" ,
179180 restartRecoveryRuns : [
180181 { runId : "older-run" , lifecycleGeneration : "generation-old" } ,
181182 { runId : "shared-run" , lifecycleGeneration : "generation-1" } ,
@@ -208,6 +209,7 @@ describe("main session recovery state", () => {
208209 { runId : "shared-run" , lifecycleGeneration : "generation-2" } ,
209210 ] ) ;
210211 expect ( entry . lifecycleRunId ) . toBeUndefined ( ) ;
212+ expect ( entry . lastRunId ) . toBeUndefined ( ) ;
211213 } ) ;
212214
213215 it ( "rejects foreground work after the automatic recovery budget is exhausted" , ( ) => {
@@ -346,6 +348,7 @@ describe("main session recovery state", () => {
346348
347349 it ( "moves a reservation into the lifecycle fence during Gateway admission" , ( ) => {
348350 const entry = interruptedEntry ( {
351+ lastRunId : "settled-run" ,
349352 pendingFinalDelivery : { kind : "replayable" , text : " captured reply " , createdAt : 1 } ,
350353 restartRecoveryDeliveryRunId : "recovery-1" ,
351354 restartRecoveryDeliverySourceRunId : "source-1" ,
@@ -391,6 +394,7 @@ describe("main session recovery state", () => {
391394 } ) ;
392395 expect ( entry . mainRestartRecovery ?. reservation ) . toBeUndefined ( ) ;
393396 expect ( entry . lifecycleRunId ) . toBe ( "recovery-1" ) ;
397+ expect ( entry . lastRunId ) . toBeUndefined ( ) ;
394398
395399 expect (
396400 transitionMainSessionRecovery ( entry , {
@@ -407,6 +411,7 @@ describe("main session recovery state", () => {
407411 expect ( entry . restartRecoveryDeliveryRunId ) . toBeUndefined ( ) ;
408412 expect ( entry . restartRecoveryDeliverySourceRunId ) . toBe ( "source-1" ) ;
409413 expect ( entry . lifecycleRunId ) . toBeUndefined ( ) ;
414+ expect ( entry . lastRunId ) . toBeUndefined ( ) ;
410415 } ) ;
411416
412417 it ( "rejects a reservation created by an older lifecycle generation" , ( ) => {
0 commit comments