Skip to content

test(ui): stabilize workspace pane readiness after navigation - #1601

Merged
RomneyDa merged 1 commit into
fix/main-ci-flakesfrom
openclaw/why-the-first-two-attempts-flaked
Oct 2, 2026
Merged

RomneyDa merged 1 commit into
fix/main-ci-flakesfrom
openclaw/why-the-first-two-attempts-flaked

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Why this is stacked

Run 36980555070 attempt 1 failed before selection because WorkspaceNavHome was absent from the UI Automation tree. #1597 waits for selection after calling Find("WorkspaceNavHome"), so that failure still occurs before its new wait can help. This PR is based on fix/main-ci-flakes to 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: passed
  • Autoreview (gpt-5.6-sol, high): clean after one accepted synchronization finding was fixed
  • Crabbox native Windows validation: Not verified / blocked before build
    • provider: Azure
    • target/mode: Windows / normal
    • lease: cbx_9990b5d062bb (quick-shrimp, Standard_D4ads_v6, westus2)
    • focused run: run_2be1124fe37e06c71d84c9d2f2f1ef97
    • prerequisite run: run_1d0bf4fd63b12786cc454dacddec3902
    • blocker: the fresh image had neither .NET nor WinGet; scripts/setup-dev.ps1 could not install prerequisites
  • Exact-head Build and Test run 36992992270, attempt 2: passed
    • UI, functional, and accessibility tests: passed, including the changed workspace proof
    • Core and CLI tests: passed on rerun; attempt 1 had an unrelated store-migration prepare.lock contention timeout
    • Tray, setup, integration, E2E, packaging, proof-pool contracts, and CI Gate: passed

Real behavior proof

  • Current-head hosted UI proof: passed in UI, functional, and accessibility tests in run 36992992270
  • Visual proof: not applicable because no product UI behavior or rendering changed

Rubber-duck review

Autoreview rejected the first helper because it could accept stale pre-navigation pane state. The final implementation requires WorkspaceNavHome to remain visible for 500 ms and reopens the pane if it closes during that stability window.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa RomneyDa added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 6:00 AM ET / 10:00 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: dea1689e353c6be857cd53227393f6ffaad73113

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused synchronization change with preserved assertions and no concrete introduced defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its changed native test helper has no completed current-head Windows run in the captured evidence; the body explicitly records that validation blocker.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its changed native test helper has no completed current-head Windows run in the captured evidence; the body explicitly records that validation blocker.
Evidence reviewed 7 items Introduced change: The pinned introduction delta adds one readiness call and a bounded helper requiring 500 ms of Home visibility; it changes only the Workspace UI test.
Current main still lacks readiness synchronization: Current main navigates to chat and immediately looks up Home. It contains no corresponding pane-readiness helper at this call site.
Stacked work is complementary: #1597 (fix(ci): Build and Test flakes when Workspace keyboard input or console tail polling runs late) waits for selection after the Home lookup, leaving the earlier missing-control failure untreated.
Findings None None.
Security None None.

How this fits together

Workspace 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production versus test growth production +0, tests +33 The added synchronization is confined to one native UI test file.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a bounded improvement to a timing-sensitive native UI test, with no product behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its changed native test helper has no completed current-head Windows run in the captured evidence; the body explicitly records that validation blocker.

Label justifications:

  • P2: This is a bounded improvement to a timing-sensitive native UI test, with no product behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its changed native test helper has no completed current-head Windows run in the captured evidence; the body explicitly records that validation blocker.

Evidence

What I checked:

Likely related people:

  • karkarl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 00fa1cf into fix/main-ci-flakes Oct 2, 2026
37 of 40 checks passed
@RomneyDa
RomneyDa deleted the openclaw/why-the-first-two-attempts-flaked branch October 2, 2026 10:22
@RomneyDa RomneyDa removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 2, 2026
RomneyDa added a commit that referenced this pull request Oct 2, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant