2h0n/dsh-web-notification
2h0n★ 2JavaScript最后同步: 2026-08-14
Desktop notifications when the model finishes a reply in DeepSeek Harness
README 摘要
dsh-web-notification English 简体中文 Show a system-level Web Notification when the model finishes a reply in the DeepSeek Harness Web UI — whether or not the page is focused. Features - Fires a system notification on every completed reply: title 🐳 Model Replied , body = the user message of this turn - Falls back to the session title when no user message is available - Requests notification permission automatically at boot and on the first user gesture (Safari requires a gesture) - Deduplicates per turn, so a reply never notifies twice - No UI injection: mounts no visible elements Screenshots How It Works - Detection : the client watches every open session's snapshot turnEnds ( Map ); a turn count increase means one reply completed — multi-session replies each fire their own notification. The triggering user message text is read from the chat nodes. - Display : every notification uses a unique tag ( dsh-reply-done- - ) with renotify: true . Same-tag notifications have replace semantics — while the previous one is still visible, the replacement does not re-show a banner on macOS/Chrome. - Packaging : build.mjs wraps src/client/index.js in the window. ModuleLoader .load({ id, factory })…
在 GitHub 查看完整 README →