Adds a host bind env var (mirrors the port var) plus a README section on
running ComfyUI in Docker: bind 0.0.0.0, publish the port, point the agent at
the server IP, and handle images via a shared folder with matching paths.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a comment clarifying the run_workflow history poll returns as soon as
any output node appears, and that the design's upgrade path is the ComfyUI
websocket `executed` event.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switch store.py and workflows.py to the PEP 604 X | None syntax and drop
the now-unused `from typing import Optional`. Pure refactor; no behavior
change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Image.fromarray(arr) infers RGB from the (H,W,3) array shape; the explicit
mode="RGB" is deprecated in Pillow and slated for removal in 13. Clears the
three Pillow DeprecationWarnings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
save_tensor_png now reaps img_*.png files older than COMFY_BRIDGE_TMP_TTL
(env, default 3600s) after each write, so .comfy_bridge_tmp/ no longer
grows forever. Robust to races (ignores FileNotFoundError/OSError) and
never deletes the file just written.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>