Skip to content

[Repo Assist] fix: apply NotificationSound setting to all toast notifications#95

Draft
github-actions[bot] wants to merge 1 commit intomasterfrom
repo-assist/fix-issue-71-notification-sound-ec8ced57a23fcfe3-33e2035dbe22e209
Draft

[Repo Assist] fix: apply NotificationSound setting to all toast notifications#95
github-actions[bot] wants to merge 1 commit intomasterfrom
repo-assist/fix-issue-71-notification-sound-ec8ced57a23fcfe3-33e2035dbe22e209

Conversation

@github-actions
Copy link
Contributor

🤖 This is an automated contribution from Repo Assist.

Root Cause

The NotificationSound setting in tray settings was saved and restored correctly by SettingsWindow but was never applied when building toast notifications. Every toast always fired with the system default sound regardless of user preference — all 14 direct .Show() call sites in App.xaml.cs bypassed the setting entirely.

Fix

Introduces a ShowToast(ToastContentBuilder) helper in App.xaml.cs that applies the audio preference before calling .Show():

  • None → silent toast (AddAudio(silent: true))
  • Subtlems-winsoundevent:Notification.IM
  • Default → system default (no-op, existing behaviour)

All 14 direct .Show() call sites in App.xaml.cs are routed through ShowToast(...) instead.

Test Status

Tests could not be run in the Linux CI environment (project targets Windows). The logic is straightforward: one helper method added, all call sites updated mechanically.

Closes #71
Closes #92

Generated by Repo Assist ·

To install this agentic workflow, run

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

The NotificationSound setting (Default / None / Subtle) was saved and
restored correctly by SettingsWindow but never applied when building
toast notifications. Every toast always fired with the system default
sound regardless of user preference.

Adds a ShowToast(ToastContentBuilder) helper that applies the audio
preference before calling .Show(), and updates all 14 toast call sites
in App.xaml.cs to use it:
  - 'None' → silent toast (AddAudio(silent: true))
  - 'Subtle' → ms-winsoundevent:Notification.IM
  - 'Default' → system default (no-op, existing behaviour)

Closes #71

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added automation bug Something isn't working repo-assist labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation bug Something isn't working repo-assist

Projects

None yet

0 participants