Skip to content

fix(core): a sealed recording starts on a composition without GSAP - #8593

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/sealed-recording-starts-without-gsap
Nov 23, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
fix/sealed-recording-starts-without-gsap

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

On a sealed preview, recording a gesture on a composition that doesn't load GSAP now starts. Before, it refused with "Preview not ready. Try again", every time. Unsealed, the same recording starts.

Why

A sealed recording starts from the layer's values the frame reports (gesture-base, #8568). The frame read them from GSAP and answered null when the page has no GSAP, which Studio takes as "not ready". The unsealed recorder, finding no GSAP, starts from x 0, y 0, opacity 1 and scale 1 (readBasePosition in useGestureRecording.ts).

Related work

Follows #8568.

How

gestureBase in core's editingGestureStart.ts answers those same values at rest when the page has no GSAP. It still answers null for an element the load doesn't have.

Test plan

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)
  • Comments follow CONTRIBUTING.md "Comments"

fails without the fix:

  • packages/core/src/runtime/editingGestureStart.test.ts: "answers the values at rest on a page without GSAP, as the unsealed recorder starts".

  • With the fix, that file passes three runs in a row on Linux (20 tests). Core's src/runtime (164 files, 3,601 tests) passes, and core typechecks clean.

  • In Studio built at this branch and at main on Linux, run headless on the edit bench's move-none case (no GSAP on the page), sealed: main refuses the recording with "Preview not ready. Try again"; with the fix it runs.

@terencecho terencecho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sealed fallback now supplies the same neutral GSAP values the unsealed recorder uses. Both paths continue through the recorder’s existing offset logic. An unknown element still returns null. All 20 gesture-start tests passed locally. I did not rerun the browser bench.

— tai (automated review)

@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 49 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit bc33d03 Nov 23, 2026
108 of 110 checks passed
@miguel-heygen
miguel-heygen deleted the fix/sealed-recording-starts-without-gsap branch November 23, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants