Skip to content

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

In progress

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
    The merged fixes address MCP copy and connection feedback, but explicitly exclude the reported Settings save silence, so full resolution is not established.

    Reproducibility: The installed-release report provides concrete steps, but current-main Settings silence was not reproduced; WinApp is unavailable here, and no builds or tests were run during this read-only review.

    Next step
    Capture UIA events and NVDA speech for first and repeated Settings saves, and verify current Automations disclosure feedback before deciding the remaining repair scope.

    Review details

    Best possible solution:

    Retain the unresolved Settings case until paired UIA and NVDA observations establish reliable spoken feedback, then make only the repair those observations justify.

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

    The installed-release report provides concrete steps, but current-main Settings silence was not reproduced; WinApp is unavailable here, and no builds or tests were run during this read-only review.

    Is this the best way to solve the issue?

    The merged helper addresses the confirmed plain-text result gaps; blanket InfoBar reopening could duplicate native announcements and needs a failing Settings regression first.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • An InfoBar notification event alone does not establish that NVDA speaks the Settings result once, especially for rapid repeated saves.
    • Current Automations disclosure feedback has not been checked against the reporter's Cron case.

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

    Label changes

    Label changes:

    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.
    • remove issue-rating: 🦞 diamond lobster: Current issue advisory state no longer selects this label.
    • remove clawsweeper:source-repro: Current issue advisory state no longer selects this label.
    • remove clawsweeper:linked-pr-open: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: Missing action feedback affects accessibility of common operations, while results remain discoverable through in-product navigation.
    • impact:ux-friction: Screen reader users must move focus and search for changed result text.
    Evidence reviewed

    Acceptance criteria:

    • Paired UIA notification and NVDA speech capture for first, repeated and post-dismissal Settings saves.
    • Current Automations UIA ExpandCollapse state and NVDA feedback check.
    • ./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

    What I checked:

    • Concrete affected-release report: The reporter describes NVDA silence on installed Companion 2026.9.8-1 after Settings saves, MCP copies and connection actions; the observed Settings failure is distinct from the proposed collapsed-control explanation.
    • Merged repair explicitly limits its scope: fix: tell screen readers when copying MCP details or a connection action finishes #2433 (fix: tell screen readers when copying MCP details or a connection action finishes) reports NVDA Speech Viewer results for copy, connectivity and repair-code feedback, but explicitly excludes Settings save because its InfoBar already emits notifications; that does not establish why the reporter heard nothing. (3240ab1ddb31)
    • Current copy announcements: Both MCP copy handlers now call AutomationAnnouncer after assigning their localized result text. (src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:363, 8393459317d0)
    • Settings remains on its existing InfoBar path: ShowSavedIndicator opens the existing success InfoBar and restarts its dismissal timer; neither this code nor the merged PR's evidence resolves the reported NVDA silence, including repeated saves while the bar remains open. (src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs:85, 8393459317d0)
    • Cron requires checking its replacement owner: CronPage now hosts AutomationsRoot, which announces notices and renders named stock Expanders; contrary to the fixing PR's scope explanation, expandable job rows do exist on current main, although their spoken state changes were not verified in this review. (src/OpenClaw.Tray.WinUI/Automations/AutomationsRoot.cs:733, 8393459317d0)
    • Follow-up fixes stale connection announcements: fix: stop a leftover connection test announcing after adding a gateway #2438 (fix: stop a leftover connection test announcing after adding a gateway) is merged; its discussion reports NVDA feedback while the form is active and silence after page navigation, without testing Settings save. (8393459317d0)

    Likely related people:

    • Scott Hanselman: Raw commit 3240ab1 adds src/OpenClaw.Tray.WinUI/Helpers/AutomationAnnouncer.cs:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3240ab1ddb31; files: src/OpenClaw.Tray.WinUI/Helpers/AutomationAnnouncer.cs)
    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 December 2, 2026, 5:01 AM ET / 10:01 UTC.

  3. added
    clawsweeper:linked-pr-open
    clawsweeper:no-new-fix-pr
    and removed
    clawsweeper:queueable-fix
    clawsweeper:fix-shape-clear
    no-stale
    on Dec 1, 2026
  4. added
    clawsweeper:needs-maintainer-review
    issue-rating: 🦪 silver shellfish
    and removed
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:linked-pr-open
    on Dec 2, 2026
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:needs-maintainer-reviewclawsweeper:no-new-fix-primpact:ux-frictionissue-rating: 🦪 silver shellfish

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions