Skip to content

Add an opt-in completion sound for focused replies - #4828

Merged
ashhart merged 6 commits into
mainfrom
lead/desktop-completion-sound
Nov 28, 2026
Merged

ashhart merged 6 commits into
mainfrom
lead/desktop-completion-sound

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changed:

  • Add a separate Completion sound toggle in Runtime Settings. It is off by default, including for existing profiles where the key is absent.
  • Keep Run notifications independent. Disabling background notifications does not disable an explicitly enabled completion sound.
  • Preserve focused-only playback, known-thread and private-thread exclusions, and per-thread/run deduplication. Background completions produce no additional sound.
  • Keep existing notification-only consumers compatible without a new required callback. The completion preference defaults to the live setting at the small routing boundary, so an absent setting stays off and explicit opt-in works.
  • Preserve the preference in workspace backups and validate restored values as booleans.
  • Add regression controls for an opted-in background completion and focused error, plus backup round-trips with the preference enabled and with the selected-settings key absent.
  • Add no audio asset, dependency, network call, telemetry, setting migration, or engine path change.

Tests:

  • A legacy completion fixture without the new callback failed before with a missing-function error. All 7 focused attention blocks pass after the fix, including ordinary background completion, absent settings and explicit opt-in.
  • Distinct opted-in background-done and focused-error events remain silent while retaining the existing disabled-preference controls.
  • Workspace-backup archive and record-validation suites pass. Round-trip coverage now includes false, true and an absent completionSound key in selected settings.
  • Syntax and whitespace checks pass. Repository static checks report zero errors and warnings, with no new lean findings and no touched-source cap violation.
  • The standard app runner, full strict type check, packaged desktop UI and real audio output were not run.

Fixes #4714

Test status: the focused checks above ran under a local TypeScript runtime with test shims. This PR's CI runs the app's standard test runner and typecheck.

@ashhart
ashhart force-pushed the lead/desktop-completion-sound branch from cfeac78 to 4339ccc Compare November 28, 2026 19:15
@ashhart
ashhart merged commit a893f02 into main Nov 28, 2026
1 of 16 checks passed
@ashhart
ashhart deleted the lead/desktop-completion-sound branch November 28, 2026 19:16
ashhart added a commit to jschmied/TensorFold that referenced this pull request Nov 28, 2026
ashhart added a commit that referenced this pull request Nov 28, 2026
ashhart added a commit that referenced this pull request Nov 28, 2026
ashhart added a commit that referenced this pull request Nov 28, 2026
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.

Desktop: provide an audible cue when a foreground reply finishes

1 participant