Skip to content

chore: merge train 20261105-2342 - #5393

Merged
tale-code-bot merged 4 commits into
mainfrom
train-20261105-2342
Nov 6, 2026
Merged

tale-code-bot merged 4 commits into
mainfrom
train-20261105-2342

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: 4d3ec27

The stable line's merge train: the four commits between f21fd15a4 (the merge of #5389) and the cut.

All four fix what main ships, so none moved to feature-train.

The first three commits come from a person. yannickmonney authored and committed them on 2026-11-05 at 18:31:23Z and pushed them straight onto train, so the Reviewer did not land them. They carry no Task: line and no closing keyword.

  • aacdb1ae2 stops a Session Manager page from flashing masked rows before an empty table. Its routes now load what their first frame depends on, as the platform's routes do. Each waits at most a second (waitForRead), and a list with no rows opens on its empty state. 28 files in services/session-manager/app.
  • 0f1fe10c0 bakes the app's frame into dist/index.html, the way the platform bakes its boot shell, so a page is no longer blank until the scripts load.
    • scripts/prerender-boot-shell.ts renders it after the client build, both in bun run build and in the Dockerfile.
    • first-paint.spec.ts adds four Playwright tests.
    • Its one bun.lock line gives session-manager react-i18next 17.0.2, a version the lock file already resolves.
  • ee243d4f5 makes scripts/dev.ts stop on a Bun older than 1.4.1. Below that, Vite's proxy passes no WebSocket message to the backend.

