[PR #13538] feat(app): add sound notification for agent questions #14709

Open
opened 2026-02-16 18:19:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13538

State: open
Merged: No


What does this PR do?

closes #13532

Adds a new sound notification setting for when the agent asks a question. Users can now hear a sound (default: "yup-01") when a question event is received, in addition to the existing desktop notification.

image

How did you verify your code works?

Manual test to ensure:

  • sound is played when question event received
  • turning off the sound disables question sounds
  • the question sound can be customized, similar to other sound settings

Files changed

File Change
packages/app/src/context/settings.tsx Added questionEnabled and question fields to SoundSettings interface with default "yup-01"
packages/app/src/pages/layout.tsx Added sound playback logic in the question.asked event handler
packages/app/src/components/settings-general.tsx Added new UI row for question sound toggle and selector
packages/app/src/i18n/en.ts Added English translations for question sound settings
`packages/app/src/i18n/*.ts (15 other files) Added translations for all other supported languages
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13538 **State:** open **Merged:** No --- ### What does this PR do? closes #13532 Adds a new sound notification setting for when the agent asks a question. Users can now hear a sound (default: "yup-01") when a question event is received, in addition to the existing desktop notification. <img width="695" height="312" alt="image" src="https://github.com/user-attachments/assets/263ede36-89da-48b1-87bb-d81ef2838cf6" /> ### How did you verify your code works? Manual test to ensure: - sound is played when question event received - turning off the sound disables question sounds - the question sound can be customized, similar to other sound settings ### Files changed | File | Change | |------|--------| | `packages/app/src/context/settings.tsx` | Added `questionEnabled` and `question` fields to `SoundSettings` interface with default `"yup-01"` | | `packages/app/src/pages/layout.tsx` | Added sound playback logic in the `question.asked` event handler | | `packages/app/src/components/settings-general.tsx` | Added new UI row for question sound toggle and selector | | `packages/app/src/i18n/en.ts` | Added English translations for question sound settings | | `packages/app/src/i18n/*.ts (15 other files) | Added translations for all other supported languages |
yindo added the pull-request label 2026-02-16 18:19:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14709