Skip to content

Function: recoverInterruptedRunOnBoot() ​

ts
function recoverInterruptedRunOnBoot<TIn, THandle>(params): Promise<{
  readyToResume: boolean;
  reattachedChildHandles: ReadonlyMap<string, THandle>;
}>;

Defined in: runtime/flow/internal/flow-replace-and-rewind.ts:391

Recovers a non-terminal run on boot by reattaching root and child isolation scopes and restoring in-flight checkpoints (SPEC.md §3.10).

Restores inFlightPreToolCheckpoint when a crash occurred mid-subprocess, reattaches unfinished child fork/speculate scopes via reattachChild, and syncs prerequisites for 'SUSPENDED' runs.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated flow input payload type.
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
paramsRecoverInterruptedRunParams<TIn, THandle>Crash recovery parameters and boot record.

Returns ​

Promise<{ readyToResume: boolean; reattachedChildHandles: ReadonlyMap<string, THandle>; }>

Reattached child handles and resume readiness.

Released under the MIT License.