Repository navigation
fix(cli): snapshot shows each video's own frame, keyed by render id as render does #5740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
miguel-heygen
wants to merge
4
commits into
main
Choose a base branch
from
fix/launch-video-hoisted-ids-and-layer
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+85
−5
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2e3b9f7
fix(skills): keep hoisted launch-video clips on top and apart in snap…
miguel-heygen f1b5326
refactor(cli): keep the snapshot render-id helper module-private
miguel-heygen 2365c3c
fix(cli): keep the snapshot command's doc comment on its function
miguel-heygen b0f6d5a
fix(engine): snapshot keeps an injected video frame visible when its …
miguel-heygen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P2] Keep the final visibility sync in this ID namespace too
candidate.idnow contains the render key, butsyncVideoFrameVisibilitystill checksactive.has(video.id)(screenshotService.ts:892). Snapshot invokes it after injection (lines 841–847), so it hides the correctly injected image withvisibility:hidden !importantbefore recapture/saving whenever the two IDs differ.This also regresses static input without duplicate authored IDs: put an untimed
<img src="assets/still.png">before a timed<video id="hf-media-0" src="assets/clip.mp4" data-start="0" data-duration="4" muted>.assignMediaRenderIdsgives the idless imagehf-media-0and the videohf-media-0__hf2. At t=1 with successful extraction and visible ancestors, BASE injects/syncs using the video's unique raw ID; HEAD injects through the bridge usinghf-media-0__hf2, then sync rejects rawhf-media-0and hides it.Make visibility use the same canonical reader/fallback and cover stamping → injection → sync. The new identity test stops at mocked page opening, so it cannot catch this final-state mismatch. This is source-level control analysis, not a browser/media reproduction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed and fixed at b0f6d5a, at the consumer:
syncVideoFrameVisibilitynow matcheswindow.__hfMediaId?.(video) || video.id, the same reader injection uses, so every caller is in the render-id namespace.<img>, then a red<video id="hf-media-0">, which gets render idhf-media-0__hf2). Pixel at t=1: 0.8.185253 0 0, this branch with the raw-id sync0 0 0(hidden), fixed253 0 0.expected 'hidden' to be 'visible').product-launch-video(feat(skills)!: publish seven knowledge skills aligned with Studio and retire the workflow skills #5651), so the skill-side changes are gone and the PR is now snapshot plus engine only. Title and body updated.