Skip to content

feat(comfyui): run ComfyUI in the terminal with mqlaunch comfyui fg - #315

Merged
MCamner merged 1 commit into
mainfrom
feat/comfyui-fg
Nov 16, 2026
Merged

MCamner merged 1 commit into
mainfrom
feat/comfyui-fg

Conversation

@MCamner

@MCamner MCamner commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • mqlaunch comfyui fg runs ComfyUI in the current terminal with its output there, like starting it by hand. exec makes ComfyUI the process itself, so Ctrl-C stops it.
  • start and fg share one argument list (COMFYUI_ARGS), including --reserve-vram 2, so they cannot drift apart.
  • Refuses with exit 1 when ComfyUI is already running (points to comfyui log) or when another process holds the port.

Test plan

  • tests/comfyui-smoke.sh step 8/9 (red first): fg output reaches the terminal; the listening PID is the fg PID (exec, so Ctrl-C reaches ComfyUI); fg while running → exit 1 with a pointer to comfyui log. Step 6 now stops its foreign listener so it does not leak into later steps.
  • command-docs, command-registry, registry-consumer-parity smokes; shellcheck; markdownlint.
  • Real run against the live ComfyUI: mqlaunch comfyui fg refused with exit 1 and the log pointer; --help lists fg.

🤖 Generated with Claude Code

Same flags as start through one shared argument list. exec makes ComfyUI
the process, so its output lands in the terminal and Ctrl-C stops it.
Refuses when ComfyUI is already running and points to comfyui log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MCamner
MCamner merged commit 43001ba into main Nov 16, 2026
3 checks passed
@MCamner
MCamner deleted the feat/comfyui-fg branch November 16, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant