Fix recipe_id to use IPFS CID instead of local hash

The recipe upload was returning the SHA3-256 hash from artdag's cache
instead of the IPFS CID, causing recipe lookups to fail.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-12 08:58:51 +00:00
parent f333eeb1e6
commit 8e7228fc38

View File

@@ -114,7 +114,7 @@ class RecipeService:
# Store in cache (content-addressed, auto-pins to IPFS)
cached, ipfs_cid = self.cache.put(tmp_path, node_type="recipe", move=True)
recipe_id = cached.cid
recipe_id = ipfs_cid or cached.cid # Prefer IPFS CID
return recipe_id, None