Repository navigation
test(ui): stabilize workspace pane readiness after navigation - #1601
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 6:00 AM ET / 10:00 UTC. ClawSweeper reviewWhat this changesThe PR makes a native Workspace test reopen a closed sidebar and wait for stable visibility before selecting Home. Merge readiness✅ Ready for maintainer review This remains a useful, distinct synchronization fix: neither current main nor the stacked PR waits for pane readiness before looking up Home. No concrete introduced defect was found, and the MEMBER-authored PR requires maintainer handling. Priority: P2 Review scores
Verification
How this fits togetherWorkspace UI tests drive the isolated Windows app through navigation and UI Automation. This readiness check sits between chat navigation and the assertions that Home selection preserves the existing draft. flowchart TD
A[Native UI test] --> B[Chat navigation]
B --> C{Home control visible}
C -->|No| D[Reopen sidebar]
D --> C
C -->|Yes| E[Wait for stable visibility]
E --> F[Select Home and verify draft]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep pane readiness local to this draft-preservation test while retaining the separate native keyboard and focus assertions. Do we have a high-confidence way to reproduce the issue? Unclear: source confirms that composer readiness does not establish sidebar readiness, but the reported intermittent missing-Home failure was not reproduced in this read-only review. Is this the best way to solve the issue? Yes: the helper establishes the pane state needed by the existing selection assertion without changing application behavior or weakening separate keyboard coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d090a8110fa3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…le tail polling runs late (#1597) * fix(ci): Build and Test flakes when Workspace keyboard input or console tail polling runs late - WizardConsoleTailTests: snapshot cursors inside onMessage so a late test continuation cannot record the next 500 ms poll. - WorkspaceWindowProofTests: wait for selection state across sidebar rebuilds instead of one-shot re-finds; foreground the Hub and wait for keyboard focus before SendKeys. - AccessibilityAppFixture: add EnsureHubForegroundAsync. * test(ui): report focus holder when Workspace pane toggle Space is lost * docs: track unresolved main CI failures * test(ui): isolate sidebar draft proof from synthetic keyboard delivery Retain Space activation and focus-transfer coverage in the dedicated native navigation test. Document the remaining session-selected keyboard uncertainty. Co-authored-by: Copilot App <[email protected]> * test(ui): foreground reopen pane before native keyboard input Use the existing foreground-and-focus helper for reopen-button Space and Tab. Local validation remains in progress; push requested to run CI in parallel. Co-authored-by: Copilot App <[email protected]> * test(ui): retain activation readiness before sidebar invocation Restore the foreground/focus barrier when switching from SendKeys to UIA Invoke. CI exposed a COM failure without that barrier. Do not suppress or retry invocation errors. Co-authored-by: Copilot App <[email protected]> * test(ui): harden workspace pane synchronization (#1601) --------- Co-authored-by: Karen Lai <[email protected]> Co-authored-by: Copilot App <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
Summary
NavigationViewcloseWhy this is stacked
Run 36980555070 attempt 1 failed before selection because
WorkspaceNavHomewas absent from the UI Automation tree. #1597 waits for selection after callingFind("WorkspaceNavHome"), so that failure still occurs before its new wait can help. This PR is based onfix/main-ci-flakesto avoid duplicating #1597's broader CI-flake fixes.Required proof pools
none: this changes test synchronization only and does not change product UI behavior.Validation
git diff --check: passedgpt-5.6-sol, high): clean after one accepted synchronization finding was fixedcbx_9990b5d062bb(quick-shrimp,Standard_D4ads_v6, westus2)run_2be1124fe37e06c71d84c9d2f2f1ef97run_1d0bf4fd63b12786cc454dacddec3902scripts/setup-dev.ps1could not install prerequisitesBuild and Testrun 36992992270, attempt 2: passedprepare.lockcontention timeoutReal behavior proof
UI, functional, and accessibility testsin run 36992992270Rubber-duck review
Autoreview rejected the first helper because it could accept stale pre-navigation pane state. The final implementation requires
WorkspaceNavHometo remain visible for 500 ms and reopens the pane if it closes during that stability window.