Repository navigation
Description
Context
Follow-up from PR-in-flight on branch user/rbrid/ChatSelectionLoss1 (commit fbfffe5), which fixes two chat-bubble bugs in the tray's tool-output cards:
- Tool-output Inlines vanishing on hover-out (memoized via
ConditionalWeakTable) - Tool panel collapsing on text selection inside the body (restructured into a header-only
Buttonwith the body as a sibling)
See src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs lines ~1639-1685.
The a11y concern
The header-only Button restructure means the expanded body content sits outside the Button's automation subtree. Narrator (and other screen readers) reading the header will not naturally announce the body content — users will hear the title/summary but miss the actual tool output unless they navigate further.
Flagged as HIGH severity, ~60% confidence in the Hanselman dual-model review of the original fix. Deferred to keep the bug-fix PR focused.
Suggested fix
Wire the body's automation relationship to the header so screen readers treat them as a unit. Options:
AutomationProperties.SetLabeledBy(bodyElement, headerButton)- Or set
AutomationProperties.Nameon the body summarizing the tool output - Or wrap header+body in an
Expander-like control that already exposes the right automation pattern (trade-off: would undo some of the manual chrome work)
Acceptance
- Narrator on the expanded tool card announces both header and body content in a coherent reading order
- No regression to the click-doesn't-collapse fix from
fbfffe5
References
- Original fix: branch
user/rbrid/ChatSelectionLoss1(commitfbfffe5, RBrid fork) - File:
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cslines ~1639-1685
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 29, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 29, 2026, 5:34 PM ET / 21:34 UTC.
Summary
Keep open. Current main does not have the requested tool-output accessibility wiring; source inspection found no
AutomationProperties.LabeledByor equivalent body name in the chat timeline, and a header-onlyTaskListbody-sibling path still exists even though the exact in-flight branch cited by the report is not present locally.Reproducibility: no. high-confidence runtime reproduction yet. Source inspection shows a header-only
TaskListpath with the body as a sibling and no automation relationship, but I did not run Narrator or inspect the in-flight branch commit directly.Ways to help us reproduce this
Next step
A focused repair is plausible in the tray chat timeline, but the worker should keep the change to automation metadata and require Windows Narrator proof before merge.
Review details
Best possible solution:
Add a narrow WinUI automation relationship or explicit body automation name for expanded tool-output content that sits outside a header
Button, preserving the header-only click target and selectable output body.Do we have a high-confidence way to reproduce the issue?
No high-confidence runtime reproduction yet. Source inspection shows a header-only
TaskListpath with the body as a sibling and no automation relationship, but I did not run Narrator or inspect the in-flight branch commit directly.Is this the best way to solve the issue?
Yes, the suggested automation wiring is the narrowest maintainable fix. It should avoid replacing the control structure wholesale and should preserve the text-selection/click behavior that motivated the header-only split.
AGENTS.md: found, but no applicable review policy affected this item.
Remaining risk / open question:
fbfffe5is not present in the local refs I could inspect, so current-main evidence only proves a related source gap, not the exact branch state described in the issue.Codex review notes: model gpt-5.5, reasoning high; reviewed against 64b650cb3313.
Label changes
Label changes:
P2: Screen reader users may miss expanded tool output in a bounded tray chat surface, but this is not an emergency or core runtime outage.impact:other: The issue is about accessibility of tool-output cards, which is meaningful maintainer-visible impact outside the specific owned impact categories.issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state selects this label.Label justifications:
P2: Screen reader users may miss expanded tool output in a bounded tray chat surface, but this is not an emergency or core runtime outage.impact:other: The issue is about accessibility of tool-output cards, which is meaningful maintainer-visible impact outside the specific owned impact categories.Evidence reviewed
Acceptance criteria:
What I checked:
AGENTS.mdwas read fully; its validation requirements apply after code changes, but this was a read-only issue review with no edits. (AGENTS.md:1, 64b650cb3313)rowContentfromheaderRowandbodyand wraps both in aButton, so the exact reported header/body split is not universal on current main. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:1574, 64b650cb3313)TaskListvariant creates aheaderButton, then appends the expanded body as a sibling incardChildrenwithout visible automation linkage. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:2056, 64b650cb3313)SetLabeledBy,AutomationProperties.SetName, or related automation relationship inOpenClawChatTimeline.cs; automation helpers exist elsewhere but are not applied to these tool-output cards. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:2056, 64b650cb3313)ToolBurstStyle.Auto, whileTaskListis exposed through chat explorations; the source gap is clear, but I did not establish a full production Narrator failure on current main. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:1627, 64b650cb3313)bf21e7band50837d7, which changed native chat UI/tool-call behavior and the tool-call visibility contract. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:1, bf21e7b216aa)Likely related people:
bf21e7bmade a large recent change toOpenClawChatTimeline.cs, including native chat UI fixes and selection-related behavior adjacent to this report. (role: recent chat timeline contributor; confidence: medium; commits: bf21e7b216aa, 0a164fc111b2; files:src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs)50837d7recently adjusted production tool-call visibility in the same timeline and added the existing tool-call toggle contract test. (role: recent area contributor; confidence: medium; commits: 50837d79ecc2; files:src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs,tests/OpenClaw.Tray.Tests/ChatToolCallsToggleContractTests.cs)6a59218recently touched chat timeline rendering for thinking-state placement, making them a plausible adjacent reviewer for timeline composition changes. (role: adjacent chat timeline contributor; confidence: low; commits: 6a5921883c86; files:src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.A11y: set explicit AutomationName on CompactSummary header button and…
github-actions commentedon May 30, 2026
🤖 This is an automated response from Repo Assist.
I've investigated this and submitted a fix on branch
repo-assist/fix-issue-590-a11y-tool-output-automation. A draft PR is in progress.What was found: The
CompactSummarytool-burst style (used for multi-step tool calls) createsheaderButtonas a standaloneButton, then adds the expanded bodyBorderas a sibling in aVStack. The body is outside the Button's automation subtree, so Narrator only announces the button's visual text (aFlexRowwithout an explicit name) and doesn't automatically associate the body content.Fix applied (two changes in
OpenClawChatTimeline.cs):Explicit
AutomationNameonheaderButton— builds"{summaryLine}, {stepCountLabel}, {taskStatusText}, expanded/collapsed"and calls.AutomationName(). Narrator now announces e.g. "Searched for files, 3 steps, Done, collapsed, button" when the header is focused.AutomationNameon the expanded bodyBorder— labels the body with"Tool steps for: {summaryLine}"so scan-mode navigation makes the body context clear.The
Plainstyle (single-step tools) wraps both header and body inside a singleButtonalready, so it is unaffected.Note: I did not use
AutomationProperties.SetLabeledBy(which would require resolving both WinUI controls and working around the reactive rendering pipeline). The explicit name approach is simpler and sufficient for the acceptance criteria. A Windows Narrator smoke test is still needed to verify reading order.A11y: set explicit AutomationName on CompactSummary header button and…