anomalyco / anomalyco/opencode
Custom attention.sounds and sound_pack in tui.json have no effect
@simonklee is already working on this.
Since Jul 24, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Audio notifications work correctly in OpenCode, but custom notification sounds configured in tui.json do not seem to have any effect.
The default OpenCode notification sound is always played, even when overriding sounds with valid audio files.
Changing sound_pack also does not change the notification sound.
Additional information:
- Audio output works correctly in WSL2.
- paplay can successfully play the same .oga files.
- OpenCode notification sounds work, but configured overrides do not seem to be applied.
Plugins
No plugins installed
OpenCode version
1.18.4
Steps to reproduce
- Install OpenCode 1.18.4.
- Enable sound notifications in ~/.config/opencode/tui.json:
{
"attention": {
"enabled": true,
"sound": true,
"volume": 1
}
}
- Configure custom sounds:
{
"attention": {
"sounds": {
"done": "/usr/share/sounds/freedesktop/stereo/dialog-error.oga"
}
}
}
- Restart OpenCode.
- Trigger a notification (for example, run a command and wait for completion).
Expected:
The configured sound file should be played.
Actual:
The default OpenCode notification sound is played instead.
Screenshot and/or share link
No screenshot available. The issue is reproducible from configuration only.
Operating System
Windows 11 with WSL2 Ubuntu 22.04
Terminal
Warp terminal running Ubuntu in WSL2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.