Comfy-Org/ComfyUI_frontend

[Bug] Right-click context menu fails to appear on most custom nodes

开放

#5,186 创建于 2025年8月24日

 (4 条评论) (0 个反应) (1 位负责人)TypeScript (610 个派生)github user discovery
Potential Bugarea:context-menusarea:nodesarea:uihelp wanted

仓库指标

星标
 (1,838 个星标)
PR 合并指标
 (平均合并 4天 21小时) (30 天内合并 881 个 PR)

描述

Prerequisites

  • I am running the latest version of ComfyUI
  • I have searched existing issues to make sure this isn't a duplicate
  • I have tested with all custom nodes disabled (see how)

What happened?

Description

After a recent update, the right-click context menu has stopped working for the majority of custom nodes. When I right-click on most custom nodes, no menu appears.

Notably, the right-click functionality on the blank canvas (for adding nodes) works correctly as expected.

Error Message: Uncaught TypeError: Cannot read properties of null (reading 'content') at index.js:543

Analysis from the Call Stack: The error originates from LGraphCanvas.getNodeMenuOptions which then calls nodetype.getExtraMenuOptions. This suggests that a recent change in the core ComfyUI frontend has created a breaking change for how many custom nodes add their extra menu options. The issue appears to be a core incompatibility rather than a bug in a single custom node, as multiple nodes are present in the call stack leading to the error.

Environment Details

  • OS: Windows 11
  • ComfyUI Version: 0.3.52
  • comfyui_frontend_package: 1.26.6
  • Browser: Google Chrome 139.0.7258.139

Steps to Reproduce

Steps to Reproduce

  1. Load any workflow with various custom nodes.
  2. Right-click on a custom node.

Behavior

  • Expected behavior: A context menu with options (e.g., Bypass, Colors, etc.) should appear.
  • Actual behavior: Nothing happens. The context menu does not show up for most custom nodes.

Please see the attached screenshot for the full console output. This should provide a clear path for debugging.

How is this affecting you?

Feature doesn't work as expected

ComfyUI Frontend Version

1.26.6

Browser

Chrome/Chromium

Console Errors

Logs

[ERROR] An error occurred while retrieving information for the 'PromptComposerEffect' node.
Traceback (most recent call last):
  File "B:\comfyui\server.py", line 634, in get_object_info
    out[x] = node_info(x)
             ^^^^^^^^^^^^
  File "B:\comfyui\server.py", line 595, in node_info
    if issubclass(obj_class, _ComfyNodeInternal):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: issubclass() arg 1 must be a class

Additional Context

No response

┆Issue is synchronized with this Notion page by Unito

贡献者指南