* fix(studio): arrow keys nudge the selected element in a sealed preview
A sealed preview's selection is a stand-in that is never in the page, so the nudge's check that the element is still
there refused every key and nothing moved. It now uses the same check the selection publisher uses, which keeps a
sealed selection until it is replaced.
* fix(studio): a sealed nudge moves an animated element by its tween and saves where it was drawn
A sealed preview's selected element is a stand-in with no animation or translate of its own, so a nudge guessed both from an empty page: it wrote a plain translate over the stylesheet's and the element landed elsewhere after a reload. The nudge now waits for the frame's gesture-start read, the one a press uses, and keys pressed meanwhile join the burst.
* test(studio): pass the nudge its frame refs in the undo paint test
* fix(studio): a sealed move on GSAP's route lands where it was drawn, not twice as far
When a move ends, the sealed frame kept the translate the gesture drew. A move on GSAP's route saves the new position as GSAP's x and y, so the layer then showed the move twice until the frame loaded again. The frame now drops the drawn translate for those moves; a move saved as a plain translate still keeps it.
* refactor(studio): split the sealed nudge key handler so each step reads on its own
* fix(studio): a sealed nudge waiting on its frame gives way to a drag, selection or other edit
* fix(studio): an arrow pressed while a canvas press waits on the preview does not start a nudge
* fix(studio): a sealed resize on GSAP's route keeps the size it drew when it ends
* refactor(studio): name the size-keeping draft end instead of commenting it
* fix(studio): a sealed resize saved as GSAP scale drops the size it drew when it ends
* fix(studio): a sealed resize keeps its drawn size unless its save wrote the size as scale
* fix(studio): a whole-tween resize of a width/height tween says it saved the size, not scale
* test(studio): cover the resize writer's held-size and unnamed-element returns
* test(studio): reach the resize writer's no-selector refusal with an element no selector addresses
* test(studio): Chrome-driven tests run alone after the unit tests
A Chrome started beside the unit tests on a CI runner missed its launch window twice and failed the gsapSoftReloadWait suite. The browser project runs one file at a time after the unit project, as the engine already does.
* test(studio): name the Chrome test pattern once in the split
* test(studio): the Chrome test split names its pattern as literals the reachability check reads
* fix(studio): keep a preview frame's clip timing and track numeric
Clips from a preview frame's timeline message or runtime snapshot are
kept only when start and duration are finite numbers and track is a
whole number. Asset drop, file drop, paste and duplicate write
data-track-index as a whole number, and paste checks a clip's markup
for running code after its root tag takes the new start and track.
* fix(studio): write a dropped asset's start and duration as finite numbers
buildTimelineAssetInsertHtml writes data-start and data-duration through
formatTimelineAttributeNumber, with a non-finite or non-number value
written as 0, so a store row's timing cannot add text to the tag.
"No visible change" now holds for any diff under packages/studio or
packages/player that touches no .tsx, .css, .html or binary file. Before,
it also needed under 20 changed lines, so a larger logic-only fix had to
attach captures of nothing. A binary file, such as an image, now counts
as visual directly instead of through the line budget.
* test(studio): a sealed preview's topology lens is drawn from the frame's geometry answer
* fix(studio): the topology lens shows in a sealed preview
* test(studio): a sealed frame's lens matches a live frame's on the real runtime
* fix(studio): a sealed lens finds its composition host by walking the frame's parents
* refactor(studio): the topology lens measures in its own hook
* fix(studio): a refused delete no longer brings back another delete still saving
A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.
* fix(studio): a refused delete also refuses the ripple shifts queued behind it
A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.
* fix(studio): a reload that gives up says whether its frame was missing, blank or unreadable
A shadow reload that times out with no page used to say "no-page" for three different stalls. It now says no-frame
(none added, or gone), blank (added, still about:blank) or unreadable (added, document not readable), and for the
last two whether the frame was given a page address and how long ago it was added.
* refactor(studio): the frame's added time lives beside the give-up message
* fix(studio): a sealed preview's give-up names its step as sealed
* fix(studio): show a sealed composition's clip on the timeline
* fix(studio): keep a sealed load's clip bound to its own preview and length
* fix(studio): an older preview read never replaces a newer timeline
* fix(studio): only the preview on screen writes the timeline
* fix(studio): a removed preview frame's pending read writes nothing
* fix(media-use): refuse links under .media before reserving, writing or recording
A received project could carry links at .media, at a type folder, at the
next asset name or its .tmp name, or at the preferences store's temp
names, and resolve or prefs record wrote through them to files outside
the project.
- ownMediaDir now checks every folder down to the type folder, making
each one level at a time, before the lock, the allocator, the record
append or a project preference write touches anything inside it.
- The allocator ignores ids past nine digits, so a planted huge id can't
push it back onto a name the project holds, and it skips any name that
already exists.
- The asset writers and the LUT .tmp writers create new files only.
- The preferences store writes through replaceFile, a random temp name
created exclusively and renamed into place.
Both copies of manifest.mjs and prefs-store.mjs change together.
* test(media-use): read the preferences file through one no-follow handle
The test checked the file's type and then read it by path, which CodeQL
reports as a check-then-use race. Open it once without following a link
and check and read through that handle.
* fix(media-use): keep a failed write's error when replaceFile can't remove its temp file
The preferences store now writes through replaceFile. Its old write made
temp cleanup best-effort, so a cleanup error never hid the write error,
and the store's tests guard that. replaceFile now does the same.
* fix(media-use): leave freezeUrl's write as it was
CodeQL's http-to-file-access rule flags every write of downloaded bytes,
and main already carries that alert on this line. Adding the wx flag only
re-keyed it as new. The reserved name freezeUrl writes is already checked
free in a checked folder, so the line goes back to main's text; copying a
local file keeps COPYFILE_EXCL.
* Revert "fix(media-use): leave freezeUrl's write as it was"
This reverts commit 1427e73ec2.
* chore: release v0.9.80
* chore: release v0.9.80 notes list the changes merged since the draft
* chore: release v0.9.80 notes list the changes merged since the draft
* test(engine): a tunnel the egress proxy drops fails the download after its one retry
* fix(engine): an asset download fails once when the egress proxy drops its tunnel
undici 7 keeps a request queued and reopens the tunnel with no pause or limit when the proxy closes it without a reply. The proxy transport's pools now report that close as a reset, so the request fails and the downloader's one retry is the bound.
A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.
* fix(studio): a sealed undo of a GSAP-animated layer's style shows in place, without a reload
* fix(studio): a sealed undo refused after a later one reloads instead of replaying the older state
* fix(studio): a sealed undo's script re-run travels in its restore request, so no write races it
* fix(studio): import the sealed re-run builder where the undo sends it
* refactor(studio): one shape guard for the restore parser and a named re-run choice
* refactor(studio): the sealed undo attaches its re-run in one helper
* test(studio): count only the restore's own requests to the sealed frame
* fix(studio): a sealed re-run keeps a newer scrub and an unusable re-run keeps the plain restore
* fix(studio): a deferred re-run keeps a newer scrub and a newer edit; sealed preloads MotionPath
* refactor(studio): name a soft reload's mark and its script run
* test(studio): share the Chrome bundle's node shim and read the composition's own script
* fix(studio): a waiting re-run leaves the composition's script until it runs
* fix(studio): the soft-reload wait only swaps timelines a newer run left alone
* test(studio): the soft-reload wait tables drive each step from one map
* fix(studio): one MotionPath loader settles every waiting re-run when the plugin loads
* test(core): a failed MotionPath load is retried by the next re-run
* test(studio): a wait-table step after the swap waits for the swap's render
* fix(studio): only the newest soft-reload run may swap, reload or move the playhead
* fix(studio): a refused sealed tween patch re-runs the script instead of reloading
* test(studio): the playing-through-the-wait row allows the player's frame snap
* fix(studio): a late preview answer acts only when no later re-run carries its change
* test(studio): held-answer rows release a still-waiting run when the page closes
* test(core): a restore says whether it re-ran the script
* test(studio): sealed preview equals a fresh load after late answers in any order
* fix(studio): a late refusal recovers with the whole saved snapshot, attributes and timing
* fix(studio): only an explicit refusal keeps an undo's attributes from being covered
* test(studio): ordering table holds a refusal until its request posts, restores a safe attribute
* test(studio): ordering fixture carries the hf ids Studio's server serves
* fix(studio): a refused retime is never covered by a script-only re-run
* test(studio): ordering table keeps the title undo and restores safe and unsafe attributes
* refactor(studio): a restore's snapshot comes from one helper
* test(studio): a refused request is answered at its own step, as in the retime probe
* test(studio): the ordering runner lives in a shared sequence harness
* test(studio): a patch recovery after a live retime carries the retime's timing
* test(studio): the ordering fixture sends its own script instead of parsing the file
* test(studio): the sequence harness keeps its refusal table private
* test(studio): ordering table generates live retimes, scrubs and port rejections
* test(studio): a harness reload shows the new load at Studio's playhead
* test(studio): the ordering table carries the reviewer's round-8 sequences
* test(studio): the first round-8 sequence holds the live retime's refusal
* test(studio): the ordering table pins the seeds that found each round-8 class
* fix(studio): sealed recoveries keep saved timing, the live playhead and port rejections
* test(studio): sealed mocks answer through previewAnswer; channel row for error vs no reply
* test(studio): the timing sync and script commit mocks answer through previewAnswer
* refactor(studio): a late live retime's recovery is its own step
* test(studio): ordering table generates two-script files, missed deadlines and unanswered requests
* test(studio): the data-start undo restores a clip no script animates
* test(studio): a save that reloads at once counts as one nothing can apply in place
* fix(studio): sealed writes count as covered only by a newer applied run that carried their state
* test(studio): the ordering table pins the seeds that found each round-9 class
* fix(studio): a sealed re-run covers from its send only what it carried
* test(studio): the ordering fixture marks each save as Studio's write does
* test(studio): a two-script sequence may recover only by reloading
* test(studio): the harness reload loads again after a save, as Studio's shadow reload does
* test(studio): the ordering table splits its fixed rows from fresh seeds to fit the flake gate
* test(studio): the ordering fixture keeps its generator private
* fix(studio): a sealed write's file version is its save's, and timing coverage survives a later run
* fix(studio): the ledger keeps each timeline's newest snapshot by its save's version
* test(studio): soft-reload expectations name the save revision where a real save made one
* test(studio): the ordering table pins the seeds that found reversed save responses
* refactor(studio): a sealed restore's send moves to its own module under the file size cap
* test(studio): the wait table settles two waiting runs and a pause before it reads them
* test(studio): the ordering table reverses older timing writes behind a newer data-start undo
* fix(studio): a sealed write older than a file already sent to the preview is not sent
* test(studio): mocked preview channels run the send gate as the real one does
* test(studio): the patch request names its default deadline
* test(studio): the ledger pins an older live retime sent after a newer file
* fix(studio): a sealed tween patch carries its save's version without a snapshot too
* test(studio): the undo row expects the in-place re-run of the undone file
* test(studio): the ordering table loads the newer file between reversed timing syncs
* fix(studio): a new sealed preview load refuses writes older than the file it shows
* refactor(studio): the sequence runner plays a reversed step in its own function
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy
* fix(studio-server): keep history's comment share at or below its base
* fix(studio-server): a first copy that lands past its deadline is kept as the file's start
* fix(studio-server): a late first copy is adopted and kept while another file's read is stalled
* fix(studio-server): a waiting late first copy counts as baseline and rereads a few at a time
* fix(studio-server): every reread of an owed file takes a copy slot and is kept until adopted
* fix(studio-server): history pins a copy as it is filed and keeps a reference-only copy as such
* fix(studio-server): a history pin is taken and released by its owner, never across a delete
* fix(studio-server): an agent step waits at most a deadline for a file the drive never answers
* fix(studio-server): undo refuses a file whose first copy landed after an agent step rewrote it
* chore(studio-server): give the packed size budget its usual 5% headroom
Main packs to 190,094 bytes, already 0.65% over the 188,871 budget; this branch adds 1,264 bytes of its own code (no new import: dist/index.js is unchanged). The budget file's rule is 5% above measured: ceil(191,358 x 1.05) = 200,926.
* fix(studio-server): an agent step that goes ahead of a first copy owns that file's undo
* fix(studio-server): undo of a step that went ahead of a pending first copy is all or nothing
* fix(studio-server): an undo after a step that rewrote a pending file in place still refuses
A went-ahead file now clears from a step's list only when the first read after its copy lands finds the original
bytes, not when its size and times look unchanged. The list of went-ahead files is kept on disk, so a restart
before the step closes, or after it deleted the file, keeps the refusal. Parts a Studio claim cuts from a step
keep the list too.
* fix(studio-server): a step ahead of a pending file refuses undo after Cmd+Z, restarts, in older apps
Cmd+Z stops at an open step whose only write so far is a pending file. A step recovered after the process died
keeps its list of pending files. A later Studio save's receipt no longer sets the start of a file a step went ahead
of. Every earlier point names a pending file as not kept, so no restore deletes it in any app version.
* fix(studio-server): a step that went ahead of a pending file never undoes, whatever bytes land
Bytes cannot tell steps apart: a file written A, B, then A again by two steps looked untouched and cleared both. A
step's list of files it went ahead of is now never cleared, so its undo refuses after a stalled read.
* fix(studio-server): a recovered step keeps its guard through a second crash; saves keep the start
The closed window is recovered before the reopen rewrites went-ahead.json, so a crash during recovery no longer
erases its list of pending files. A copy read before a step went ahead is the file's start whatever a later save's
receipt says it replaced.
* fix(studio-server): a start keeps receipts heard before its read; reopen writes all pending files
A copy read before a step went ahead follows only the save receipts heard by the moment of its read, so an early
save's original stays the start and a later save naming the step's bytes cannot replace it. The reopen rebuilds
the list of pending files in memory and writes it once, so a crash midway keeps every file on it.
* fix(studio-server): a first copy's start follows only receipts heard by its read and keeps them
Every adopted copy follows the save receipts heard by the moment of its read, with or without a step, so a later
save writing the original back cannot move the start. A small file's read is reported before its close, which a slow
drive can hold. Bytes a save replaced in a file history has no copy of yet stay through pruning until it does.
* fix(studio-server): bytes kept for a pending first copy count as start, not undo history
The bytes a save replaced are kept only for a file still owed its first copy, and they count as start rather than
undo history, so they never fold an unrelated edit out of the budget or stay for a file that never needed them.
* test(studio): a sealed preview's fx badge lights from what discovery read
* fix(studio): fx badges in a sealed preview show the clip's look, crop and duck
* test(studio): a paused untagged video is drawn as the export reads it
* fix(studio): a paused untagged video shows the colours the export renders, not BT.709
The still-copying heartbeat that check prints while it makes
browser-playable copies now passes the video's file name through
terminalText, so control characters show as escapes and the line stays
on one line. check --prepare-media prints a failed file's name the same
way, while the reason keeps its own lines.
The printed-text wiring test now also covers the media-copy progress
lines in checkBrowser.ts.
* feat(studio): dropping a clip onto main-track clips can insert it there
* fix(studio): say why a dropped clip went back, from the timeline's own notice
* fix(studio): keep the drag commit file under the line cap
* fix(studio): an insert never puts a linked clip on top of another clip in its lane
* fix(studio): trimming a main-track clip with Ripple on closes the gap
* fix(studio): a trim and its ripple shift join the edit queue together
* fix(studio): a delete and its ripple shift join the edit queue together
* fix(studio): a deleted clip leaves the preview at once so the next delete ripples from it
* fix(studio): the poster rendered for the next open no longer delays a clip's picture
Studio renders a missing preview poster for the next open as a low-priority composition thumbnail. Started in a free slot, it could not be overtaken: when the preview was ready before the timeline's clips existed (a sealed preview, on a first open), a clip's thumbnail asked for a moment later waited for a slot and landed about a second after the rest. Work nobody reads now starts only when no other thumbnail of its kind is running.
* test(studio): the thumbnail connection check expects the one request a held open starts
The check's proxy never answers a thumbnail render, and it counted two held requests per project: the composition's thumbnail and the poster rendered for the next open. That poster now waits for an idle bucket, so behind a render that never ends it never starts. One held request per project is what Studio sends; the check still fails when a hidden page keeps its request.
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy
Each file the first copy reads gets a deadline from when its read starts. A file that misses it is left owed and
adopted once the drive answers, keeping the bytes it read as the file's start, so the open finishes.
* fix(studio-server): a late first copy starts from receipts heard by its read, kept through pruning
A late first copy follows only the save receipts heard by the moment of its read, so a later save writing the
original back cannot move the start. The bytes a save replaced in a file still owed its first copy stay through
pruning, counted as start rather than undo history, until that copy is recorded.
* chore(studio-server): give the packed size budget its usual 5% headroom
* fix(studio): browser test scripts launch the Chrome Studio itself picks
The scripts in tests/e2e chose Chrome from their own list: a system Chrome before the downloaded one, and no version check, so an old system Chrome hung every script at browser start. They now use Studio's one finder (an environment variable first, then the downloaded Chrome, then a system Chrome new enough), moved to a file plain Node can load.
* test(studio): the Chrome finder test builds its path as the finder does
The finder joins the cache path with the host's separator, so on a Windows runner the stand-in never saw the path the test spelled with forward slashes.
* fix(media-use): a transcript cut named inside the project is never written through a linked folder
* chore(skills): refresh the media-use entry in the skills manifest
* fix(ci): release checks refuse a patch release that carries a breaking change
* fix(ci): a reverted breaking change no longer holds a patch release
* refactor(ci): each release check is its own function
* chore: release v0.9.78
* chore: list main's latest changes in the v0.9.78 notes
* chore: add the history fix to the v0.9.78 notes
* chore: list main's latest changes in the v0.9.78 notes
* revert(cli): hold the proxy fix and its Node floor for v0.10.0
This reverts commit 2960319749 (#8311), except a stale fallow-ignore line it had removed.
* chore(ci): allow the revert to delete the three files the proxy fix added
* fix(cli): show control characters as text in notices that repeat a failure reason
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): keep a usage hint on one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in prompt-log notices that repeat a failure reason
The source check now also reads clack.log calls. The five notices it
found (play and present port messages, the file approval notice) go
through terminalText.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* test(core): a Windows rename onto an existing folder gives up at once
* fix(core): a Windows rename onto a folder that exists fails at once instead of waiting 1.3 s
* test(core): a Windows rename onto an empty or unreadable folder target still waits
* fix(core): give up at once only on a folder target with files in it, and keep the wait otherwise
* fix(cli): a proxy that drops the connection fails a request once instead of retrying nonstop
Raises the minimum Node.js to 22.19, which undici 8 requires.
* fix(cli): drop the comments the comment-share check refuses
* docs: the engine, producer and CLI skill say Node.js 22.19
* test(engine): the dropping proxy matches its host exactly
* chore(skills): rehash the CLI skill after the merge
* docs(skills): keep the CLI skill within its size budget
* chore(skills): rehash the CLI skill after the trim
* fix(core): show text direction marks as visible text in printed lines
The unknown-command line and its suggestion follow the same rule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): move the unknown-command text test to a file of its own
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): write the direction mark in the test as an escape
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): run the unknown command text test with the default test group
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): keep the suggestion under an unknown command on one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed and project text as visible text in every line cli.ts prints
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed text as visible text in the missing-value and extra-argument lines
The two argument checks that print their own line now show control
characters and line breaks in the repeated word as visible text. JSON
output keeps the message as built. A usage error from the argument
parser prints on one line like the CLI's own.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(studio-server): history keeps undo steps in order when file times and its clock disagree
* fix(studio-server): a removal made while a turn was closed can join that turn
* test(lint): linear scans are held to characters read, not wall-clock time
* test(lint): keep one coarse 4 MB time bound so a backtracking regex still fails