Skip to content

v0.2.7-alpha - Cross-Tab State Isolation, Stateless Python

Latest

Choose a tag to compare

@djdarcy djdarcy released this 02 Jul 17:07
v0.2.7-alpha
03dfee5

Dazzle Command v0.2.7-alpha

Workflow orchestration node for ComfyUI — coordinate seed control and execution gates from a single play/pause toggle. Part of the DazzleNodes collection.

What's New in v0.2.7-alpha

Cross-Tab State Contamination Fix

Opening a second workflow tab (even the same file, even without running it) used to contaminate the first tab's play/pause state and invalidate its cache. Root cause: node IDs collide across tabs, so every store keyed by bare node ID was cross-tab shared.

The fix removes server-side state entirely:

  • State lives on each node object plus node.properties (persisted per workflow-tab draft — survives tab switches and page reloads)
  • At queue time, JS injects the live state into the node's prompt inputs as a hidden dazzle_state input — per-queue and per-tab by construction, and part of ComfyUI's cache key (toggling play/pause is exactly the change that should re-execute)
  • The nodeStates map, workflow-UUID guard, sys._dazzle_command_states registry, IS_CHANGED, and the /dazzle-command/set-state API endpoint are all gone (net −79 lines)

Other Fixes

  • Reconfigure protection: mid-session graph reconfigures replaying stale snapshots can no longer revert your Play/Pause clicks (per-node-object guard replacing the v0.2.5 workflow-UUID approach)
  • Honest seed display: the seed bar no longer adopts seeds from SmartResCalc nodes that aren't noodle-connected to this DazzleCommand — an unconnected node now shows -- instead of masquerading as working orchestration
  • Seed bar values persist per tab via node.properties
  • Headless/API prompts (no JS) default to paused, as before

Installation

Install via ComfyUI Manager or clone:

cd ComfyUI/custom_nodes
git clone https://github.com/DazzleNodes/ComfyUI-DazzleCommand.git

Version History (0.2.x)

Version Key Change
v0.2.7-alpha Current — cross-tab isolation, stateless Python, per-tab persistence
v0.2.6-alpha Reset All button, OUTPUT_NODE restored
v0.2.5-alpha Mid-execution reconfigure state guard (workflow UUID)
v0.2.4-alpha Docs for per-node state architecture
v0.2.3-alpha Per-node state registry (superseded by v0.2.7's per-tab design)

Companion Versions

Platform Support

Platform Status
Windows 11 + CUDA Tested
Linux / macOS Expected to work

Requirements

  • Python 3.10+, ComfyUI (latest recommended), no additional dependencies