Skip to content

A full page load in the pairing-reload window never mounts the app in scenario runs #36536

Done

Description

@farseenmanekhan1232

What happened

In e2e scenario runs, a full page load issued in the window right after the pairing sign-in never mounts the app — the screen stays on the static index.html splash (#boot-shell-card) — and the outcome varies between runs of the same steps:

  • The page never mounts: session, /.well-known/t3/environment, and the HTTP shell snapshot all return 200, but the WebSocket request is answered only ~39 s later and the router never renders.
  • The navigation itself fails: page.goto to the deep path is interrupted by the app's own reload to /.
  • Occasionally it boots fine, which makes any scenario that deep-links after sign-in flaky.

Diagnosis

Unconfirmed. The pair route's onAuthenticated does router.history.replace("/") followed by window.location.reload(), so a goto issued as soon as the URL leaves /pair collides with the app's own reload — observed directly as the interrupted navigation. When the goto wins the race instead, the page it lands on kills the first boot's connection mid-handshake; the follow-up page then has session and shell over HTTP but appears to wait on the socket, whose upgrade the server answers only ~39 s later. Whether the server holds the second upgrade behind the interrupted one, or the client never completes the RPC handshake, needs a look at the upgrade path in apps/server/src/ws.ts. Real users likely don't hit this: a hard refresh closes a fully established socket, not a booting one.

Steps to reproduce

  1. In a scenario: await t3.open(); then await browser.waitForURL(/^(?!.*\/pair)/); then await app.open("/settings/keybindings"); then tap any signed-in control with a generous timeout.
  2. Run it: cd scripts && pnpm exec e2e run scenarios/<file>.e2e.ts.
  3. Observed across three runs: a never-mounting splash (the tap times out; screen stays at 3 splash nodes), and ENGINE_FAILURE on the second app.open.

Version

0.1.9 (commit 2e0bd97); also observed on the branch in PR #36532, which does not touch the boot or connection paths.

Environment

Arch Linux (omarchy), Linux 7.2.15, Node v26.13.1, e2e 0.23.0, bundled Chromium 156.0.8078.4

Evidence

Never-mounting run (second page load at 12:16:04, first page killed mid-boot):

[12:16:10.272] http.span=6ms:    GET /api/auth/session → 200
[12:16:11.089] http.span=7ms:    GET /.well-known/t3/environment → 200
[12:16:11.223] http.span=6ms:    GET /.well-known/t3/environment → 200
[12:16:11.447] http.span=62ms:   GET /api/orchestration/shell → 200
[12:16:12.073] http.span=15ms:   GET /api/auth/session → 200
[12:16:12.755] http.span=54ms:   POST /api/observability/v1/traces → 204
[12:16:14.328] http.span=16ms:   POST /api/observability/v1/traces → 204
[12:16:38.171] http.span=18ms:   POST /api/observability/v1/traces → 204   ← ~24 s with no other request
[12:16:50.401] http.span=39101ms: GET /ws → 101

Screen 30+ s after that load, still:

#root document "T3 Code (Dev)"
 #n3002 "T3 Code splash screen"
  #n3003 image "T3 Code"

Interrupted-navigation run (same steps, 185 ms into the second load):

3. ✗ app.open /settings/keybindings — ENGINE_FAILURE
   page.goto: Navigation to "http://127.0.0.1:36077/settings/keybindings"
   is interrupted by another navigation to "http://127.0.0.1:36077/"

Related issues

#36534 covers the t3.open(path) helper race that makes scenarios deep-link in the first place. Found while proving #35787 (PR #36532).

Fix applied or workaround

Scenario navigation stays client-side after the sign-in (no second full page load); PR #36532's scenario does that.

Filed by

claude (glm-5.3-cf) following the t3 triage template; the interactive t3 triage agent flow could not run from this session.

Activity

  1. juliusmarminge commented on Nov 23, 2026

    @juliusmarminge
    Member

    Fixed by #38561, now on main: Web scenarios now install authenticated session cookies before opening the app, so the reported deep-link sequence no longer loads the pairing page or races its reload into an interrupted navigation or stuck splash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions