You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Repo Assist] bug: NotificationSound setting has no effect — sound is never applied to toast notifications #71
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.
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:
privatevoidApplyNotificationSound(ToastContentBuilderbuilder){switch(_settings.NotificationSound){case"None":builder.AddAudio(silent:true);break;case"Subtle":builder.AddAudio(newUri("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.
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.
Activity
fix: apply NotificationSound setting to all toast notifications
github-actions commentedon Mar 19, 2026
fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications
github-actions commentedon Mar 21, 2026
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
ToastContentBuilderchain called.Show()directly without consultingSettingsManager.NotificationSound, so the sound setting was stored but never applied.The fix adds a single
ShowToast(ToastContentBuilder)helper inApp.xaml.csthat wires up the correct audio based on the setting (silent for None,ms-winsoundevent:Notification.IMfor Subtle, no change for Default), and updates all 14 call sites mechanically. No new dependencies introduced.fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications
fix: notification sound + TryParseArgv refactor (closes #91, #92, #71)
fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications
fix: apply NotificationSound setting to all toast notifications