ComfyUI Custom Workflows Unusable

Expected Behavior

  • Successful API prompting and image generation using a custom ComfyUI workflow.

Current Behavior

  • When selecting the custom workflow option for ComfyUI image generation and using any custom workflow, including the default ComfyUI workflow, the image preview stays blank, suggesting a prompt template error. No errors or log messages appear inside the ComfyUI console to indicate any attempted prompts/API requests. However, both the Simple ComfyUI prebuilt and BreezeIndigo's workflows work normally and as expected.

  • No error messages appear ingame either, even when entering in an incorrect workflow name.

Steps to Reproduce

  1. Install latest FCHost release and pregmod build.
  2. Add custom workflow to resources/workflows.
  3. Start new game, enable AI image generation, and select ComfyUI (along with custom workflow).
  4. Attempt to generate image.

Additional information

  • Release ID: 4.0.0-alpha.33, build: 1258
  • Commit: 958525cc
  • Save file: Occurs on fresh game.

Could it be related to lines 955/956 in src/art/genAI/workflows.js?