Skip to content

Feature/process wait#137

Merged
lightningpixel merged 1 commit into
devfrom
feature/ProcessWait
May 10, 2026
Merged

Feature/process wait#137
lightningpixel merged 1 commit into
devfrom
feature/ProcessWait

Conversation

@Lorchie
Copy link
Copy Markdown
Collaborator

@Lorchie Lorchie commented May 10, 2026

Summary

Adds two independent workflow features:

  • Wait node — a built-in node that pauses workflow execution at any point in the chain, with a Continue button to resume. Visible in
    the Generate panel when pinned via the eye toggle.
  • Conditional params (show_if) — extension param schemas can now declare a show_if clause to hide irrelevant params based on
    other params' values.

Wait node

  • New built-in node waitNode, neutral grey passthrough (any type).
  • When the runner reaches a Wait node, runState.status becomes paused and a Continue button shows in the node's subheader.
  • Clicking Continue resumes execution at the next node; Cancel also unblocks the pause.
  • Eye toggle (showInGenerate) makes the node available in the Generate panel as a WaitParamRow with the same Continue button.

Two related runner improvements were needed for this to work well with Add to Scene:

  • currentJob is updated as soon as a node feeds an outputNode, so the 3D viewer loads progressively instead of waiting for the full
    run (useful when Wait pauses for a long time).
  • When multiple Add to Scene nodes exist, the last one in topo order determines the final scene mesh.

Conditional params (show_if)

  • ParamSchema gains an optional show_if?: Record<string, value | value[]>.
  • ExtensionNode filters params by visibility before rendering: a param is shown only if every show_if entry matches the current value
    (or default) of the referenced param.
  • Supports equality (mode: "advanced") and inclusion (mode: ["fast", "medium"]).

@Lorchie Lorchie changed the base branch from main to dev May 10, 2026 15:37
@lightningpixel lightningpixel merged commit 74e5247 into dev May 10, 2026
2 checks passed
@lightningpixel lightningpixel deleted the feature/ProcessWait branch May 10, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants