Skip to content

currentFlowState

function currentFlowState(run): FlowState;

Read the state of the flow a run is currently in. Flow state lives in an isolated frame, so runState.state no longer holds it — this is how a caller inspects an in-flight flow. Values only reach the root state when the flow declares state.output. Falls back to root state when no flow is active.

Parameter Type

run

RunState

FlowState