fix(sim): content-hash media URLs + fade pool-landing clip swap #23
Reference in New Issue
Block a user
Delete Branch "fix/media-versions-and-pool-landing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two media-handling fixes surfaced by the cosmos swap.\n\n1. Permanent cache-bust (content hash). New
GET /api/media-versionsreturns a sha1 token per served file (cached by mtime/size, so re-bakes are picked up without a restart). The client appends?v=<hash>to /media URLs → a re-baked clip gets a fresh URL the browser cannot serve stale. Fixes the recurring stale-clip problem at the root.\n\n2. Fade the pool-landing swap. The baked ring transition lands on the scale PRIMARY, but the rotating pool picks a random member — so a non-primary pick hard-cut from the primary to the chosen clip (coast birdrock → surfgrass, the artifact reported). Now masked behind a short fade through the existing#blackoverlay when the pick ≠ primary; general across all pooled scales.\n\n271 passed, 2 skipped (+2). Endpoint verified live (token matches a manual sha1).\n\n🤖 Generated with Claude Code