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
@@ -516,6 +516,7 @@
|
||||
"codeWrap": "代码换行",
|
||||
"brandLogos": "品牌图标",
|
||||
"browserNotifications": "任务通知",
|
||||
"notificationSound": "完成提示音",
|
||||
"maxResults": "搜索结果数量上限",
|
||||
"timeout": "搜索超时(秒)",
|
||||
"jinaReader": "Jina Reader",
|
||||
@@ -561,6 +562,7 @@
|
||||
"codeWrap": "让长代码行在小屏幕上也易读。",
|
||||
"brandLogos": "在设置中显示提供商和命令行应用的品牌图标。",
|
||||
"browserNotifications": "仅在页面位于后台时通知,默认关闭。",
|
||||
"notificationSound": "回合结束且页面处于前台时播放短促提示音,默认关闭。",
|
||||
"maxResults": "每次网络搜索最多返回多少条结果。",
|
||||
"timeout": "每次搜索请求最长等待多久。",
|
||||
"jinaReader": "读取网页时,优先使用可用的 Jina Reader。",
|
||||
|
||||
Reference in new issue
Block a user