Files
ComfyUI_frontend/tools/devtools
AustinMroz fd1a8e9432 Fix legacy widget width in app mode (#11574)
When in app mode, widgets can be drawn with size different from the size
of the parent node. Mouse events on legacy canvas widgets require that
the client code query the current state of the node and widget to
determine if any elements are being interacted with. This PR sets the
`widget.width` property when a legacy canvas widget draw operation
occurs so that custom nodes can properly resolve subsequent mouse
events.

At current, no core nodes exist that utilize legacy widgets. As a result
the setup code to test this bug fix is slightly involved.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-11574-Fix-legacy-widget-width-in-app-mode-34b6d73d365081caaa34c6204f8361f6)
by [Unito](https://www.unito.io)
2026-04-29 09:31:57 -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.