feat(ai): 大幅提高音量前增加二次确认

避免 AI 突然拉高音量或打开直通,需用户确认后再写入设备。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fucheng
2026-09-11 16:41:56 +08:00
parent abd9033b49
commit a415c6bf2b
8 changed files with 307 additions and 13 deletions
+11
View File
@@ -927,6 +927,17 @@
"loadHistoryFailed": "Failed to load history: {message}",
"loadChatFailed": "Failed to load chat: {message}",
"toolResultFailed": "Failed to send tool result: {message}",
"riskyConfirm": {
"title": "Confirm a large volume increase?",
"descMax": "Volume will jump from {from} to maximum ({to} dB). A sudden max level can damage hearing or headphones. Continue?",
"descJump": "Volume will jump {delta} dB, from {from} to {to} dB. A sudden increase can damage hearing or headphones. Continue?",
"descDacDirect0db": "This will enable 0 dB volume passthrough: volume goes to maximum and cannot be adjusted. Headphones may become extremely loud.",
"descDacDirect12db": "This will enable -12 dB volume passthrough: volume will be fixed and cannot be adjusted. Headphones may suddenly get much louder.",
"fromUnknown": "the current level",
"confirm": "Confirm change",
"cancel": "Keep current volume",
"declined": "Dangerous volume change cancelled. Other settings will still be applied."
},
"history": {
"title": "Chat history",
"newChat": "Start a new chat",