Introduction¶
When running multi-session workflows with DeepSeek Harness (DSH), model replies often take tens of seconds or longer. After switching to another browser tab or another application, it’s difficult to tell at a glance “which session has finished” or “which one is waiting for your approval, plan review, or answer.” Repeatedly switching back to DSH to check status interrupts your work; ignoring it entirely makes it easy to miss nodes that require human intervention.
Below is the community plugin dsh-session-attention (maintainer renjianbuchai): inside the browser Web profile, when you’re not on the DSH window, it alerts you via three channels — system notifications, a red dot in the tab title, and a PWA taskbar badge; these clear automatically when you return to the window. It’s a pure client-side plugin, doesn’t modify DSH core files, and its behavior derives from the completion-alert logic built into DSH 0.1.x, rebuilt as an installable plugin on 0.2.x through public platform APIs.
What Is This¶
dsh-session-attention is a background reminder plugin for DeepSeek Harness, categorized as a client-side plugin. The current package version is 0.1.0, licensed under MIT.
The plugin does exactly one thing: remind you “it’s time to check DSH” at the right moments, and only triggers when you are no longer in front of the window (document.hidden || !document.hasFocus()), avoiding distraction when you’re already watching the interface.
Core Functions¶
When a session needs your attention, three signals fire simultaneously (each API no-ops individually if the browser doesn’t support it, while the others remain available):
| Signal | Description |
|---|---|
| System notification | Desktop notification; title carries a DSH · prefix (e.g. DSH · 回复已完成 / English DSH · Reply finished), body states the session name, icon uses the page-declared icon |
| Tab title red dot | Adds a ● prefix before the browser tab’s document.title; maintained by a MutationObserver, doesn’t take over the shell’s title rewriting |
| PWA taskbar badge | Calls navigator.setAppBadge(n), applicable to installed PWAs (Chromium-based) |
Triggered only at two moments (and the window must be in the background):
- Reply finished: a session’s
runningchanges fromtruetofalse. - Session is waiting for you: a session shows
pendingInteractionwith a type ofapproval,plan-review, orquestion.
Upon returning to the window, the three signals above clear immediately. Subagent sessions are skipped by design since they aren’t meant for your direct response.
Implementation-wise, the client subscribes to host-public observables: uiSession.sessionStatus and sessions.list, and derives the above edge transitions accordingly. On the host side, lib/index.js only declares the plugin — no file writes, no socket opening. Notifications are deduplicated per session using stable tags (done:<id> / pending:<id>); duplicate events trigger a renotify to alert again.
Installation and Enablement¶
Run this in an environment where a DSH web profile has already been configured (the command both adds the dependency and enables the plugin in the profile — no extra switches needed):
pnpm dsh plugin --profile web add github:renjianbuchai/dsh-session-attention
dsh plugin is a thin wrapper around pnpm, so you can also use local directories <dir>, github:<user>/<repo>, and other pnpm specs. Once the plugin enters the awesome-dsh-plugin directory, it can also be installed with one click from the DSH plugin marketplace (the community directory is an independent site, with no official affiliation to DeepSeek / High-Flyer).
Common sticking points:
- If pnpm reports
ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION, append--config.minimumReleaseAge=0to the same command (this is pnpm’s publish-cooldown policy, unrelated to the plugin itself). - Please allow the browser’s notification permission prompt. Without authorization, the tab red dot and PWA badge still work, but desktop notifications will not; the plugin will not re-prompt for permission inside a background event without a user gesture (browsers will ignore it).
Environment Requirements¶
- DSH:
>= 0.2.1-alpha.1 < 0.3.0-0(the README states development and verification were done on0.2.1-alpha.1) - Node:
>= 22.19.0(consistent with DSH’s Node requirement) - Uses the browser web profile; desktop notifications rely on the
NotificationAPI; taskbar badges rely onnavigator.setAppBadge(installed PWA, Chromium-based)
Debugging and Self-testing¶
After the plugin loads, the following are accessible from the browser console:
__DSH_ATTENTION__.permission // current Notification permission
__DSH_ATTENTION__.log // recent decisions: notified / skipped / failed, with reasons
__DSH_ATTENTION__.test() // sends a test notification through the plugin's same path
If real sessions never pop a toast but test() works, the plugin likely isn’t triggering; if log shows notified yet no toast appears, check the OS Focus Assist, Do Not Disturb, or per-app notification settings (Windows Focus Assist, etc.).
Use Cases and Notes¶
Suitable for: developers who run tasks in DSH Web for extended periods, frequently switch tabs or applications, and want a clear reminder “when background tasks finish or when a human action is needed.”
Notes:
- The plugin runs within the current DSH process and browser context; before installing, please review the source code and the MIT license yourself to confirm it meets your security and compliance requirements.
- Desktop toasts are rendered by the browser and OS; without
Notificationor if notifications are blocked by the system, you can only rely on the title red dot and PWA badge. - The behavior is ported from DSH 0.1.x’s built-in
completion-attention, preserving a similar experience on 0.2.x without patching the renderer.
Links¶
- Community directory page: https://www.skillhub.cn/plugins/renjianbuchai/dsh-session-attention
- Source code and full documentation: https://github.com/renjianbuchai/dsh-session-attention