mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
lookupCacheEntry reported a hit purely on the presence of the .hf-complete sentinel. The sentinel records that extraction finished, not that the frames survived, so any per-file cleanup that empties the directory leaves an entry that rehydrates with zero frames. rehydrateCacheEntry then returns totalFrames: 0, the clip reaches the coverage gate with nothing, and the render aborts with a message about capture coverage. Because the poison is on disk rather than in the composition, every later render of the project fails the same way with nothing the user can change to fix it. An entry now counts as a hit only when it carries the sentinel AND still holds at least one frame file, so an emptied entry re-extracts. The check is format-agnostic: a hit must be usable whatever extension the frames carry. Addresses the cache half of #3372.