Files
ComfyUI_frontend/tools/devtools
Alexander Brown 14d55eb305 ECS: Moving widgets out of the Node data (#13322)
## Summary

Move Vue widget render-only metadata out of the graph node manager and
into dedicated widget render state alongside widget values.

## Changes

- **What**: Adds `WidgetRenderState` in `widgetValueStore`, removes
`SafeWidgetData` from `useGraphNodeManager`, and has Vue widget
rendering compose from raw LiteGraph widgets plus store-backed
value/render state.
- **What**: Updates promoted widget, app mode, parameter panel, preview,
tooltip, and widget tests for the new render-state boundary.
- **What**: Hardens related browser tests against branded id typing and
brittle default workflow node ids.

## Review Focus

Please look closely at the ownership boundary between raw LiteGraph
widgets, `WidgetState`, and `WidgetRenderState`, especially promoted
widget metadata and linked-widget rendering.

## Validation

- `pnpm typecheck`
- `pnpm typecheck:browser`
- focused widget/node unit tests
- focused Playwright check for `Should display added widgets`

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: AustinMroz <austin@comfy.org>
2026-07-09 10:42:30 -07:00
..
2026-01-27 17:59:19 -08:00

ComfyUI DevTools

This directory contains development tools and test utilities for ComfyUI, previously maintained as a separate repository at https://github.com/Comfy-Org/ComfyUI_devtools.

Contents

  • __init__.py - Server endpoints for development tools (/api/devtools/*)
  • dev_nodes.py - Development and testing nodes for ComfyUI
  • fake_model.safetensors - Test fixture for model loading tests

Purpose

These tools provide:

  • Test endpoints for browser automation
  • Development nodes for testing various UI features
  • Mock data for consistent testing environments

Usage

During CI/CD, these files are automatically copied to the ComfyUI custom_nodes directory. For local development, copy these files to your ComfyUI installation:

cp -r tools/devtools/* /path/to/your/ComfyUI/custom_nodes/ComfyUI_devtools/

Migration

This directory was created as part of issue #4683 to merge the ComfyUI_devtools repository into the main frontend repository, eliminating the need for separate versioning and simplifying the development workflow.