Repository navigation
Conversation
gh resolves both the repository and the argument against the local git context, so \gh pr view owner/repo#N\ reads the whole thing as a branch name and fails outright outside a git repository - which is the directory the pr-to-video skill runs the fetch in. Parse the ref ourselves and pass the number with --repo when the ref names a repository. A bare number keeps the old behaviour.
Every frame registers its paused timeline on window.__timelines, so a GSAP that never loads means no frame animates - and on a network that cannot reach jsDelivr the failure surfaces three minutes later as a silent static render that looks like a frame bug. GSAP is now bundled in the skill and staged into the project, the page references it by a relative path, the CDN stays available behind --gsap=cdn, and a missing local copy warns at assembly time.
jrusso1020
left a comment
There was a problem hiding this comment.
Reviewed at e29ab918cc2a8b6f39ce5b335388397a15424aff.
The local GSAP staging and explicit CDN opt-in work in the changed scripts, but this head conflicts with main. Please rebase against the current skill layout, keep the PR-reference argument fix separate if needed, and regenerate any affected manifest.
Both exact-head node test files passed, 10 tests total. I did not render the generated composition or audit the vendored minified GSAP against an upstream distribution. No full build or browser acceptance claim.
Need: yes · Size: ok · Reuse: existing helper and dispatch paths · Simpler: keep the focused fix · Structure: fine
Risk: medium - compatibility with current main.
Verdict: COMMENT
Reasoning: The branch currently conflicts with main; I will review the resolved delta after a rebase.
Reasoning: The local GSAP staging and explicit CDN opt-in work in the changed scripts, but this head conflicts with main. Please rebase against the current skill layout, keep the PR-reference argument fix separate if needed, and regenerate any affected manifest.
|
This PR has had no activity for 14 days, so it is marked stale and will close in 7 days. Push a commit or leave a comment to keep it open. A maintainer can add |
|
Closed after 21 days without activity. Reopen it, or open a new PR, whenever you pick it back up. |
|
Closing the loop on this one rather than rebasing it. The On keeping the PR-reference argument fix separate: that part is #6027, which is a separate PR and doesn't need to be split out here. @jrusso1020 flagging this so the rebase request isn't left waiting on a branch that can't satisfy it. The staging idea is still sound in principle — vendoring GSAP locally instead of pulling it from a CDN at fetch time — and upstream now has Leaving this closed as obsolete unless that turns out to be the case. |
Closes #6028
The problem
skills/pr-to-video/scripts/assemble-index.mjswrote the assembledindex.htmlwith a hardcoded jsDelivr CDN tag for GSAP:Every frame's composition registers its paused timeline on
window.__timelines,so if that script never loads no frame animates. On a network that cannot
reach
cdn.jsdelivr.net(mainland China routinely resets the connection inunder 300 ms) the whole pipeline still gets through Step 5 — frames built,
checkgreen, snapshots fine — and only the finalrendercomes out wrong. Bythen it looks like a frame bug, not a missing library.
It also breaks the repo's own rule: "Deterministic rendering: no render-time
network fetches."
The fix
GSAP is now staged locally and referenced by a relative path.
skills/pr-to-video/assets/vendor/gsap.min.js— the library is bundled inthis skill, the way
talking-head-recutalready bundles it.assemble-index.mjscopies that copy (ornode_modules/gsap/dist/gsap.min.jswhen the skill runs from a checkout) into
<project>/assets/vendor/gsap.min.jsand emits
<script src="./assets/vendor/gsap.min.js"></script>.--gsap=cdn(defaultlocal). If no local copy is found at all, the script falls back to the CDNand says so on stderr, so the failure is named at assembly time instead
of surfacing three minutes later as a static render.
flag()now accepts both--name valueand--name=value, so thedocumented
--gsap=cdnspelling works.Test
Two cases in
skills/pr-to-video/scripts/assemble-index.test.mjs:index.htmlreferences./assets/vendor/gsap.min.js, containsno
cdn.jsdelivr.net, and the copy it points at is staged next to it;--gsap=cdnstill produces the CDN tag.The test file also resolved the script path with
new URL(...).pathname,which is a POSIX-only spelling — on Windows it produced
C:\C:\...and everytest in the file failed to start. It now uses
fileURLToPath, which is thesame path on POSIX and a working one on Windows.
How I verified it
The skip is the ffmpeg case (no ffmpeg in this environment).
oxfmt --checkandoxlintare clean on both changed files.Model Used
MiniMax M3.1 Flash Free via the opencode agent harness (
minimax-m3.1-flash-free)