Conversation
…uctions Replace AGENTS.md and .github/copilot-instructions.md with symlinks to CLAUDE.md. Merge unique content from both files (ruff/pyright config details, shell style, commit conventions, single-file lint commands) and fix outdated version (v0.7.0 -> v0.12.2), add launcher internals, env vars, cross-platform Docker builds, and fix markdown lint warnings.
- Parse stored_tokens as JSON instead of plain text to correctly extract
tokens from {"huggingface.co": {"token": "hf_xxx", ...}} format
- Cover *.hf.co subdomains (e.g. cdn-lfs.hf.co) in auth header checks
by consolidating host matching into a tuple with endswith()
- Only attach Authorization headers over HTTPS to prevent token leakage
- Extract shared disabled-button style constants (DISABLED_BG, etc.) so
button init, CSS injection, and updateButtonStatus all use identical
values (previously 0.35/0.18/0.5 vs 0.45/0.22/0.55)
- Add model-downloader fixes and CLAUDE.md consolidation to CHANGELOG - Update README data structure: .pip-packages -> .venv (PEP 405 venv), add fonts/ and .cache/ directories - Update README Manager section to reflect venv-based package isolation and COMFY_VENV_PRECEDENCE env var
Greptile OverviewGreptile SummaryThis PR updates the flake to track ComfyUI v0.12.2 (moving upstream to The changes largely fit existing repo patterns: version pin updates in Confidence Score: 3/5
|
| Filename | Overview |
|---|---|
| .github/copilot-instructions.md | Adds a symlink to CLAUDE.md for Copilot instructions; no functional code changes. |
| AGENTS.md | Replaces AGENTS.md content with a symlink to CLAUDE.md; documentation-only change. |
| CHANGELOG.md | Updates changelog with Unreleased notes reflecting the v0.12.2 upgrade and related fixes. |
| CLAUDE.md | Expands repository guidance for commands, architecture, and new v0.12.2 behaviors; no runtime code. |
| README.md | Docs update to reflect venv-based runtime installs, directory structure changes, and updated upstream ComfyUI org link. |
| flake.nix | Updates flake description to mention ComfyUI v0.12.2; no logic changes. |
| nix/apps.nix | Points update-checker to Comfy-Org/ComfyUI releases endpoint; minor change. |
| nix/packages.nix | Switches ComfyUI upstream org, updates patches and adds new runtime deps; introduces launcher-time patching and venv precedence logic that needs careful review. |
| nix/patches/comfyui-ltxvideo-compat.patch | Adds a compatibility shim for precompute_freqs_cis to support ComfyUI-LTXVideo against newer ComfyUI. |
| nix/python-overrides.nix | Adds torchmetrics build input overrides (setuptools/wheel) to fix PEP517 build failures. |
| nix/template-inputs.nix | Regenerates template input URLs/hashes and improves quoting of generated symlink names in runCommand. |
| nix/vendored-packages.nix | Adds new vendored wheels (comfy-kitchen, comfy-aimdo, gradio(+client), sageattention) and switches to rec to allow self-references. |
| nix/versions.nix | Bumps ComfyUI and vendored/custom node pins to v0.12.2-era revisions and adds version pins for new vendored wheels. |
| scripts/update-template-inputs.sh | Adds URL basename percent-encoding and safe store names for nix-prefetch-url; adds python3 as a dependency. |
| src/custom_nodes/model_downloader/js/model_downloader_core.js | Unifies disabled-button styling constants and improves contrast via inline styles and injected CSS for PrimeVue themes. |
| src/custom_nodes/model_downloader/model_downloader_patch.py | Adds HuggingFace token discovery and conditional Authorization headers on requests; introduces a new dependency on urlparse/Path and uses json but needs to ensure imports and error paths are correct. |
Sequence Diagram
sequenceDiagram
participant UI
participant MDJS
participant API
participant HF
participant FS
UI->>MDJS: Click Download
MDJS->>API: POST /api/download_model
API->>API: Determine auth headers
API->>HF: HEAD url
HF-->>API: content-length
API->>HF: GET url
HF-->>API: bytes
API->>FS: write + progress
API-->>MDJS: progress updates
MDJS-->>UI: update button
API-->>MDJS: done/error
MDJS-->>UI: final state
Summary
Upgrade ComfyUI to v0.12.2 with numerous fixes and improvements across the flake.
ComfyUI Core
Comfy-Org/ComfyUI)comfy-kitchen,comfy-aimdogradio(vendored wheel) for custom nodes that import it (e.g. ComfyUI-LLaMA-Mesh)sageattention+ runtimetritonfor SageAttention supportgoogle-generativeai,ollama,pytorch-lightning,google-genaiin runtimeCustom Nodes
precompute_freqs_cis)Model Downloader
*.hf.cosubdomains (e.g.cdn-lfs.hf.co) in auth checksstored_tokensas JSON for correct HF token extractionAuthorizationheaders over HTTPS (prevent token leakage)Fixes
libxcb.so.1errors)mergekitat launcher-time to avoid pydantic v2torch.Tensorschema crashcomfyui-custom-scriptsto avoid writes into read-only Nix storeDocumentation
AGENTS.mdand.github/copilot-instructions.mdas symlinks toCLAUDE.md.pip-packages→.venv, addfonts/,.cache/)Test plan
nix flake checkpasses all 5 checks (ruff, pyright, nixfmt, shellcheck, package build)nix runlaunches ComfyUI successfully on macOS.venv/correctlynix run .#buildDocker