Skip to content

fix(chat): stabilize composer accessibility state - #1135

Merged
shanselman merged 2 commits into
mainfrom
shanselman-fix-composer-accessibility
Aug 8, 2026
Merged

shanselman merged 2 commits into
mainfrom
shanselman-fix-composer-accessibility

Conversation

@shanselman

@shanselman shanselman commented Aug 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • keep Reactor composer controls out of the control UIA view and hit testing until WinUI reports a loaded, nonzero layout
  • expose stable automation IDs for every composer control and hide decorative glyph peers from the control view
  • recreate Axe scanners per page and permit one authoritative rescan only when the initial result is proven stale: Axe reports logical height zero while live UIA reports nonzero onscreen bounds
  • add deterministic pre-layout coverage plus real-process UIA recovery coverage

Validation

  • ./build.ps1
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore (3631 passed, 32 integration skips)
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore (2247 passed)
  • dotnet build ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-restore
  • focused composer proof: 2 passed
  • five consecutive complete Category=Accessibility lanes (21/21 passed each, 105/105 total)
  • autoreview: clean, no accepted/actionable findings
  • rubber-duck and WinUI review: no remaining blockers

Real behavior proof

Current-head isolated chat proof:

Composer accessibility proof

winapp ui get-property reported IsOffscreen=False and nonzero bounds for ChatComposerInput, ChatComposerAttach, ChatComposerSpeakerToggle, ChatComposerModelPicker, ChatComposerVoice, and ChatComposerSettings.

Scripted interactions also invoked Attach and opened/canceled the real file picker, then invoked Unmute and observed/dismissed the real Voice Output Is Off permissions dialog.

@clawsweeper clawsweeper Bot added 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. P2 Normal priority bug or improvement with limited blast radius. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 6:31 PM ET / 22:31 UTC.

ClawSweeper review

What this changes

The PR gates Reactor chat-composer controls until WinUI reports usable layout, assigns stable automation IDs, and adds UIA and Axe accessibility recovery coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer landing review. The current head provides a focused, source-consistent accessibility repair with real-process UIA coverage and no discrete correctness finding.

Priority: P2
Reviewed head: f69cb4c9314c20a5faa60898eea8ad4e39f76586
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered accessibility repair with direct current-head UIA behavior evidence.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.
Evidence reviewed 4 items Layout gate implementation: The PR adds a reusable transition that keeps composer controls raw and non-hittable before they are loaded, visible, and nonzero-sized, then restores the control accessibility view.
Focused real-process coverage: The PR adds a chat-page UIA test that waits for named composer controls to become onscreen with nonzero bounds, alongside an Axe rescan limited to a verified stale-layout signature.
Repository accessibility contract: Accessibility scanning is a real-process CI quality gate for WinUI changes, matching the PR's focused validation path.
Findings None None.
Security None None.

How this fits together

The WinUI Reactor chat composer exposes input and action controls to Windows UI Automation and to users. Those controls feed accessibility scanners and assistive clients, which depend on accurate bounds, visibility, names, and hit testing.

flowchart LR
A[Reactor chat composer] --> B[Composer controls]
B --> C{Usable WinUI layout?}
C -->|No| D[Raw UIA view and no hit testing]
C -->|Yes| E[Control UIA view]
E --> F[Assistive tools and accessibility scans]
Loading

Decision needed

Question Recommendation
Should this collaborator-authored WinUI accessibility repair land after the required checks complete? Land after checks: Merge the focused accessibility repair once the required CI checks are green.

Why: The patch is correctness-reviewed, but collaborator-authored PRs require an explicit maintainer merge decision.

Before merge

  • Complete next step (P2) - No mechanical repair is indicated; the remaining action is normal maintainer landing review for this collaborator PR.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Implementation and regression coverage 5 files; production +116 net, tests +252 net The additional test coverage is more than twice the production growth and directly targets the layout-state regression.

Technical review

Best possible solution:

Land the focused layout-state transition after maintainer review and required checks complete, retaining the UIA regression coverage as the guard against stale accessibility layout.

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

Yes, source-reproducible: current main configures composer controls without a loaded, nonzero-layout gate, while the PR's focused UIA test exercises the affected production route.

Is this the best way to solve the issue?

Yes. A narrowly scoped layout readiness transition, stable IDs, and real-process UIA assertions address the stale control-state failure without introducing a new configuration or parallel UI path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 50a9455c6185.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.

Label justifications:

  • P2: This is a bounded accessibility reliability fix in the chat composer without evidence of an urgent runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR provides current-head isolated-chat proof with onscreen UIA bounds for the named controls and records real Attach and speaker-permission interactions.

Evidence

What I checked:

Likely related people:

  • Caleb Eden: Most recent current-main commit on the Reactor composer repaired its paste and context-menu behavior. (role: recent area contributor; confidence: high; commits: 89666df49eb9; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawReactorChatRoot.cs)
  • Karen: Recently refactored Reactor chat theme-resource usage in the same composer surface. (role: recent adjacent contributor; confidence: medium; commits: ff1901275a41; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawReactorChatRoot.cs)

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-08T21:46:02.641Z sha d006167 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T21:56:51.748Z sha d006167 :: needs maintainer review before merge. :: none

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 8, 2026
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 8, 2026
@shanselman
shanselman merged commit 4712e22 into main Aug 8, 2026
26 checks passed
@shanselman
shanselman deleted the shanselman-fix-composer-accessibility branch August 8, 2026 22:45
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 8, 2026
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: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. 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