Skip to content

refactor(studio): name the sealed draft send by the microtask it waits for - #8541

Merged
miguel-heygen merged 2 commits into
mainfrom
refactor/draft-send-microtask-name-pr
Nov 23, 2026
Merged

miguel-heygen merged 2 commits into
mainfrom
refactor/draft-send-microtask-name-pr

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Renames in previewDrafts.ts only. #8537 batches a sealed frame's draws into one send per microtask, but its names said "task". sendAtTaskEnd is now sendOnMicrotask, and the queue's sendsAtTaskEnd flag is now sendQueued. The module comment and two test titles now say microtask.

Why

A reviewer's non-blocking note on #8537: the draws are batched per microtask, not per task, so the old names were slightly off. #8537 was already in the merge queue, so the rename comes here.

How

Renames only, no behaviour change.

No visible change

Nothing a person sees changes.

Test plan

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

fails without the fix: none, since this is a rename. In packages/studio/src/components/editor/previewDrafts.test.ts, only the titles of #8537's rows "keeps what each draw before one send set: a later field wins, and a size drawn earlier stays" and "sends a draw still waiting for its microtask before a save that carries its end" change; their bodies don't.

  • previewDrafts.test.ts passes 16 of 16, three runs in a row, and the studio typecheck is clean.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 48 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)

@vanceingalls vanceingalls left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved at 098857d, CI green. This is a rename only, following Rames's note on #8537: sendAtTaskEnd becomes sendOnMicrotask, sendsAtTaskEnd becomes sendQueued, and the doc comment and two test titles now say "microtask" instead of "task". That matches what queueMicrotask actually does. There's no behaviour change (+10/-10), and typecheck in CI confirms no caller still uses the old names.

…icrotask-name-pr

# Conflicts:
#	packages/studio/src/components/editor/previewDrafts.ts

@vanceingalls vanceingalls left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-approved at c459614, CI green. The new head is a main merge (#8542, #8546, #8544 and others). The PR's changed lines are identical to the approved 098857d8 (same two files, +10/-10), so it's still the rename only. The one conflict (#8301's sent beside the renamed sendQueued) keeps both, and no old names remain.

@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 543fceb Nov 23, 2026
79 checks passed
@miguel-heygen
miguel-heygen deleted the refactor/draft-send-microtask-name-pr branch November 23, 2026 01:30
meefs pushed a commit to meefs/hyperframes that referenced this pull request Nov 23, 2026
* chore: release v0.9.84

* chore: release v0.9.84 notes list everything merged through heygen-com#8541

* chore: release v0.9.84 notes list heygen-com#8552

* chore: release v0.9.84 notes list heygen-com#8551
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