Skip to content

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? ​

optional cloneSession?: 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? ​

optional closeOnFinish?: 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 ​

RunGraphOptions.closeOnFinish


from? ​

optional from?: 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 ​

RunGraphOptions.from


keepPanes? ​

optional keepPanes?: 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 ​

RunGraphOptions.keepPanes


page? ​

optional page?: 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.

Inherited from ​

RunGraphOptions.page

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed