mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-16 22:46:38 +08:00
With --disable-assets (or after a database init failure) init_db() never runs and Session stays None, but /view?filename=blake3:<hash> still called resolve_hash_to_path(), raising TypeError and returning a 500. Workflows saved while assets were enabled trigger this on preview render in disabled mode. Gate the hash branch on live assets availability and return 404, which also fixes the pre-existing 500 on the degraded path. Also copy output_ui in the disabled enrichment fast path so the 'returns a new dict' contract holds in both modes.