anomalyco / anomalyco/opencode

Custom attention.sounds and sound_pack in tui.json have no effect

Open
#38,755 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Install OpenCode 1.18.4.
  2. Enable sound notifications in ~/.config/opencode/tui.json:

{
"attention": {
"enabled": true,
"sound": true,
"volume": 1
}
}

  1. Configure custom sounds:

{
"attention": {
"sounds": {
"done": "/usr/share/sounds/freedesktop/stereo/dialog-error.oga"
}
}
}

  1. Restart OpenCode.
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.