4d3ec279f (TALE-465, closes #5390) patches @radix-ui/react-toast 1.2.15 with upstream's fix (radix-ui/primitives#3794). The fix clears a toast's close timer when the toast unmounts.

  • The bug. A timer left running could fall due after a jsdom test file's teardown. It then threw "document is not defined" and failed @tale/session-manager#test:ui after every test had passed.
  • The proof. toaster.test.tsx gains three tests that pin the fix.
  • CI runs longer. patches/** is in turbo's globalDependencies, so this pull request's first Checks run misses turbo's cache on every task.

Checked before departure, without the credential:

  • At ee243d4f5 (run 2bff2732, 19:52–20:01Z):
    • exit 0: commitlint, lint:manual, lint:links, lint:conflicts, the frozen install, format:check and knip:check;
    • in services/session-manager, exit 0: oxlint --type-aware and tsc --noEmit;
    • tests: 19 UI test files near the change (363 tests) and the guards (47 tests) passed;
    • turbo typecheck build: 26 of 28 tasks passed, the session-manager build and its prerender among them. @tale/cli#build and @tale/web#build failed on downloads alone, and neither reads a changed file.
  • At 4d3ec279f (run 8f604a67, 20:18–20:23Z):
    • The frozen install exits 0 and applies the patch to the only copy of the package.
    • exit 0: commitlint, lint:manual, lint:links, lint:conflicts, format:check, knip:check and oxlint --type-aware in packages/ui.
    • Tests:
      • toaster.test.tsx: 10 of 10;
      • the 10 packages/ui test files that raise a toast: 145 of 145;
      • the platform's changelog-toast-trigger.test.tsx: 4 of 4;
      • session-manager's whole UI suite: 177 files and 2589 tests in 111 s, with no unhandled error.
  • Not run on the worker:
    • first-paint.spec.ts. The worker has no Chromium 1234, so the E2E job Playwright (session-manager) is the first to run it.
    • The session-manager Docker image. The worker has no Docker, so Session Manager container test is the first to build it.
    • The dev server's Bun floor.
    • toaster.browser.test.tsx, which the Checks job Browser runs.
    • The new toast tests against the unpatched package.
    • turbo typecheck build at 4d3ec279f, which the Reviewer's gate ran when it landed the commit.
    • The platform's whole UI suite, and Windows.

Commits (4):

  • fix(session-manager): open a page with no rows on its empty state
  • fix(session-manager): paint the frame of the app before any script
  • fix(session-manager): refuse to run the dev server on Bun before 1.4.1
  • fix(deps): clear a toast's close timer when it unmounts

Task keys: TALE-465.

It rebase-merges when green (auto-merge). The Coder's merge-train role (TALE-234) works it until it is green. While it is open, no other stable-line train departs.

yannickmonney and others added 4 commits November 5, 2026 19:31
A page of the Session Manager drew its loading layout first: every read
started when its component mounted, so the first frames of the Proxies
and Secrets tables were their toolbar and six masked rows, and the empty
answer replaced them a frame or two later with the small empty state.
On a local server that was a flicker on every load of an empty table;
the sessions list did the same with its masked rows.

The routes now load what their first frame depends on, as the
platform's do: the root route waits for the state of the app (the
counts and the browser), the page of a session for the session and the
settings pages for the settings, each for at most a second
(waitForRead), after which the page shows that part masked as before;
the lists are asked for with their page and not waited for. While a
list is on its way the counts decide: a list with no row is its empty
state at once, without a toolbar, and one with rows is as many masked
rows as there are rows (up to twelve). A read a loader made a moment
before its page mounted is not asked for again (a staleTime of a
second), while a window or a connection that comes back still asks at
once, so a change an assistant made elsewhere shows as before. A read
that fails never fails the route: the page shows its own failure.

The router tests open each list page with a list that never answers and
check that no masked row or search box ever appears, only the empty
state; they fail without the loaders.
The page the server sent had an empty #root: every address was blank
until the scripts had loaded and React had drawn the whole page, which
the platform avoids with a boot shell.

The build now bakes the frame of the app into dist/index.html, as the
platform bakes its boot shell: the rail with its tiles masked on a
computer, the tab bar with its tabs masked on a phone, an empty page
beside them, every box where the live frame puts its own. It is rendered
from AppFramePlaceholder by scripts/prerender-boot-shell.ts after the
client build (bun run build and the Dockerfile), holds no word (the dev
server brings the styles with the scripts) and is hidden from assistive
technology; the dev server injects the same shell. main.tsx resolves the
first route before React's first commit, so that commit replaces the
shell with the page itself, data included, instead of a router with no
page yet.

first-paint.spec.ts holds it in the browser: the page with scripts off
is the shell, its masks where the live rail draws its icons, and an
empty Sessions, Proxies or Secrets page goes from the shell straight to
its empty state, every frame recorded; the four tests fail on the build
before this change.
bun run dev runs Vite under Bun, and Vite's proxy carries the live
view's WebSocket to the backend. On Bun 1.3 (1.3.10 and 1.3.12 tried)
that proxy answers the handshake and then passes no message either way:
the page of a running session stays at "Connecting to the browser", its
address bar stays disabled and nothing in it responds. With Bun 1.4.2,
the version the root package.json pins, the same dev server shows the
picture and the address bar, the clicks and the keys reach the page; the
built server works with either.

scripts/dev.ts now stops at once on a Bun older than 1.4.1, the floor
the platform's setup check holds, and says to upgrade. Both of its
processes run on that Bun (process.execPath), not on whatever bun the
PATH names.
Radix's toast 1.2.15 arms a close timer when a toast opens and clears it
on a pause or a restart, but not when the toast unmounts. A toast that a
newer one replaced, or that unmounted with its test's tree, left the
timer running, and in a jsdom test file it could fall due after the
environment's teardown: its handler read `document` and threw
"ReferenceError: document is not defined", an uncaught exception that
failed @tale/session-manager#test:ui after every test had passed.

Patch @radix-ui/react-toast with upstream's fix (radix-ui/primitives#3794,
first released in 1.2.18): an effect that clears the close timer when the
toast unmounts. The Toaster's tests pin it. In the apps, which mount the
Toaster once at their root, the stale timer only dismissed a toast the
store had already dropped, so nobody sees a change.

Closes #5390
Task: TALE-465
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Nov 5, 2026
@tale-code-bot
tale-code-bot enabled auto-merge (rebase) November 5, 2026 23:43
@tale-code-bot
tale-code-bot merged commit a94d0a3 into main Nov 6, 2026
94 checks passed
@tale-code-bot
tale-code-bot deleted the train-20261105-2342 branch November 6, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train A merge train's pull request into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(session-manager): a toast's close timer outlives the UI test environment and fails the run

2 participants