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 Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated flow input payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
params | RecoverInterruptedRunParams<TIn, THandle> | Crash recovery parameters and boot record. |
Returns
Promise<{ readyToResume: boolean; reattachedChildHandles: ReadonlyMap<string, THandle>; }>
Reattached child handles and resume readiness.