feat(webui): add completion notification sound preference
When a turn finishes while the user is watching the page there is no audible cue; the existing browser notifications only cover the background case. Add a `notificationSound` local preference (off by default, next to `browserNotifications`) and play a short bundled chime from the `turn_end` handler only while the page is visible, so background tabs stay silent. - webui/src/lib/notification-sound.ts: visibility- and preference-gated playback of the bundled /notification.wav, one reused Audio element - Overview settings toggle with localized copy in all 10 locales - Tests cover the default-off, visible, hidden, reuse and playback-rejection paths
This commit is contained in:
1 parent
3ecc3d3556
commit
7c2bf8949c
17 files changed
+156
No files matched your search
@@ -330,6 +330,7 @@
|
||||
"codeWrap": "Quebra de linha no código",
|
||||
"brandLogos": "Logos de marca",
|
||||
"browserNotifications": "Notificações de tarefas",
|
||||
"notificationSound": "Som de conclusão",
|
||||
"maxResults": "Máx. de resultados",
|
||||
"timeout": "Tempo limite",
|
||||
"jinaReader": "Leitor Jina",
|
||||
@@ -375,6 +376,7 @@
|
||||
"codeWrap": "Mantém linhas longas de código legíveis em telas menores.",
|
||||
"brandLogos": "Mostra logotipos de provedores terceiros e de CLIs em Configurações.",
|
||||
"browserNotifications": "Notifica somente quando esta página está em segundo plano. Desativado por padrão.",
|
||||
"notificationSound": "Toca um breve sinal sonoro quando um turno termina enquanto esta página está em primeiro plano. Desativado por padrão.",
|
||||
"maxResults": "Número máximo de resultados por busca na web.",
|
||||
"timeout": "Segundos antes de uma requisição de busca expirar.",
|
||||
"jinaReader": "Usa o Jina Reader para ler páginas web quando disponível.",
|
||||
|
||||
Reference in new issue
Block a user