Please comment to claim before starting; check current assignees and linked PRs.
Context
The hosted Engine E2E shard failed at test/playwright/e2e/webdesktop/Apps.spec.mjs:110. Documents was still visible after the test clicked its Close button. The trace has animated-hiding-showing on the window at input time, with the click at the launcher end of the opening animation.
The Problem
The test uses the expected width and workspace bounds as its readiness check. Documents can satisfy those checks before the opening animation moves its Close button out of the click's target.
In a headless Chromium replay on the same checked-out tree, 48e3b5857930b40ee4e8fc10534aefad57020c70, pause the running opening transition over Documents, press Close, then let the animation move the button before releasing at the original point. The trusted pointer-down reached Close, pointer-up landed elsewhere, and Close received no click. After the worker's mount flight settled, a trusted click on the same button closed the same window.
The Architectural Reality
The existing test describes its geometry assertion as measuring the settled window. Dialog#animateShow can display the window during opening, and Component#startMountFlight holds the App Worker latch until the mount and animation complete. The neighboring PhoneAndTouch.spec.mjs already uses the latch before closing Mail. Existing guard
The Fix
Use the adjacent test's worker-side check in the existing Apps loop. Resolve the real dialog ID and wait for its mounted, visible worker state with mountFlight === null before measuring or clicking Close.
Acceptance Criteria
Out of Scope
Dialog motion and native device acceptance remain with their existing desktop work.
Related
#21198 owns the desktop lifecycle. The earlier Mail-only fix is in #21822; this ticket covers the Apps loop.
unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: 40386c15-f92b-4bd1-a4d5-f27a3cb96f76
Live sweep at 2026-11-22 01:52 UTC checked the latest 20 open issues and open/closed desktop close searches. 45 Engine issues were open. The prior Mail ticket and window lifecycle ticket were read for scope. The latest 30 A2A messages and four Memory Core matches supplied no competing owner. Three open self-assignments concern other behavior.
Please comment to claim before starting; check current assignees and linked PRs.
Context
The hosted Engine E2E shard failed at
test/playwright/e2e/webdesktop/Apps.spec.mjs:110. Documents was still visible after the test clicked its Close button. The trace hasanimated-hiding-showingon the window at input time, with the click at the launcher end of the opening animation.The Problem
The test uses the expected width and workspace bounds as its readiness check. Documents can satisfy those checks before the opening animation moves its Close button out of the click's target.
In a headless Chromium replay on the same checked-out tree,
48e3b5857930b40ee4e8fc10534aefad57020c70, pause the running opening transition over Documents, press Close, then let the animation move the button before releasing at the original point. The trusted pointer-down reached Close, pointer-up landed elsewhere, and Close received no click. After the worker's mount flight settled, a trusted click on the same button closed the same window.The Architectural Reality
The existing test describes its geometry assertion as measuring the settled window.
Dialog#animateShowcan display the window during opening, andComponent#startMountFlightholds the App Worker latch until the mount and animation complete. The neighboringPhoneAndTouch.spec.mjsalready uses the latch before closing Mail. Existing guardThe Fix
Use the adjacent test's worker-side check in the existing Apps loop. Resolve the real dialog ID and wait for its mounted, visible worker state with
mountFlight === nullbefore measuring or clicking Close.Acceptance Criteria
npm run test-e2e -- test/playwright/e2e/webdesktop/Apps.spec.mjs --grep 'every app opens' --workers=1and report the result. Show that the guard waits through the opening phase.Out of Scope
Dialog motion and native device acceptance remain with their existing desktop work.
Related
#21198 owns the desktop lifecycle. The earlier Mail-only fix is in
#21822; this ticket covers the Apps loop.unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: 40386c15-f92b-4bd1-a4d5-f27a3cb96f76
Live sweep at 2026-11-22 01:52 UTC checked the latest 20 open issues and open/closed desktop close searches. 45 Engine issues were open. The prior Mail ticket and window lifecycle ticket were read for scope. The latest 30 A2A messages and four Memory Core matches supplied no competing owner. Three open self-assignments concern other behavior.