Skip to content

feat(notifications): add a Silent sound option - #42497

Merged
nwparker merged 1 commit into
mainfrom
nwparker/silent-notifications-9146
Nov 14, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/silent-notifications-9146

Conversation

@nwparker

@nwparker nwparker commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Desktop notifications currently require either the system sound or an Orca sound. Add Silent to the shared sound picker in Settings and onboarding so banners can stay enabled without audio.

Silent skips automatic playback, selection previews, and test-notification audio, hides the volume slider, and persists through restart. Native delivery already marks non-System selections silent; sound-path resolution also refuses an audio file for Silent, including forced calls. Existing System, built-in, and custom-file choices keep their behavior. Includes localized labels for every bundled language.

Closes #9146.

Validation:

  • Reviewed native delivery, renderer playback, previews, settings normalization, and local/remote desktop routing across platforms.
  • Background Electron/CDP at 1920×1170: selected Silent in Settings and onboarding, verified no volume slider, confirmed test notification delivery (delivered: true), confirmed forced playback does not play, and restarted the app to verify persistence and rendered selection.
  • pnpm check:changed: all 36 non-test checks passed, including node/web/CLI typechecks, lint, formatting, and localization. Stopped the broad related-test selection because shared settings and locale imports fan out extensively; focused notification and persistence tests run separately. Full CI is required before merge.
  • Focused notification and persistence tests: 7 files, 16 tests passed.
  • Native audio output on Linux/Windows and remote/mobile devices was not exercised locally.

Settings:

(screenshot removed: contained real product data)

Onboarding:

(screenshot removed: contained real product data)

Files Added Deleted Net
Test 0 0 0 0
Prod 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​44 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​30

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The notification sound setting now accepts none, with a “Silent” option and translated labels. A shared predicate identifies custom sound IDs and is used by notification selection, test delivery, onboarding preview, settings controls, and desktop playback. Onboarding normalization preserves the none value.

Merge Risk: Minimal · up to a5786

This adds a Silent notification sound option that skips playback and previews and persists across restarts. No concrete defects were found. Run full CI before merging, as the author notes.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Out of Scope Changes check Inconclusive The notification changes are within scope of #9146. They cover the shared type, the sound option list, normalization, sound-path resolution, playback and preview gating, the volume control, and the lo… Provide the ko.json hunk for the head and base revisions, or the full diff for that file. Confirm that the only changed line is the notification sound key "silent": "무음" and that components.artifacts.typeMarkdown is unchanged. If the typeMa…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "feat(notifications): add a Silent sound option" matches the main change. The PR adds a Silent option to the notification sound picker, and the raw summary shows the shared type, helper, pla…
Description check Passed The description covers the key template areas with substance. It gives a plain-language purpose, a before and after for the user, the mechanism (native delivery, sound-path refusal, normalization), te…
Linked Issues check Passed Issue #9146 asks for a way to turn off notification sound. Its proposed solution is a "None" sound option. The PR adds a Silent option, which uses the label Silent instead of None. The option is imple…
Full details: Title check

Explanation

The title "feat(notifications): add a Silent sound option" matches the main change. The PR adds a Silent option to the notification sound picker, and the raw summary shows the shared type, helper, playback, and locale changes that support it. The title is short, specific, and uses a conventional commit prefix.

Full details: Description check

Explanation

The description covers the key template areas with substance. It gives a plain-language purpose, a before and after for the user, the mechanism (native delivery, sound-path refusal, normalization), testing across manual, automated, and focused test runs, and two screenshots for the UI change. It also states what was not verified locally. Gaps: the ELI5, Why (alternatives considered), Risk level, and Review sections are missing or unfilled, the Linked Issue uses 'Closes #9146' rather than the template's 'Fixes #' form (the issue is referenced), the testing checkboxes are not ticked, the backout plan is absent, the Visual Proof shows Settings and onboarding in both states but not a clearly labeled BEFORE and AFTER pair, and the Agent skill upstream boundary and AI Disclosure sections are not addressed.

Resolution

Consider adding these items before merge: an ELI5 summary; a short 'Why' that explains why a 'Silent' option and the shared helper were chosen over alternatives; a Risk level (Low, Medium, or High) with the riskiest part and a revert plan, including the persisted 'none' value in saved settings; a BEFORE and AFTER visual pair for the UI change; ticked Testing checkboxes or a note explaining any unchecked item; and the Agent skill upstream boundary and AI Disclosure sections, marked as not applicable where appropriate.

Full details: Linked Issues check

Explanation

Issue #9146 asks for a way to turn off notification sound. Its proposed solution is a "None" sound option. The PR adds a Silent option, which uses the label Silent instead of None. The option is implemented across the code paths: src/shared/notification-settings-types.ts adds 'none' to customSoundId and the usesCustomNotificationSound helper, which returns false for 'none' and 'system'. src/renderer/src/components/notification-sound-options.ts adds the Silent entry with the VolumeX icon. src/main/persistence/applying-settings/onboarding-normalization.ts keeps 'none' during normalization. src/main/ipc/notification-sound-selection.ts returns missing-path for non-custom IDs, which blocks audio file resolution. The renderer skips playback in desktop-notification-sound.ts, NotificationStep.tsx, NotificationSoundSection.tsx, and notification-test-delivery.ts. The volume control is hidden for non-custom IDs. The PR description reports Settings and onboarding checks and focused tests (7 files, 16 tests). Native audio output on Linux/Windows was not exercised, so that behavior rests on code inspection. The coding requirement of the issue is met by the changed code.

Full details: Out of Scope Changes check

Explanation

The notification changes are within scope of #9146. They cover the shared type, the sound option list, normalization, sound-path resolution, playback and preview gating, the volume control, and the locale strings for the Silent label. The raw summary for src/renderer/src/i18n/locales/ko.json is contradictory. It states that a components.artifacts.typeMarkdown value changed, but it also states that the only visible hunk adds the silent translation "무음". The inspection of the ko.json diff returned no text because changed blobs are missing from the checkout. A file read of the head ko.json was truncated at 16000 bytes before the notifications section, so the typeMarkdown value could not be checked. The contradiction is unresolved, so an unrelated locale edit cannot be ruled out.

Resolution

Provide the ko.json hunk for the head and base revisions, or the full diff for that file. Confirm that the only changed line is the notification sound key "silent": "무음" and that components.artifacts.typeMarkdown is unchanged. If the typeMarkdown value changed, remove that edit or justify it as in scope.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42a0c162-a473-4152-a421-dde2753c3aa2
Commits

Reviewing files that changed from the base of the PR and between 0aa98e3 and a57862a.

Files selected for processing: 19

  • src/main/ipc/notification-sound-selection.ts
  • src/main/persistence/applying-settings/onboarding-normalization.ts
  • src/renderer/src/components/notification-sound-options.ts
  • src/renderer/src/components/notifications/notification-test-delivery.ts
  • src/renderer/src/components/onboarding/NotificationStep.tsx
  • src/renderer/src/components/settings/notifications/NotificationSoundSection.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/notifications/desktop-notification-sound.ts
  • src/shared/notification-settings-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@nwparker
nwparker merged commit 2424abf into main Nov 14, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: silent notifications

1 participant