Skip to content

[Bug] Screen reader is not told when saving, copying or a connection action finishes #1946

Open

Description

@fire0220

Environment

  • Windows 11 (x64), OpenClaw Companion 2026.9.8-1 installed build, native WinUI tray app, gateway connected.
  • NVDA, laptop keyboard layout, Caps Lock as the NVDA key.
  • Code re-checked against main at a4dd026c.

Steps to reproduce

  1. Settings page: change any option and save. A confirmation bar appears at the top; NVDA stays silent.
  2. Permissions page with MCP enabled: copy the MCP token or URL. A short status line changes; NVDA stays silent.
  3. Connection page: run a connection action ("Test", "Repair") and watch the status text change; NVDA stays silent.
  4. Cron page: expand or collapse a job card; NVDA is not told whether the card opened or closed.

Actual behavior

Results of user initiated actions are visible but not announced. A screen reader user has to move focus back and hunt for a changed sentence after every save, copy or connection attempt.

Root cause

main raises live region events in only two places:

  • src/OpenClaw.Tray.WinUI/Chat/ChatCopyButton.cs:134
  • src/OpenClaw.Tray.WinUI/Windows/StoreMigrationWindow.xaml.cs:109

There are no RaiseNotificationEvent calls in the repository. Most result surfaces are InfoBars whose IsOpen is set to true while the control is still collapsed, or plain TextBlocks. In both cases NVDA drops the event: a collapsed element has no automation peer yet, and a LiveRegionChanged on a text block is often ignored.

Expected behavior

When a user action finishes, the result is announced once, with the right urgency (polite for success, assertive for errors), without moving focus.

Proposed solution

Add a small helper, for example src/OpenClaw.Tray.WinUI/Helpers/AutomationAnnounce.cs, with two entry points:

internal static void OpenInfoBar(InfoBar bar)
{
    bar.IsOpen = false;
    bar.Visibility = Visibility.Visible;
    FrameworkElementAutomationPeer.CreatePeerForElement(bar);
    bar.IsOpen = true;
}

internal static void Notify(FrameworkElement element, string? message = null)
{
    var peer = FrameworkElementAutomationPeer.FromElement(element)
        ?? FrameworkElementAutomationPeer.CreatePeerForElement(element);
    if (peer is null) return;
    message ??= AutomationProperties.GetName(element);
    if (string.IsNullOrEmpty(message) && element is TextBlock text) message = text.Text;
    if (string.IsNullOrEmpty(message)) return;
    peer.RaiseNotificationEvent(
        AutomationNotificationKind.ActionCompleted,
        AutomationNotificationProcessing.MostRecent,
        message,
        "OpenClawStatus");
}

OpenInfoBar follows the InfoBar guidance: a property change while the bar is open does not raise a notification, so close and reopen it.

Wire it into the places that currently set IsOpen = true or replace a status string:

  • Pages/SettingsPage.xaml.cs (saved settings bar),
  • Pages/ConfigPage.xaml.cs, Pages/ChannelsPage.xaml.cs (existing InfoBars),
  • Pages/SandboxPage.xaml.cs (unavailable action bar),
  • Pages/CronPage.xaml.cs (job completed bar, form error, and expand/collapse announcement using the job name),
  • Pages/DebugPage.xaml.cs (copy feedback bar),
  • Pages/PermissionsPage.xaml.cs (MCP copy status),
  • Pages/ConnectionPage.xaml.cs (gateway action status, after the panel is made visible),
  • Windows/WorkspaceWindow.xaml.cs (operation info bar).

Keep AutomationProperties.LiveSetting="Assertive" on error surfaces and Polite on success surfaces, matching the existing markup.

Validation plan

  • Source contract tests in tests/OpenClaw.Tray.Tests that assert the announcement helper is used instead of bare IsOpen = true for the listed surfaces.
  • dotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj -c Debug -p:Platform=x64
  • Manual NVDA pass over Settings save, MCP copy, connection actions and Cron expand/collapse.

Scope

Screen reader access only. No localization content is requested in this issue.

Activity

  1. added
    clawsweeper:intake:bug
    P2
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    no-stale
    and removed
    clawsweeper:intake:bug
    on Oct 31, 2026
  2. clawsweeper commented on Oct 31, 2026

    @clawsweeper

    Codex review: this still needs some work.

    Summary
    Keep this issue open: current main still lacks reliable announcement handling for the reported action results, and existing accessibility scans do not verify those announcements.

    Reproducibility: Current source establishes unannounced MCP copy feedback and problematic result-update paths; the author supplies installed-build NVDA steps, but this review performed no live reproduction or tests.

    Next step
    Establish a failing action-announcement regression, then repair the affected WinUI result paths and verify single delivery with NVDA.

    Review details

    Best possible solution:

    Provide one reliable, appropriately prioritized announcement per action result while preserving focus, existing operation ownership, and localized wording.

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

    Current source establishes unannounced MCP copy feedback and problematic result-update paths; the author supplies installed-build NVDA steps, but this review performed no live reproduction or tests.

    Is this the best way to solve the issue?

    A focused announcement mechanism is appropriate, but copying the proposed helper verbatim is insufficient: existing InfoBar behavior, repeated results, urgency, and duplicate delivery need observable regression coverage.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • Actual NVDA delivery, urgency, and duplicate-announcement behavior require Windows runtime validation; source inspection cannot establish the proposed helper's effectiveness.
    • Cron-specific changes overlap the open Automations replacement and need coordination.

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

    Label changes

    Label changes:

    • add P2: Screen reader users lose timely feedback across common actions, but the report describes results remaining discoverable through in-product navigation.
    • add impact:ux-friction: Users must move focus and search for changed status text after actions.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P2: Screen reader users lose timely feedback across common actions, but the report describes results remaining discoverable through in-product navigation.
    • impact:ux-friction: Users must move focus and search for changed status text after actions.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
    • dotnet build tests/OpenClaw.Tray.UITests -c Debug -r win-x64
    • dotnet test tests/OpenClaw.Tray.UITests -c Debug -r win-x64 --no-build --filter Category=Accessibility

    What I checked:

    How this review workflow works
    • 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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 31, 2026, 10:11 AM ET / 14:11 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions