Skip to content

[Repo Assist] bug: NotificationSound setting has no effect — sound is never applied to toast notifications #71

Closed

Description

@github-actions

Summary

The Sound combo box in Settings (Default / None / Subtle) saves and restores correctly, but the selected value is never applied when building toast notifications. Every notification always fires with the system default sound regardless of user preference.

Root cause

SettingsData.NotificationSound is read and written by SettingsWindow.xaml.cs, but none of the ~14 ToastContentBuilder call sites in App.xaml.cs check it. The setting is essentially a no-op.

Relevant code:

  • SettingsWindow.xaml.cs lines 46–57, 81–83: reads/writes NotificationSound correctly.
  • App.xaml.cs: new ToastContentBuilder() is called at lines 571, 600, 657, 674, 1160, 1179, 1187, 1203, 1379, 1416, 1501, 1515, 1526, 1752 — none call .AddAudio().

Proposed fix

Add a helper that translates NotificationSound to a ToastAudio / silent flag:

private void ApplyNotificationSound(ToastContentBuilder builder)
{
    switch (_settings.NotificationSound)
    {
        case "None":
            builder.AddAudio(silent: true);
            break;
        case "Subtle":
            builder.AddAudio(new Uri("ms-winsoundevent:Notification.IM"));
            break;
        // "Default": no-op — use system default
    }
}

Then call ApplyNotificationSound(builder) before .Show() at every toast site.

Additional context

The same pattern exists in OpenClaw.Tray.WinUI. The setting was originally discovered as dead code in this comment.

This is a good first issue — straightforward mechanical change, no logic involved, easy to test by changing the setting and sending a test notification.

Generated by Repo Assist · ◷

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64

Activity

  1. added
    bug
    good first issue
    on Mar 19, 2026
  2. added a commit that references this issue on Mar 19, 2026
    9dbfb49
  3. github-actions commented on Mar 19, 2026

    @github-actions
    Author
  4. added 2 commits that reference this issue on Mar 20, 2026
    9d8589b
    8ab84ee
  5. github-actions commented on Mar 21, 2026

    @github-actions
    ContributorAuthor

    Note

    The pull request was not created — a fallback review issue was created instead due to protected file changes: #89

    🤖 This is an automated response from Repo Assist.

    A fix for this issue has been prepared and a draft PR is being submitted. The root cause: every ToastContentBuilder chain called .Show() directly without consulting SettingsManager.NotificationSound, so the sound setting was stored but never applied.

    The fix adds a single ShowToast(ToastContentBuilder) helper in App.xaml.cs that wires up the correct audio based on the setting (silent for None, ms-winsoundevent:Notification.IM for Subtle, no change for Default), and updates all 14 call sites mechanically. No new dependencies introduced.

    Generated by Repo Assist · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64
    
  6. deleted a comment from on Mar 22, 2026
  7. deleted a comment from on Mar 22, 2026
  8. added 2 commits that reference this issue on Mar 22, 2026
    fac7ad1
    0546a83
  9. locked as resolved and limited conversation to collaborators on May 29, 2026
  10. added 5 commits that reference this issue on Aug 16, 2026
    a5edae9
    5fc845b
    4c3a3dd
    1e1b1cf
    0c39ff4
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

    automationbuggood first issuerepo-assist

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions