Skip to content

test: establish Windows accessibility baseline - #1971

Merged
RomneyDa merged 7 commits into
openclaw:mainfrom
DonnieFi:investigate/1945-accessibility-baseline
Nov 5, 2026
Merged

RomneyDa merged 7 commits into
openclaw:mainfrom
DonnieFi:investigate/1945-accessibility-baseline

Conversation

@DonnieFi

@DonnieFi DonnieFi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Addresses accessibility naming and keyboard reachability for #1945, originally reported by @fire0220 and requested by @DonnieFi. This draft uses existing localized labels for Bindings Refresh and Config Save, adds a localized name for Config Remove, names the Sessions list from its heading, and exposes Usage summaries on the actual row peers. The focused tests retain failing regressions and use synthetic data with config writes refused.

Evidence

Windows 10 Pro x64 build 19045; application code tested at 76cc4cbd5bf7fc74b44c4836eebce10dfc693a0c. The subsequent commit 851adcba09131796b206f0e2f0d4db23a1c72c98 adds only the proof record and screenshots. App executable SHA-256: 392F52D9D842CA9B60F76CDC880C5A1D6B7D19AF13024D85F3070F68789C76B9; version 2026.10.9.0.

Before the repair, Refresh, Save, both Remove buttons and the Sessions list had empty UIA names; the provider row exposed a type name. Config setup reached and invoked the mounted Messages item, edited alpha, and checked enabled Save/Discard before the intended baseline assertion failed. After repair, selected native diagnostics included:

Bindings refresh: name=[Refresh], id=[RefreshButton]
Config save: name=[Save Changes], id=[SaveButton]
Alpha remove: name=[Remove item]; Bravo remove: name=[Remove item]
Provider row: [Fixture Provider, Pro, 37% used, Fixture quota warning]
Other rows: [Fixture Empty], [2026-10-31, $1.25], [2026-10-30, $0.50]
Changed rows: [Fixture Provider, Pro, 53% used, Fixture changed warning], [2026-10-31, $2.50]

The Sessions list name, Config Discard restoration and keyboard removal/reachability assertions passed. Full sanitized proof record includes details and earlier results.

Owned synthetic application screenshots (the Windows 10 containment warning obscures part of the app):

Synthetic Config with enabled Save and Discard
Synthetic Usage rows

Captures used temporary test-harness hooks subsequently removed; shipping app source was unchanged. Screenshots show visible state, not UIA names or screen-reader speech.

Validation and remaining gaps

  • Windows app build and UI test build passed; CI workflow contract passed using task-local PowerShell 7.5.13.
  • Shared: 4,810 passed, 0 failed, 25 skipped. Tray: 4,799 passed, 0 failed, 0 skipped.
  • Focused accessibility: 6 passed, 0 failed, 0 skipped. Separate keyboard lane: 5 passed, 2 failed, 0 skipped: Refresh focus landed on an in-app Close button, and Clipboard options were disabled on this Windows 10 host.
  • Supported full fixture: profile/app 34 passed; UI stage 47 passed, 3 failed, 0 skipped. Two search tests and one chat-run correlation test timed out. The overall fixture run failed; their cause remains unconfirmed.
  • Actual Usage scrolling and re-realization were not established. NVDA 2026.3 was available but not running; speech and group announcements remain unverified. Independent review remains outstanding.

The PR remains draft while these gaps are considered. No Windows 11 proof is claimed.

@clawsweeper

clawsweeper Bot commented Nov 1, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR names Config controls, the Sessions list, and Usage rows for assistive technology and adds fixture-backed accessibility and keyboard coverage.

Example: A screen reader reaches the Fixture Provider row showing Pro, 37% used, and Fixture quota warning.

  • Before: The row exposes OpenClawTray.Pages.UsagePage+ProviderRow.
  • After: The row exposes Fixture Provider, Pro, 37% used, Fixture quota warning.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct native behavior evidence supports the focused repair, but current-head Windows validation is absent and this intentionally covers only part of the linked issue.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Native Windows 10 x64 UIA output exercises the real Companion pages and reports repaired Config, Sessions, and Usage names, changed Usage snapshots, and Config removal/Discard behavior; inspected screenshots corroborate the active synthetic UI, and the relevant production files are unchanged since that tested revision.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Screen-reader users encounter unnamed controls, an unnamed session list, and Usage rows announced as implementation type names.
Reason: The reported defects have native before/after evidence and supportive collaborator feedback; keeping the PR related to the broader issue accurately preserves the remaining grouping work.

Merge readiness

✅ Ready for maintainer review

This PR repairs confirmed accessibility defects that remain on main, and collaborator feedback supports the direction; no introduced blocking defect was found, but required Windows checks have not run on the reviewed head.

Priority: P2
Reviewed head: 165f439e895727ed06aa9f2d2129a9445bee9bc1

Before merge

None.

Findings

None.

Tests

  • Low-value test tests/OpenClaw.Tray.UITests/GatewayFixtureAccessibilityBaselineTests.cs: Remove UsageProviderRow_ExposesItsVisibleDataOnTheListItemPeer: UsageRows_StayReadableAcrossChangedSnapshotAndPeriodSwitch already checks the same actual provider peer and all four initial values, then covers updates.
  • Missing end-to-end proof: Actual Usage container recycling during scrolling remains unverified; this is the prior optional confidence improvement, while native before/after naming and snapshot-switching evidence is supplied.
Agent review details

How this fits together

The native WinUI pages render Gateway data and localized labels, then expose control names and row summaries through Windows UI Automation.

flowchart LR
  A[Gateway data] --> B[Existing WinUI pages]
  C[Localized resources] --> B
  B --> D[Native controls and row containers]
  D --> E[UI Automation peers]
  E --> F[Assistive technology]
Loading

Technical review

Best possible solution:

Land the focused naming repairs through the existing WinUI owners once required validation clears, retaining the linked issue for unresolved option-group announcements.

Do we have a high-confidence way to reproduce the issue?

Main's missing names match the reporter's installed-release NVDA observations and the contributor's before-fix native UIA output; this read-only review ran no application, build, or tests.

Is this the best way to solve the issue?

The patch preserves localized visible labels and assigns Usage summaries to actual row containers without adding a competing production owner; its new flag only opts into native keyboard test input.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 12789b405719.

Provenance checked

  • Config editor and localized button naming keeps the original intent (9de9b5b: The Config revamp established schema-guided editing and permission-aware save behavior; this patch preserves that behavior while naming existing controls.)
  • Usage rows and period selection keeps the original intent (650f220: The existing design separates live provider status from period-scoped daily costs; the patch exposes those same visible values through UIA without changing requests or defaults.)
  • Strict isolated Gateway fixture and CI selection keeps the original intent (1912df7: The fixture CI integration requires real isolated app execution and rejects incomplete results; the separate keyboard lane preserves those checks and adds explicit foreground-input authorization.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced repair remains absent from main: The pinned introduced diff adds localized Config names, heading-based Sessions labeling, and Usage container names; main retains the unnamed Save panel and plain row classes. (src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs:340, 12789b405719)
  • Reporter confirms the repair's partial scope: The Windows 11 and NVDA report identifies the affected installed release; its follow-up credits this PR's naming repairs while retaining option-group announcements as unresolved.
  • Native behavior evidence inspected: The proof record contains actual native UIA names, changed Usage snapshots, and Config keyboard removal and Discard results on Windows 10 x64; both downloaded Config and Usage screenshots were inspected and show the described synthetic application states. (docs/proof/pr1971/README.md:5, 165f439e8957)
  • Previously proven production code is preserved: The five affected production control/page files have no changes between the tested source revision and this head; the latest merge therefore does not invalidate their demonstrated naming behavior. (src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs:340, 165f439e8957)
  • Strict fixture isolation is retained: The ordinary lane explicitly disables native keyboard input, the optional keyboard lane enables it only in its child process, and failed, skipped, or zero-test selections remain failures; synthetic config writes still reach the existing read-only rejection. (scripts/test-gateway-fixture.ps1:40, 165f439e8957)
  • Current merge and validation state: GitHub reports mergeable=true, draft=false, and mergeable_state=blocked; the head has one successful dispatch check and two skipped dispatch checks, with no build/test checks recorded, while the latest author comment reports local Windows validation unavailable. (165f439e8957)

Likely related people:

  • Ranjesh: Raw commit 9de9b5b adds src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:516 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9de9b5ba0f8a; files: src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs)
  • Barbara Kudiess: Raw commit 650f220 adds src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs:124 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 650f2203eea8; files: src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs)
  • Karen: Raw commit 1912df7 adds scripts/test-ci-workflow-contract.ps1:637 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1912df7e2f97; files: scripts/test-ci-workflow-contract.ps1)
  • Scott Hanselman: Raw commit 3e74082 adds scripts/test-gateway-fixture.ps1:62 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e740827aeb1; files: scripts/test-gateway-fixture.ps1)

Review metrics

