Skip to content

[bug] creative/comfyui: bundled workflow JSONs contain _comment key that causes HTTP 500 on every submission #48139

Open

Description

@carlbjson

Environment

  • Hermes Agent: 0.16.0
  • ComfyUI: 0.12.3
  • OS: Ubuntu 24.04
  • Skill: skills/creative/comfyui (bundled, version 5.0.0)

Description

All seven bundled workflow JSON files in skills/creative/comfyui/workflows/ contain a top-level _comment key. ComfyUI's /prompt endpoint treats every top-level key in the submitted JSON as a node definition and expects each node value to be a dictionary. Because _comment's value is a string, ComfyUI throws:

AttributeError: 'str' object has no attribute 'get'
  File "execution.py", line 1018, in validate_prompt
    node_title = node_data.get('_meta', {}).get('title')

This results in an HTTP 500 on every single workflow submission, making the ComfyUI skill completely non-functional out of the box.

Affected files

All seven files in skills/creative/comfyui/workflows/:

  • animatediff_video.json
  • flux_dev_txt2img.json
  • sd15_txt2img.json
  • sdxl_img2img.json
  • sdxl_inpaint.json
  • sdxl_txt2img.json
  • upscale_4x.json
  • wan_video_t2v.json

Steps to reproduce

  1. Fresh Hermes 0.16.0 install with ComfyUI skill active
  2. Ask Agent to generate any image
  3. run_workflow.py submits the bundled workflow JSON to /prompt
  4. ComfyUI returns HTTP 500 every time

Root cause

Each workflow file opens with:

{
  "_comment": "SDXL text-to-image at 1024x1024. ...",
  "3": { "class_type": "KSampler", ... },
  ...
}

ComfyUI's API format does not support comment keys. The _comment string is treated as a node and fails type validation.

Fix

Remove the _comment key from all bundled workflow files.

One-liner workaround for affected users:

sed -i '/"_comment"/d' ~/.hermes/skills/creative/comfyui/workflows/*.json

Additional notes

The ComfyUI server itself is healthy — submitting a clean workflow JSON without _comment works correctly and returns a prompt_id immediately. The bug is entirely in the skill's bundled files.

Activity

  1. added
    type/bugSomething isn't working
    tool/skillsSkills system (list, view, manage)
    P3Low — cosmetic, nice to have
    on Jun 18, 2026
  2. GottZ commented on Jul 28, 2026

    @GottZ

    This was generated by AI during triage.

    Summary

    Four open PRs address #48139 by removing the invalid top-level _comment entries from all eight bundled ComfyUI workflows; #48143, #48145, and #48676 also add runtime defenses, while #48144 is data-only. Their runtime approaches differ: #48143 validates complete node mappings and strips underscore-prefixed non-node metadata during unwrapping, #48145 strips underscore-prefixed keys immediately before submission, and #48676 drops non-dict values during unwrapping.

    Related pull requests

    Duplicates

    #48144, #48145, and #48676 substantially duplicate #48143's workflow cleanup; #48145 and #48676 also overlap its runtime metadata defense but implement weaker or less complete node invariants.

    Suggested consolidation

    Merge #48143 as the earliest and Verify-selected best fix: it combines the shipped-data cleanup with the strongest diff-backed node-mapping invariant, unwrap-time compatibility handling, regression coverage, and documentation. Close #48144, #48145, and #48676 as duplicates; this departs from their visible keep_open reviews because #48144 is a strict subset, #48145 still accepts non-underscore non-node entries, and #48676 still accepts dict-valued non-node metadata. The mocked outgoing ComfyRunner.submit() assertion requested on #48145 is not present in #48143 and should be treated as optional follow-up coverage rather than claimed as already satisfied.

    Complex graph

    flowchart LR
        classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
        classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
        classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
        classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
        classDef best stroke-width:3px,stroke:#b45309
        classDef target stroke-width:3px,stroke:#4338ca
        I48139(["issue #48139 (open)"])
        P48144["PR #48144 (open)"]
        subgraph Dup48143 ["PRs duplicating each other"]
            P48143["PR #48143 (open)"]
            P48145["PR #48145 (open)"]
            P48676["PR #48676 (open)"]
        end
        P48143 -->|best fix| I48139
        P48144 -->|fixes| I48139
        P48145 -->|fixes| I48139
        P48676 -->|fixes| I48139
        class I48139 open
        class I48139 target
        class P48143 open
        class P48144 open
        class P48145 open
        class P48676 open
        class P48143 best
        click I48139 "https://github.com/NousResearch/hermes-agent/issues/48139"
        click P48143 "https://github.com/NousResearch/hermes-agent/pull/48143"
        click P48144 "https://github.com/NousResearch/hermes-agent/pull/48144"
        click P48145 "https://github.com/NousResearch/hermes-agent/pull/48145"
        click P48676 "https://github.com/NousResearch/hermes-agent/pull/48676"
    
    Loading

    Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed or no verify verdict yet (state tag in the node label).

    Cross-PR triage: Reviewed 4 pull requests and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 36 kB of PR diffs, 11 kB of issue/PR text, 7 kB of discussion (10 comments), 7 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havetool/skillsSkills system (list, view, manage)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions