fix(webui): refine browser notifications (NAN-227)

Reconcile the original notification fix with the integrated main snapshot.

Group notification settings and simplify localized copy and documentation.
Preserve permission opt-out and notification click routing across app transitions.
Suppress late completion notifications for discarded temporary chats and align
notification settings skeletons with the loaded layout.
This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-20 13:45:04 +08:00
1 parent 7b2af031c0
commit 11152626f8
34 files changed
+728 -289

No files matched your search

+3 -2
View File
@@ -1003,9 +1003,10 @@ export class NanobotClient {
if (correlatedChatId) {
this.recordGoalStateSnapshot(correlatedChatId, parsed);
if (parsed.event === "turn_end" || parsed.event === "recovery_state") {
if ((parsed.event === "turn_end" || parsed.event === "recovery_state")
&& (this.knownChats.has(correlatedChatId) || this.temporaryChatIds.has(correlatedChatId))) {
for (const handler of this.taskNoticeHandlers) {
// Optional browser features must never interrupt delivery or cleanup.
// Optional browser features must not interrupt delivery or cleanup.
try { handler({ event: parsed, temporary: this.temporaryChatIds.has(correlatedChatId) }); }
catch { /* The notification owner reports its own delivery failure. */ }
}