You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(desktop): stabilize Plan catalog-refresh e2e after turn completion #3814
The catalog-refresh Plan-mode Desktop e2e scenarios can observe the fake backend response and then race with the live-turn control state. The Plan menu row becomes disabled while the test is trying to click it, causing a deterministic 30-second Playwright timeout in otherwise unrelated pull requests.
Evidence
This reproduced twice on #3789, whose diff against main contains no files under apps/desktop or packages/ui:
ef6171984 run: latest Plan intent still reaches the Host after a catalog refresh fails timed out on the second planRow.click(); the row had aria-disabled="true" with the running-task description.
b11da18e7 run: after rebasing onto current main, a failed catalog refresh keeps the committed Plan state visible timed out on its first planRow.click() because Playwright observed the row as not enabled.
Both runs passed planner, inventory, lint, format, build, release contracts, typecheck, workspace tests, Eval proxy, Runtime Host tests, and the separate windows_recovery job before Desktop e2e failed. The failures moved between adjacent scenarios, which points to a shared turn-settlement/test-barrier race rather than scenario-specific product behavior.
Expected
After the fake backend turn has actually settled, the Plan row should remain enabled long enough for these tests to exercise the intended pending/failed sessions.list catalog-refresh behavior.
Suggested closure
Establish a deterministic turn-completion barrier before arming the catalog-refresh latch and clicking Plan.
Preserve the test's real purpose: pending and failed catalog refreshes must not lose the latest Plan intent or committed state.
Run the focused catalog-refresh Plan scenarios repeatedly to prove the timing race is closed.
Run the full Desktop e2e suite.
Found while validating #3789; this issue is independent of that PR's Windows storage/ADS changes.
Fix proposed in #3836. It waits for Runtime Host to publish a known-empty runningTurnIds set before the Plan scenarios latch the next sessions.list read, preserving the original catalog-failure and queued-intent assertions.
The fix is implemented in #3836 and its hosted CI is green, including the full Desktop e2e suite. The Plan/catalog-refresh scenarios passed on the latest main merge-result. Keeping #3814 open until #3836 receives maintainer review and merges; then it can be closed with the merged PR.
Activity
liugddx commentedon Aug 26, 2026
Fix proposed in #3836. It waits for Runtime Host to publish a known-empty runningTurnIds set before the Plan scenarios latch the next sessions.list read, preserving the original catalog-failure and queued-intent assertions.
liugddx commentedon Aug 26, 2026
The fix is implemented in #3836 and its hosted CI is green, including the full Desktop e2e suite. The Plan/catalog-refresh scenarios passed on the latest main merge-result. Keeping #3814 open until #3836 receives maintainer review and merges; then it can be closed with the merged PR.