Problem#
Launch videos for release threads were hand-built HTML mocks of the app. They drift from the real UI as it changes, and every screen they show has to be redrawn by hand.
Change#
launch-video skill (.agents/skills/launch-video/):
- A staging script runs the real server and web client with fictional data. Machine names and types are made up, and no paid model is involved.
- It drives the flow in a browser and freezes the page at each beat into static HTML (
scripts/snapshot.mjs).
- The story animates those frozen pages: camera, cursor, pops, glows, typing and captions (
assets/kit.js). Frames render deterministically in headless Chromium (scripts/capture.mjs, render.sh, sheet.sh).
scripts/fake-claude.mjs stands in for the claude CLI through the Claude provider's binaryPath. Staged threads get Claude's logo, models, thinking and tool rows from scripted turns, and a script step can call a T3 MCP tool for real.
stagings/linked-environments/ is the worked example: two linked servers, a real cross-machine delegate_task, the read-only linked thread, and Connect to interact.
- The hand-built mock template is kept for screens a staging can't produce.
Server: T3CODE_ENVIRONMENT_LABEL and T3CODE_ENVIRONMENT_MACHINE_KIND override the detected environment label and machine kind.
- Scenarios now set both. Their
hostnamectl shim never took effect on Linux, because the server puts the login shell's PATH first, so scenario captures showed the real machine's name.
machine-switch-keeps-selected-models opens the Environments list view first. The map became the default view in #39445 and has no row actions menu, so the scenario was failing on main.
Dev replay agent: a t3/mcp_call frame calls a T3 MCP tool from a recording. <var:name> placeholders fill from T3_DEV_REPLAY_VARS. Two new recordings stage a cross-machine delegation.
Verification#
vp run check:changed passes.
- New
ServerEnvironment test for the overrides.
dev-replay-agent tests pass.
machine-switch-keeps-selected-models passes with two servers both named "Scenario".
- The linked-environments staging and render run end to end on this branch.
Done with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Other scenarios#
All 64 scenario measurements match
main.All 64 scenario measurements
short turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsshort turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsBaseline:
d984b71· PR result:4a426a7· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.