Skip to content

Conversation

@eliteprox
Copy link
Collaborator

@eliteprox eliteprox commented Dec 10, 2025

This change fixes an issue with ComfyStream unable to run from a directory other than ComfyUI. It also ensures that the installed ComfyUI package is used instead of the ComfyUI workspace, fixing compatibility that was broken in a previous change

This change also adds a --config flag option for passing command line args to configure the ComfyStreamClient (ComfyUI) instance with any flag provided here https://github.com/hiddenswitch/ComfyUI?tab=readme-ov-file#configuration-file

Details of changes

  • fix --workspace flag so ComfyStream can launch from any directory while mapping to the correct ComfyUI cwd.
  • Pass the workspace/CWD and logging settings cleanly through server args → pipeline → ComfyStreamClient so ComfyUI’s configuration is honored.
  • Add config passthrough support: when a ComfyUI config file is provided, forward it directly and skip overriding flags to match ComfyUI’s precedence rules.
  • Ensure ComfyUI packages load correctly via the client initialization (init.py/ComfyStreamClient), removing legacy env handling and relying on proper cwd/config inputs.
  • Update Docker, supervisord, launch configs, and docs to use the unified workspace flag and defaults.

- Standardize on --workspace (with --cwd alias) so ComfyStream can launch from any directory while mapping to the correct ComfyUI cwd.
- Pass the workspace/CWD and logging settings cleanly through server args → pipeline → ComfyStreamClient so ComfyUI’s configuration is honored.
- Add config passthrough support: when a ComfyUI config file is provided, forward it directly and skip overriding flags to match ComfyUI’s precedence rules.
- Ensure ComfyUI packages load correctly via the client initialization (__init__.py/ComfyStreamClient), removing legacy env handling and relying on proper cwd/config inputs.
- Update Docker, supervisord, launch configs, and docs to use the unified workspace flag and defaults.
@eliteprox eliteprox changed the title Feat/comfyui-args refactor(cwd): fix workspace path mapping, add --config flag option Dec 10, 2025
@eliteprox eliteprox changed the title refactor(cwd): fix workspace path mapping, add --config flag option refactor(server, pipeline): fix workspace path mapping, add --config flag option Dec 10, 2025
@eliteprox eliteprox linked an issue Dec 10, 2025 that may be closed by this pull request
@eliteprox
Copy link
Collaborator Author

This change follows up on the fix made in #549 to correct the parsing of the --workspace flag. It also changes COMFY_UI_WORKSPACE env var to COMFYUI_CWD which is the var used by ComfyUI to improve parity of flags

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.

[BUG] ComfyStream must be ran from ComfyUI as CWD

2 participants