Repository navigation
fix(tests): Systems UI checks fail during native transitions - #2124
Conversation
Retain admitted controls from the owned window across the Systems proof journey. Keep native actions one-shot and bind capture metadata to the retained viewport. Cover delayed and missing target viewports with real same-process window tests. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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. What this changesThe PR retains window-scoped UI controls across Systems test transitions and verifies viewport identity and geometry around captures. Example: The Systems test expands navigation at a 1000 DIP window width while UI Automation temporarily omits SystemsPageScroll.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses concrete test-readiness races absent from main, with no definite introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe native UI test harness drives Companion against a synthetic Gateway, observes its owned window through UI Automation, and produces assertions, screenshots, and metadata. flowchart LR
A[Synthetic Gateway] --> B[Companion Systems page]
C[Systems test journey] --> B
B --> D[Owned window observations]
D --> E[Retained controls and viewport]
E --> F[Assertions and capture artifacts]
Technical reviewBest possible solution: Retain the admitted controls and bounded viewport checks in the existing test owners while preserving the complete Systems journey. Do we have a high-confidence way to reproduce the issue? Main contains separate readiness/action lookups and direct leaf-PID assertions that explain the reported failure paths; the historical failing binary and exact CI trace were not reproduced during this read-only review. Is this the best way to solve the issue? The repair uses existing wait, ancestry, and capture owners, preserves one-shot actions and independent assertions, and adds no competing production path; the transient UIA-provider omission itself remains unexplained. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2a2370699158. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 12:06 AM ET / 05:06 UTC. |
Simplify pure Systems readiness predicates without changing native actions, assertions, retained-window ownership, or wait limits. Reuse the exact 13-line Usage preview-expansion hunk authored in 4122e0f, before locating the main session. Keep the existing fixture data, geometry assertions, and test timeouts. Co-authored-by: Copilot App <[email protected]>
Use semantic theme-aware picker text, reject tail overshoot, and preserve native test readiness and capture identity. Usage pagination is already supplied by main through openclaw#2124. Co-authored-by: Copilot App <[email protected]>
Use semantic theme-aware picker text, reject tail overshoot, and preserve native test readiness and capture identity. Usage pagination is already supplied by main through openclaw#2124. Co-authored-by: Copilot App <[email protected]>
* feat(chat): open tool details beside native chat Co-authored-by: Copilot App <[email protected]> * fix(tests): preserve chat assertions through details wrapper Locate the mounted conversation by its stable automation ID instead of assuming the former root shape. Preserve queued-message and composer color checks and assert the conversation wrapper remains transparent. Co-authored-by: Copilot App <[email protected]> * fix(chat): retire unverified details on profile changes Distinguish explicit identity events from bootstrap refreshes. Retire Details until reconnect when identity changes before the first verified baseline. Cover delayed and failed initial reads, bootstrap recovery and same-profile revalidation; document the fail-closed tradeoff. Co-authored-by: Copilot App <[email protected]> * fix(chat): refine tool details layout and keyboard access Keep the open-details action inside tool cards and match the Copy glyph size. Align pane backgrounds with a full-height separator and theme-aware output. Preserve reader state through availability changes, avoid empty details, and include compact navigation and localized resize instructions. Co-authored-by: Copilot App <[email protected]> * test(chat): recognize in-card tool detail layout Keep reading-column, scrolling, divider, and nested-tool assertions while discovering sections through the action layout. Assert the reserved command-input inset independently. Co-authored-by: Copilot App <[email protected]> * fix(chat): stabilize native popup and tail validation Use semantic theme-aware picker text, reject tail overshoot, and preserve native test readiness and capture identity. Usage pagination is already supplied by main through #2124. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]>
…t, and Systems and Automations fixture checks fail during re-renders (#2146) * fix(automations): remove confirmation can open with focus on body text, and Systems and Automations fixture checks fail during re-renders The Automations remove confirmation queued its Cancel focus from Opened, which raced WinUI's own initial-focus step and sometimes left focus on the selectable body text. DialogInitialFocus redirects the first focus entering the dialog to Cancel inside WinUI's focus step, retries after layout while Cancel is not yet realized or focusable (a dialog opened right after another closed), and stops on real user input. #2124's ownership checks ran as one-shot asserts inside polling waits. While Systems and Automations re-render, a just-found element can be torn down before ownership is proven. NativeUiOwnership.Classify now returns Owned, Unproven or Foreign: polls keep polling on Unproven and still fail immediately on Foreign. IsOwnedDescendant remains Owned-only. Systems captures re-find their controls inside the wait. Co-authored-by: Copilot App <[email protected]> * fix(tests): dialog focus test no longer assumes Cancel exists when Opened fires CI showed ContentDialog.Opened firing before the Cancel template part is realized even on the first open. Every confirmation now uses the timing-independent check: the first focus inside the dialog once Cancel exists is Cancel, Cancel keeps it, and no other element takes focus afterwards. The "later focus is never stolen" proof focuses the body after Cancel holds focus and requires it to stay. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]>
Required host validation and targeted CI proof passed; overall CI is still awaiting the ordinary UI rerun. Head
1c6cd266fa79331311987f876f6d0a6ad8e68a2d, treea8849401c05fa52641d7e9732d8e8ef05f06ee8e, base2a23706991584d5bcb813f40deda4cd2883667bc. No merge-readiness or main-green claim.What Problem This Solves
Fixes: Systems native checks can lose controls during transitions, and Usage hero proof can look for the main session outside the ten-row preview.
User Impact
User impact: no shipped product behavior changes. This five-file test/validation update preserves the native journeys, ownership, geometry, visibility and content assertions.
Why This Change Was Made
Systems retains the window-scoped observations admitted by its existing waits, keeps native actions one-shot, and binds capture metadata to the retained viewport. Pure readiness predicates are simplified without changing their conditions. Usage reveals the remaining loaded sessions through the existing Show more action before locating the main row; its exact 13-line hunk is reused from
4122e0f759355429a30a3f3e14a7c650b385db08.Individual wait limits remain 20 seconds, but capture adds bounded viewport admission, so aggregate potential waiting is not unchanged. The original transient UIA-provider omission cause remains unknown.
Evidence
On exact
1c6cd266/a8849401, the full build and both unfiltered host suites passed once: Shared 5,847 passed / 29 policy skips / 0 failed and Tray 6,301 passed / 0 skipped / 0 failed. Both wrapper exits were 0; the checkout stayed clean and normal-profile metadata delta was 0.Run
43180925681, attempt 1: current-tree mock Gateway CI proof passed 55/55 profile/application cases and 124/124 fixture UI cases, zero skipped. Systems Daily passed in 25.603s and Usage Hero in 40.364s. All three native ownership cases also passed in the ordinary UI lane. Release correlation 2/2, Release reader 2/2, and stable-profile compatibility 1/1 passed.The exact-head Hanselman contexts completed both stages with no P0-P3 code findings. Host-reported model IDs were
claude-opus-5.5(high/default context) andgpt-6-astra(high/long context); model self-identification was not independently trusted. Their stale-body concern has been reconciled.Remaining CI gate: the first ordinary UI attempt failed an unchanged initial-draft assertion before send. The three ownership cases passed several minutes later. The landing coordinator owns the UI rerun; attempt 2 is still in progress at this update. No claim that all CI is green.
Preserved failures and historical proof limits
a8849401host attempt failed real-profile metadata admission. The drift cause remains unknown; that attempt is not retroactively accepted.df4f2d21proof is historical, not current acceptance. Its Tray wrapper exited 1 on discovery 6,265 versus execution 6,301; source-backed reconciliation admitted the unchanged original TRX/native exit 0 without rerunning tests or changing assertions. Earlier targeted Debug/unsigned Release frames were not a full interactive-pool proof.Change Type
Scope
winnodeExact five-file scope
tests/OpenClaw.GatewayFixtureHost/OpenClaw.GatewayFixtureHost.csprojtests/OpenClaw.Tray.UITests/GatewayFixtureSystemsUiTests.cstests/OpenClaw.Tray.UITests/GatewayFixtureUiTests.UsageResponsive.cstests/OpenClaw.Tray.UITests/NativeUiOwnershipTests.cstests/OpenClaw.Tray.UITests/OwnedWindowCapture.csNo composer/product changes or diagnostic twelve-row fixture are included.
Required proof pools
windows-winui-interactive: targeted current-tree Systems/Usage and native ownership CI evidence passed. The full interactive/accessibility pool is not claimed complete.Validation
These host commands ran on
1c6cd266once each. Only private result-directory paths are abbreviated; there was no filter or expected-count override. The existing wrapper invokesdotnet test --no-build, which implies no restore.All three profile roots were isolated,
OPENCLAW_STATE_DIRand the legacy local-data override were cleared, and TEMP/PATH changes were process-local. Shared skips were the verified opt-in categories; neither host suite was retried. Original TRX/invocation/profile records remain private, not public evidence links.SystemsDaily_InsetAndExpandedNativeFramesUsageHero_RealShellCapturesCardAndRangeInLightAndDarkNativeUiOwnershipTestscasesgit diff --checkReal Behavior Proof
1c6cd266fa79331311987f876f6d0a6ad8e68a2d; CI synthetic merge5d48f99e805485ee2a4f9e6e387b00806d0fabc2, parents2a237069and1c6cd266. Both have exact treea8849401c05fa52641d7e9732d8e8ef05f06ee8e.Yes/No/N/A) Yes for linked CI run/job evidence. No new local screenshots or private artifacts uploaded.Security Impact
Yes/No) No.Yes/No) No.Yes/No) No.Yes/No) No product surface change; friend access is between test assemblies.Yes/No) No product change; test observations are scoped to the owned window.Yes, explain the risk and mitigation: N/A.Compatibility and Migration
Yes/No) Yes.Yes/No) No product configuration changes.Yes/No) No.Review Conversations
Current validation/review conversations remain for the landing coordinator to reconcile; this update does not claim they are resolved.