waygraph / RunBranchRegressionOptions
Interface: RunBranchRegressionOptions
Defined in: src/engine/flow/branch-regression.ts:75
Options for runGraph's trailing options arg and for Flow.run's options overload.
Extends
Properties
cloneSession?
optionalcloneSession?:boolean
Defined in: src/engine/flow/branch-regression.ts:83
Default true: clone the real session (storageState + current URL) at every branch point, so every route runs from a genuine copy of the live state, not a fresh page. false runs the whole tree exactly once, through whichever single path the live state actually takes (same as calling flow.run() directly) - can't explore siblings, since the one real page has moved on once a branch's Blocks run.
closeOnFinish?
optionalcloseOnFinish?:boolean
Defined in: src/engine/run/run.ts:179
Flow.run defaults this to true only when it opened the page itself (no page given) - matching every call from before this option existed. If you pass your own page, it defaults to false instead: a page you opened is yours to close, not this run's to close out from under you. Either way an explicit value here always wins. runGraph itself has no such page-aware default (its caller already decided page and closeOnFinish together) - it just does what you ask.
Inherited from
from?
optionalfrom?:Checkpoint<string>
Defined in: src/engine/run/run.ts:185
The Checkpoint the run starts on: its first Block's input. Default Start. A runner that plays a flow one step at a time passes where the last step landed, so a step that stays where it is (.set, .expect, a skipped when) stays there, not at the start.
Inherited from
keepPanes?
optionalkeepPanes?:boolean
Defined in: src/engine/run/run.ts:190
Leave the flow's panes open when it ends: a runner that plays a flow one step at a time closes them itself, when the flow is done.
Inherited from
page?
optionalpage?:Page
Defined in: src/engine/run/run.ts:169
Drive this already-open page instead of opening a new one via context.newPage(). Lets a run continue on a tab the caller already has open (e.g. one that's already logged in), instead of every run being forced to start its own fresh tab and lose access to whatever was already there.