* fix(studio): thumbnails of compositions with no code of their own load in under a second
Both thumbnail paths (the CLI's preview server and Studio's dev server) waited up to 5 s for
a GSAP timeline before shooting a card. A composition with no script never registers one, so
each of its cards took the full 5 s, and the route shoots one card at a time, so the third
card came at about 16 s.
The wait cannot simply go: a composition may register its timeline late, in a timer or a
load handler, after the runtime is ready, and shooting it then shows the wrong moment.
So the preview route now marks the page a thumbnail loads when nothing on it can register a
timeline: no script but Studio's own (the runtime, GSAP core, an import map, the registry
line), no inline event handler, frame, template or child composition loaded at run time, and
no Studio motion. A marked page is shot once the runtime is ready. Every other page is held
for its timeline exactly as before.
The rule lives once, in studio-server, and both thumbnail paths wait on it.
fails without the fix: "is skipped for a composition with no code of its own" and "holds for
a composition whose script registers its timeline late"
(packages/studio-server/src/routes/preview.thumbnailMark.test.ts), "thumbnailSeekReadyInBrowser"
(packages/studio-server/src/helpers/screenshotClip.test.ts), "hasAuthoredCode"
(packages/studio-server/src/helpers/authoredCode.test.ts), and "holds a thumbnail's shot on
the thumbnail readiness rule" (packages/cli/src/server/studioServer.test.ts and
packages/studio/vite.browser.test.ts).
* test(studio-server): the thumbnail mark test builds its page from elements, not parsed text
The test read the served page back through DOMParser and innerHTML to hand its metas to the
readiness rule, which code scanning reports as DOM text reinterpreted as HTML. It now finds
the served page's meta tags with the compiler's own tag scanner and creates each one as an
element, so no text is parsed as markup.
Also adds a row to the code check's table: a script inside an inline SVG counts as code.
fails without the fix: "is skipped for a composition with no code of its own"
(packages/studio-server/src/routes/preview.thumbnailMark.test.ts) still fails when the route
writes no mark.
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview
* test(studio): a sealed undo that reloads marks its scenes stale first
* fix(studio): a timing drag moves the animation in place in a sealed preview
* fix(studio): a sealed timing drag moves the clip's window and the film length with its tweens
* test(studio): the sealed retime test checks both requests were sent before comparing them
* refactor(studio): the sealed live retime code passes the quality audit
* style(core): format the sealed live retime parser
* fix(studio): a reload waits for a drag to end in a sealed preview
* refactor(studio): manual edit gesture tracking lives in its own module
* test(studio): a sealed preview's reload waits for a resize on its stand-in to end
* test(studio): text fields and text edits in a sealed preview
* fix(studio): text fields and text edits work in a sealed preview
* refactor(core): shorter notes on edit-element markup
* refactor(studio): name the sealed text edit's steps so the code audit passes
* refactor(studio): share the text commits' steps and split the put-back check
* refactor(studio): say the sealed text edit's steps in names, not comments
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview
* test(studio): a sealed undo that reloads marks its scenes stale first
* fix(studio): a timing drag moves the animation in place in a sealed preview
* fix(studio): a sealed timing drag moves the clip's window and the film length with its tweens
* test(studio): the sealed retime test checks both requests were sent before comparing them
* refactor(studio): the sealed live retime code passes the quality audit
* style(core): format the sealed live retime parser
* fix(studio): a reload waits for a drag to end in a sealed preview
* refactor(studio): manual edit gesture tracking lives in its own module
* fix(studio): a sealed crop frame turns with its layer, before a press and after a scrub
* refactor(studio): the crop handles hand a sealed card's earlier press layout to the crop frame
* fix(studio): keep the frame's raw planar out of a parsed gesture start
* test(studio): pasting a preview's own element keeps only markup that runs no code
* fix(studio): paste refuses an element with an event handler or a script link
* fix(studio): paste checks only markup that is not in the saved file
* test(studio): paste refuses code in elements and in links spelled to slip past
* fix(studio): paste refuses scripts, inline frames and links a browser would read as script
* refactor(studio): one owner for markup safety and the saved-or-live copy plumbing
* refactor(studio): keep the saved-markup helpers private to their module
* test(studio): clipboard text cannot mark a pasted clip as saved
* fix(studio): clipboard text cannot mark a pasted clip as saved
* test(studio): the first save of a film without ids writes the ids the preview served
* fix(studio): the first edit of a film without ids saves the preview's ids, so it does not reload
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview
* test(studio): a sealed undo that reloads marks its scenes stale first
* fix(studio): a timing drag moves the animation in place in a sealed preview
* fix(studio): a sealed timing drag moves the clip's window and the film length with its tweens
* test(studio): the sealed retime test checks both requests were sent before comparing them
* refactor(studio): the sealed live retime code passes the quality audit
* style(core): format the sealed live retime parser
* test(studio): a sealed preview whose film boots after 8 s comes ready without an error
* test(studio): wait for the sealed player to mount before reading it
* fix(studio): a host can own the live preview's load deadline, so a slow sealed film isn't an error
* test(studio): a sealed audio group's undo survives a reply of the wrong shape
* fix(studio): a sealed audio group's undo reads the frame's reply only in the shape it asked for
* fix(cli): preview answers unknown paths with an inert refusal, not the Studio shell
Studio routes by location.hash only, yet the preview server answered every
unknown GET with the Studio shell (200, same origin, query kept). An OAuth
redirect to the preview port (/oauth/callback?code=...&state=...) therefore
re-mounted the project, and project script read the code from the address.
The shell is now served only at / and /index.html. Any other path gets a
plain-text 404, and a request carrying `code` or `state` at any path (entry
and preview routes included) gets a plain-text 400. Both carry a sandbox CSP
(opaque origin), COOP same-origin, frame-ancestors 'none' / X-Frame-Options
DENY, nosniff, no-referrer and no-store, and never echo the request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(studio): preview's Vite modes refuse an OAuth return too
`preview` from a source checkout (dev mode) and with the local studio
(HYPERFRAMES_LOCAL_STUDIO=1) run packages/studio/vite.config.ts, whose SPA
fallback served the Studio shell at /oauth/callback?code=... with no COOP or
sandbox. devProjectApi now refuses a `code` or `state` at any path as its
first middleware, with the same inert response as the embedded server.
The refusal moves to @hyperframes/studio-server so both servers share one
helper.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(studio): a sealed resize of a keyframed size keeps the box's other side
* fix(studio): say where a sealed resize's pre-gesture box comes from
* refactor(studio): read a resize's pre-gesture box one side at a time
* fix(studio): a sealed move, resize or turn takes GSAP's route when GSAP animates the layer
* fix(studio): a live layer's route is decided at once, and a turn the press routed keeps it
* fix(studio): a sealed resize's anchor move waits for the frame's GSAP read before choosing CSS
* fix(studio): a sealed resize, move or turn typed in or made by the agent shows in the preview
* test(studio): a sealed geometry save leaves the frame to a live drag draft
* fix(studio): agent tools read a sealed preview through its runtime
* test(studio): agent tool tests build selections from live elements
* test(studio): agent tools on a sealed preview look, select, inspect, write and read back
* test(studio): resolver and tool tests find elements through the preview read
* test(studio): the socket-pool walk waits for studio_look's ready scene
* fix(studio): a sealed crop of a turned or scaled layer saves the crop an unsealed one saves
* fix(studio): a sealed style edit shows on the selection at once, so a crop stays where it was let go
* fix(studio): a sealed undo restored in place re-reads the selection, so it shows the undone edit
* fix(share): ask before sharing from Studio, naming the review it changes
A composition's script runs on Studio's origin by default, and a received
folder's .hyperframes/review.json can point Studio at an existing review.
Every share action except sign-in now asks the person first, naming the
review (its link), who can open it, the workspace and whether project files
are uploaded. The request carries the manage link of the review that was
shown, and the server refuses it with share_target_changed when the
project's review no longer matches, so nothing is shared or changed.
* fix(share): bind each Studio share action to the review id the person confirmed
Studio now gets the id and title of the review an action reaches, including a folder
whose record names a review it never opened (a received folder can ship one). The
confirmation names that review, its workspace and who can open it, and says plainly
when a folder arrives already linked. Actions carry the confirmed id; a missing one is
refused as confirmation_required and a different one as share_target_changed, and
after that refusal Studio drops the earlier choice. The docs describe the
confirmation and that project files are included only when chosen.
* fix(share): show the review title on one quoted line in the confirmation
* fix(share): say a linked share also sets who can open it, and check the new state fields
* fix(share): separate the question from the details and say when a title is unknown
* docs(share): name the review record without a path the citation check reads as a file
* fix(studio): a sealed preview turns a rotated element live and saves the turn on its own route
* fix(studio): a sealed rotate regrabbed mid-save cancels to where it started on the frame too
* refactor(studio): keep the gesture handlers file under the size limit
* fix(studio): a sealed preview's timeline names each file by its project path
* fix(studio): keep a file on another site at its own address in a sealed preview's timeline
* test(studio): a sealed shadow's failed reload says only what it reported
* fix(studio): a sealed preview's failed reload no longer blames a page that never loaded
* fix(studio): a failed reload names the restore seek when the timeline already arrived
* test(studio): keep the restore seek test's comment under 120 characters
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview
* test(studio): a sealed undo that reloads marks its scenes stale first
* test(studio): a lane drag in a sealed preview restacks and saves its z-index
* fix(studio): a lane drag in a sealed preview saves the stacking change it implies
* test(studio): format the sealed restack test and skip a clip with no stored z-index
* fix(studio): dragging a layer in a sealed preview's layers panel restacks it
* fix(studio): a sealed layer drag restacks nothing from a malformed sibling reply
* chore(studio): drop a doc line the comment check counts against the stack base
* test(studio): a lane drag in a sealed preview restacks and saves its z-index
* fix(studio): a lane drag in a sealed preview saves the stacking change it implies
* test(studio): format the sealed restack test and skip a clip with no stored z-index
* fix(studio): a sealed lane drag restacks from the z-index the preview paints
A sealed preview's lane drag read the clip's z-index from the store, which holds only inline styles and the value
from when the drag began. It now asks the frame for the computed z-index when the gesture runs, so a stylesheet's
value and an earlier queued gesture's save both count.
* chore: release v0.9.71
* chore: release notes for v0.9.71 link the commit after the first cut
* chore: release notes for v0.9.71 add the two commits merged after the review
* test: pages holding an SVG element named template
* fix: read template content only from HTML templates
* test: SVG elements named template in previews, inline mounts and lint
* fix: treat only HTML templates as scenes and inline mounts
* test: scene ids next to SVG elements named template
* fix: take scene ids only from HTML templates
* fix(studio): a sealed preview's timeline shows its text clips' words and look
A sealed preview's timeline rows come from the clip list the film sends, which
carried no text, so its text clips drew as blank rows. The film now sends each
plain text layer's words (up to 200 characters) and look, read by the same rule
Studio uses for its own rows, and the row shows the words as plain text.
* fix(studio): check a sealed clip's text on arrival, cap only what the film sends
Studio now takes a clip's text from the film's message only when every field is
text within the film's limits; otherwise the clip keeps its row without words.
The 200-character limit applies to the film's message alone, so an open
preview's own rows keep their full words as before.
* test(studio): a sealed preview keeps its loading overlay while media buffers
* fix(studio): a sealed preview's loading overlay waits for its media through the editing port
* fix(studio): Studio never calls a preview ready before its asset check has answered
* refactor(studio): the preview asset wait lives outside the Player component
* refactor(studio): the preview asset wait moves to its own file, out of the Player
* refactor(studio): one asset-wait state; a sealed frame's first check is its own value
* fix(studio): a sealed preview's missing asset answer is asked again, never taken as ready
* fix(studio): a closed preview frees its editing-port client
* style(studio): keep the client comment under the line limit
* fix(studio): a sealed preview keeps Studio's size, move and turn edits after a seek
* fix(studio): a sealed preview reapplies Studio's edits on each frame it seeks or plays to
* fix(studio): build the sealed reapply script from constants, never a caller's value
* fix(studio): a sealed preview reapplies Studio's edits after a redraw at the same time
* fix(studio): serve the seek reapply only into sealed preview documents
* chore(core): shorten the redraw count's doc line
* fix(studio): a script edit re-runs in place in a sealed preview, without a reload
* fix(studio): a sealed timing edit takes the saved clip and film timing along with its soft reload
* test(studio): the sealed timing test checks a soft reload was sent before reading it
* refactor(studio): the sealed soft reload code passes the quality audit without suppressions
* chore(core): core's size budget makes room for the sealed preview's frame-side editing code
Main already measured 1,841,737 bytes packed against a 1,830,000 budget; the sealed soft reload brings it to 1,855,277. Budgets follow SIZE_BUDGET_HEADROOM: ceil(1,855,277 x 1.05) packed, ceil(4,665,659 x 1.05) unpacked.
* fix(core): a sealed timing edit is not skipped when a nested file's root repeats a clip's id
* fix(studio): a sealed resize saves its anchor on the route GSAP moves it by
* style(studio): format the sealed resize test and drop the new comment lines
* fix(studio): the property panel shows a sealed preview's animated values
* fix(studio): a sealed preview's panel shows rotation and scale from tweens that only turn or grow
* fix(studio): copy, duplicate and audio lane updates work in a sealed preview
* fix(studio): a sealed copy keeps its starting selection, and a stale lane read is dropped
* fix(studio): a saved lane value outlasts an older sealed read, and cut deletes in its own project
* fix(studio): a sealed preview pauses on press and reopens a link's selection
* fix(studio): a linked selection retries on a timer, whatever the playhead
* refactor(studio): one lookup-state hook keeps the URL-state hook's size where main had it
* fix(studio): a linked group member keeps the lookup waiting until the preview can answer for it
* fix(studio): a value or keyframe edit shows in place in a sealed preview
* fix(studio): a sealed group edit reloads once at its end, and a batch renders its last tween
* refactor(studio): the sealed tween patch path lives in its own module
Keeps useGsapScriptCommits under Studio's 600-line limit, and records the authoredOpacity helpers' move into core as an intended deletion.
* refactor(studio): the sealed tween patch code passes the quality audit without suppressions
Splits the frame-side change parser per kind, the tween lookup and keyframe rebuild into small checks, and the reachable-preview patch out of applyPreviewSync; drops an unused type re-export.
* test(studio): a sealed scene's children and clip parents fill as an open preview's do
* fix(studio): a sealed preview's scene children and clip parents come from the editing port
* test(studio): a sealed preview's first-frame event carries its clips and length
* fix(studio): a sealed preview's first-frame event counts its clips from the document copy
* refactor(studio): drop two comments the names already carry
* fix(studio): refused group, freeze frame and animation saves keep the server's status
* refactor(studio): withStatus says what it does without a comment
The bench's openStudio now waits in the page for Studio's own word that the
composition loaded (studio_look reports a duration) under the one 90 s boot
budget, instead of a separate 30 s poll that failed a case Studio was still
loading after a reload under load. A boot that never loads names Studio's last
report, and seekBound names the condition it was still waiting on.
hiddenTarget no longer throws on a preview frame detached mid-scan: puppeteer
throws that synchronously, so the per-frame .catch never ran.
* test(studio): property panel edits in a sealed preview reach the frame's element
* fix(studio): property panel style and attribute edits show in a sealed preview
* fix(studio): keep live property saves synchronous and use the runtime's realm-safe element check
* fix(studio): a sealed edit's put-back never replaces a newer edit
* refactor(studio): keep the sealed save wait private
* fix(studio): check a sealed edit's put-back reply without the helper main removed
* test(studio): share one sealed preview frame that delivers messages like a browser
* test(studio): name the sealed frame's port wrapper instead of commenting it
* fix(ci): the capture check treats .test-helpers files as tests, like the rest of the repo
* test(studio): keep the sealed frame's delivery helper private
* fix(studio): keep test helpers out of Studio's typecheck, like core does
* fix(studio): a sealed preview's element reads are bounded, and a frame with no agent answers at once
* fix(studio): a sealed preview's sources and style names are bounded too, never cut