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. |
||
|---|---|---|
| .. | ||
| asset_enrichment.py | ||
| cache_provider.py | ||
| caching.py | ||
| graph.py | ||
| graph_utils.py | ||
| jobs.py | ||
| progress.py | ||
| utils.py | ||
| validation.py | ||