@@ -58,13 +58,11 @@ type RunnerReadinessPreflightDecision =
5858 | 'conservative_command'
5959 | 'no_successful_response'
6060 | 'successful_response_stale' ;
61- freshnessMs : number ;
6261 lastSuccessfulRunnerResponseAgeMs ?: number ;
6362 }
6463 | {
6564 action : 'skip' ;
6665 reason : 'recent_successful_response' ;
67- freshnessMs : number ;
6866 lastSuccessfulRunnerResponseAgeMs : number ;
6967 } ;
7068
@@ -500,7 +498,6 @@ export async function executeRunnerCommandWithSession(
500498 {
501499 command : runnerCommand . command ,
502500 commandId : runnerCommand . commandId ,
503- freshnessMs : preflightDecision . freshnessMs ,
504501 lastSuccessfulRunnerResponseAgeMs : preflightDecision . lastSuccessfulRunnerResponseAgeMs ,
505502 reason : preflightDecision . reason ,
506503 sessionReady : session . ready ,
@@ -518,7 +515,6 @@ export async function executeRunnerCommandWithSession(
518515 data : {
519516 command : command . command ,
520517 commandId : runnerCommand . commandId ,
521- freshnessMs : preflightDecision . freshnessMs ,
522518 lastSuccessfulRunnerResponseAgeMs : preflightDecision . lastSuccessfulRunnerResponseAgeMs ,
523519 reason : preflightDecision . reason ,
524520 sessionReady : session . ready ,
@@ -597,37 +593,32 @@ function resolveRunnerReadinessPreflightDecision(
597593 return {
598594 action : 'run' ,
599595 reason : 'startup' ,
600- freshnessMs : RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ,
601596 } ;
602597 }
603598 if ( command . command !== 'tap' && command . command !== 'tapSeries' ) {
604599 return {
605600 action : 'run' ,
606601 reason : 'conservative_command' ,
607- freshnessMs : RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ,
608602 } ;
609603 }
610604 const lastSuccessAt = session . lastSuccessfulRunnerResponseAtMs ;
611605 if ( lastSuccessAt === undefined ) {
612606 return {
613607 action : 'run' ,
614608 reason : 'no_successful_response' ,
615- freshnessMs : RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ,
616609 } ;
617610 }
618611 const lastSuccessfulRunnerResponseAgeMs = Date . now ( ) - lastSuccessAt ;
619612 if ( lastSuccessfulRunnerResponseAgeMs > RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ) {
620613 return {
621614 action : 'run' ,
622615 reason : 'successful_response_stale' ,
623- freshnessMs : RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ,
624616 lastSuccessfulRunnerResponseAgeMs,
625617 } ;
626618 }
627619 return {
628620 action : 'skip' ,
629621 reason : 'recent_successful_response' ,
630- freshnessMs : RUNNER_TAP_PREFLIGHT_SKIP_FRESHNESS_MS ,
631622 lastSuccessfulRunnerResponseAgeMs,
632623 } ;
633624}
@@ -672,7 +663,6 @@ function markRunnerSkippedReadinessPreflightError(
672663 {
673664 ...( appErr . details ?? { } ) ,
674665 runnerReadinessPreflightSkipped : true ,
675- runnerReadinessPreflightSkipFreshnessMs : decision . freshnessMs ,
676666 runnerReadinessPreflightSkipReason : decision . reason ,
677667 runnerReadinessPreflightSkippedAgeMs : decision . lastSuccessfulRunnerResponseAgeMs ,
678668 } ,
0 commit comments