Environment Corruption¶
Most "corruption" is runtime drift: files under the ComfyUI checkout, virtualenv, custom nodes, or symlinks no longer match the manifest.
Start with repair:
Common Causes¶
- manually deleting or moving custom node directories
- manually editing
.venv - interrupted sync or create
- branch switches with runtime state left behind
- broken model symlinks
- partial node downloads
Rebuild Runtime State¶
Restore From Git History¶
Use Git commands when the tracked environment recipe changed and you want a different commit:
Use reset --hard only when you intentionally want to discard local changes:
Reimport As A Last Resort¶
If the runtime directory is badly damaged but the portable environment source is available:
For runtime/build use, prefer: