Skip to content

fix(desktop,web): no notification sound while the screen is locked - #2

Merged
nSimonFR-ai merged 1 commit into
nicos/issues-nightly-0.1.10from
nicos/mute-sound-locked
Nov 21, 2026
Merged

nSimonFR-ai merged 1 commit into
nicos/issues-nightly-0.1.10from
nicos/mute-sound-locked

Conversation

@nSimonFR-ai

Copy link
Copy Markdown
Owner

Thread notification sounds no longer play while the Mac is locked (including a display asleep behind a password).

  • Desktop: new desktop:is-screen-locked IPC → powerMonitor.getSystemIdleState(1) === "locked", exposed as desktopBridge.isScreenLocked.
  • Web: playNotificationSound checks it before playing. Browser/mobile unchanged.
  • spec.md §9 added; new unit test "stays quiet while the desktop screen is locked".

Checked: typecheck (contracts, desktop, web), threadNotifications and notificationBadge tests green.

🤖 Generated with Claude Code

The desktop bridge exposes isScreenLocked (Electron powerMonitor idle
state "locked", which on macOS also covers a display asleep behind a
password). playNotificationSound checks it before playing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Nov 21, 2026
@nSimonFR-ai
nSimonFR-ai merged commit 36a7493 into nicos/issues-nightly-0.1.10 Nov 21, 2026
7 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant