Repository navigation
chore: merge train 20261105-2342 - #5393
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cut: 4d3ec27
The stable line's merge train: the four commits between
f21fd15a4(the merge of #5389) and the cut.aacdb1ae2fix(session-manager): open a page with no rows on its empty state0f1fe10c0fix(session-manager): paint the frame of the app before any scriptee243d4f5fix(session-manager): refuse to run the dev server on Bun before 1.4.14d3ec279ffix(deps): clear a toast's close timer when it unmounts (TALE-465, closes test(session-manager): a toast's close timer outlives the UI test environment and fails the run #5390)All four fix what
mainships, so none moved tofeature-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 noTask:line and no closing keyword.aacdb1ae2stops 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 inservices/session-manager/app.0f1fe10c0bakes the app's frame intodist/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.tsrenders it after the client build, both inbun run buildand in theDockerfile.first-paint.spec.tsadds four Playwright tests.bun.lockline gives session-managerreact-i18next17.0.2, a version the lock file already resolves.ee243d4f5makesscripts/dev.tsstop 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-toast1.2.15 with upstream's fix (radix-ui/primitives#3794). The fix clears a toast's close timer when the toast unmounts.@tale/session-manager#test:uiafter every test had passed.toaster.test.tsxgains three tests that pin the fix.patches/**is in turbo'sglobalDependencies, so this pull request's first Checks run misses turbo's cache on every task.Checked before departure, without the credential:
ee243d4f5(run2bff2732, 19:52–20:01Z):lint:manual,lint:links,lint:conflicts, the frozen install,format:checkandknip:check;services/session-manager, exit 0: oxlint--type-awareandtsc --noEmit;typecheck build: 26 of 28 tasks passed, the session-manager build and its prerender among them.@tale/cli#buildand@tale/web#buildfailed on downloads alone, and neither reads a changed file.4d3ec279f(run8f604a67, 20:18–20:23Z):lint:manual,lint:links,lint:conflicts,format:check,knip:checkand oxlint--type-awareinpackages/ui.toaster.test.tsx: 10 of 10;packages/uitest files that raise a toast: 145 of 145;changelog-toast-trigger.test.tsx: 4 of 4;first-paint.spec.ts. The worker has no Chromium 1234, so the E2E jobPlaywright (session-manager)is the first to run it.Session Manager container testis the first to build it.toaster.browser.test.tsx, which the Checks jobBrowserruns.typecheck buildat4d3ec279f, which the Reviewer's gate ran when it landed the commit.Commits (4):
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.