Metric Value Why it matters
Production and regression coverage Production +40/-5 lines; tests and fixtures +709/-4 lines The repair is small and native rendering/input coverage explains most growth, though the standalone provider-name case duplicates the broader Usage regression.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Confirmed screen-reader naming defects affect several management pages without evidence of a blocked first-run or recovery workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show Usage names remaining correct after actual container recycling during scrolling.
  • Remove the standalone provider-name test duplicated by the broader Usage lifecycle case.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-11-01T16:04:56.115Z sha a02893f :: needs real behavior proof before merge. :: [P2] Pair the failing UIA cases with their accessibility repairs | [P2] Make the Config case reach the edited-control assertions
  • reviewed 2026-11-02T00:15:33.062Z sha b5f4a51 :: needs real behavior proof before merge. :: [P2] Honor the keyboard opt-in in the default fixture selection | [P2] Wait for keyboard-driven focus changes before asserting them
  • reviewed 2026-11-02T01:07:30.286Z sha 76cc4cb :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-02T11:56:54.882Z sha 851adcb :: needs maintainer review before merge. :: none
  • reviewed 2026-11-03T21:37:34.144Z sha a214b63 :: needs maintainer review before merge. :: none

Reviewed November 3, 2026, 7:47 PM ET / November 4, 2026, 00:47 UTC (Revision 6).

@DonnieFi

DonnieFi commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@DonnieFi

DonnieFi commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The follow-up separates real keyboard input into an explicit fixture lane, waits for focus transitions before dependent input, and removes the standalone Config tree diagnostic test. The fixture runner continues to reject skipped and zero-test runs.

Native Windows 10 validation on the follow-up source: the app build and UI test build passed; the ordinary accessibility selection passed 6/6 with keyboard permission disabled. The separate keyboard selection passed 5/7: Bindings focus after refresh landed on an in-app Close button, and Clipboard keyboard proof was blocked because the four controls were disabled on this host. Both assertions remain intact.

The full fixture runner and CI workflow contract have not been verified: this host lacks PowerShell 7. Actual Usage scrolling/re-realization, NVDA speech, and independent review remain outstanding. The earlier Shared suite had two PowerShell resolution failures, and the Tray suite had nine failures due to missing pwsh. The PR remains draft.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@DonnieFi

DonnieFi commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Hi @DonnieFi, I'm a Copilot triage agent helping the maintainers work through open PRs (I'm a bot, not Scott). Thank you for this accessibility baseline. It's useful work, and the naming fixes look good.

Since this PR was opened, #1929 (refactor: remove the Bindings page) landed on main, so there are two small things to fix before it can merge:

  1. Merge conflict: src/OpenClaw.Tray.WinUI/Pages/BindingsPage.xaml no longer exists on main. Rebasing and dropping that edit should resolve it. Everything else merges cleanly.
  2. Bindings tests: BindingsRefresh_HasAnAccessibleNameOnTheEnabledButton runs in the default test-gateway-fixture.ps1 lane, and it would time out every run because the page and its marker are gone. Please remove it, along with BindingsRefresh_KeyboardRoundTripTriggersFreshConfigRead and the bindings route data.

An optional, non-blocking suggestion: ClipboardExpander_SupportsKeyboardSelectionAndCollapse fails on hosts where the sandbox Clipboard radios are disabled (your Windows 10 proof shows this). Skipping it with a reason there would keep the -KeyboardProof lane passable.

When it's rebased and green, we'll take another look. Thanks again!

@shanselman shanselman added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 3, 2026

DonnieFi commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Hi @DonnieFi, thanks for merging main and removing the obsolete Bindings checks! I am a Copilot triage agent helping the maintainers, not Scott. Main has moved again, and GitHub now reports another merge conflict. The localization resources and GatewayScenario.cs have changed on both branches, so they may need attention. Could you merge current main again when convenient? The updated head also needs the required CI checks before landing. Thank you!

@shanselman shanselman added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 3, 2026

DonnieFi commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Merged current main (12789b40) in 165f439e. Resolved all six localization conflicts by preserving the accessibility Remove label alongside the upstream Gateway voice resources; GatewayScenario.cs merged cleanly. XML validity, unique resource keys, preservation of upstream values and the original Remove labels, conflict-marker checks, and the PR diff whitespace check against main passed.

Required local Windows build and Shared/Tray tests could not run: this Linux host lacks PowerShell/.NET, and the configured Windows host was unreachable. Fresh required CI checks remain pending.

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Hi @DonnieFi, I'm a Copilot triage agent helping review this. GitHub shows the PR as ready for review, but the description still says it remains draft while the remaining accessibility gaps are considered. Should we treat it as ready for maintainer review, or keep it on hold for those gaps?

The pending CI runs have been approved and are running. Thanks!

@DonnieFi

DonnieFi commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Definitely ready!

@RomneyDa
RomneyDa merged commit 0618782 into openclaw:main Nov 5, 2026
45 of 48 checks passed
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. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

3 participants