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
@@ -288,6 +288,7 @@
|
||||
"currentModel": "Cấu hình hiện tại",
|
||||
"brandLogos": "Logo thương hiệu",
|
||||
"browserNotifications": "Thông báo tác vụ",
|
||||
"notificationSound": "Âm báo hoàn thành",
|
||||
"cliAppsCatalog": "Danh mục",
|
||||
"cliAppsFilter": "Bộ lọc",
|
||||
"engine": "Bộ máy",
|
||||
@@ -331,6 +332,7 @@
|
||||
"selectedModelValue": "Được đặt bởi mô hình đã chọn.",
|
||||
"brandLogos": "Hiển thị logo nhà cung cấp bên thứ ba và CLI trong Cài đặt.",
|
||||
"browserNotifications": "Chỉ thông báo khi trang này ở nền. Mặc định tắt.",
|
||||
"notificationSound": "Phát một tiếng chuông ngắn khi lượt kết thúc trong lúc trang này đang ở phía trước. Tắt theo mặc định.",
|
||||
"cliAppsCatalog": "Cài các công cụ dòng lệnh mà nanobot có thể dùng trên máy này. Các ứng dụng trên máy tính không bị thay đổi.",
|
||||
"cliAppsFilter": "Tìm theo ứng dụng, danh mục hoặc khả năng.",
|
||||
"logs": "Mở thư mục nhật ký của ứng dụng trên máy tính.",
|
||||
|
||||
Reference in new issue
Block a user