dsh-helper-plugin-notify-away: System Notification Triggered by DeepSeek Harness Exit

Preface

When running a longer task in DeepSeek Harness (dsh), developers often switch to other windows, tabs, or another helper instance. The Web UI sidebar shows a green “Done” dot while you’re watching, but once you look away, it’s easy to miss when a round ends or the agent pauses waiting for your approval or answers.

The community plugin dsh-helper-plugin-notify-away (maintainer x102201) converts “session is idle” or “waiting for your action” into OS-level toasts: via the host chrome.webview.postMessage in dsh-helper, or the Notification API in system browsers. By default it notifies even when you’re watching the session; enabling “Only when away” on the card makes it stay silent only when you’re viewing that session in the current instance.

What This Is

dsh-helper-plugin-notify-away is a client-side (system-notification) plugin for the DeepSeek Harness Web profile, categorized as a client component. It does not write its own session-event vocabulary; it only reads the same sessions list snapshot and pendingInteractions as the sidebar. It does not click approvals or answer questions for you.

Repository: github.com/x102201/dsh-helper-plugin-notify-away
Directory page: skillhub.cn plugin page
License: MIT (README badge); package version 0.1.0, README states compatibility with dsh 0.1.5-rc.2.

Core Features

When Notifications Fire

Trigger Behavior
Completion edge Fires when a session’s running transitions from true to idle in the list. First observation only records state; sessions already idle at load won’t fire a retroactive toast.
Wait edge Fires when uiSession.pendingInteractions for that session newly contains requests awaiting your action. During waiting, running remains true, so the completion watcher won’t misfire. Known types: approval, question, plan review; other types fall into otherWait, which can be disabled separately in config.

“Only When Away” Gate

  • Off by default (onlyWhenAway: false): toasts fire whenever the above edges occur regardless of focus.
  • When enabled: stays silent only when you’re viewing that session in this instance (panel on screen, helper in front, list.current matches); hidden tabs, other instances, blurred windows, background session ends or blocks still notify.
Viewing the session in this instance   →  muted
Other instance / other window / other tab →  system notification (completed or waiting for you)

Root Sessions and Subagents

  • Completion edges ignore subagent rows by default (origin: 'subagent' or has parentId) to avoid flooding from parallel subtasks; set includeSubagents: true to notify them too.
  • Wait edges are not constrained by this switch: subagents blocking on your side will still toast.

Other Behaviors

  • Deduplication: each toast is tagged notify-away:<sessionId>, so duplicates replace rather than stack.
  • Click: focuses the window and calls ctx.sessions.open(sessionId); on the helper side it jumps back via the dsh-helper-notify-click event.
  • Permissions: dsh-helper embedded panels need no extra permission; system browsers request notification permission on first click or keypress (Safari grants only on gesture), and macOS additionally requires allowing notifications for the browser in System Settings.

Installation and Activation

Prerequisite: dsh plugin passes arguments to pnpm, so ensure pnpm is on PATH (e.g., corepack enable pnpm); otherwise the CLI errors pnpm not found on PATH and exits with code 127.

The package is pure ESM + ModuleLoader client factory with no build step, no runtime dependencies, and no pnpm allowlist build script needed at install.

Install from GitHub

dsh plugin --profile web add github:x102201/dsh-helper-plugin-notify-away

Pin a revision when you need reproducible versions:

dsh plugin --profile web add github:x102201/dsh-helper-plugin-notify-away#<tag-or-commit>

The path must be absolute, or relative to the working directory at command execution:

dsh plugin --profile web add link:/absolute/path/to/dsh-helper-plugin-notify-away

link: symlinks to the checkout; edits to index.js / client.js / lib/*.js take effect after restarting dsh web, no reinstall needed.

Mount and Verify

Restart the Web profile after installation:

dsh web

Check that the composed config contains the notify-away host line:

dsh --profile web --dump-config | grep -A2 notify-away

Grant notification permission on first use in a system browser per the page prompt; dsh-helper embedded panels do not need this step.

Uninstall

dsh plugin --profile web remove dsh-helper-plugin-notify-away

Typical Usage

  1. Install the plugin for --profile web using the commands above and run dsh web.
  2. Start a long-running task in the Web UI and switch to another app or tab.
  3. When the root session goes idle, or an approval / question / plan review awaits you, a system notification titled with the session name should appear; clicking it should focus the Web UI and open that session.
  4. If you want “no toast while watching this session”, toggle Only when away on the Plugins → dsh-helper-plugin-notify-away card in the sidebar; when viewing that session in this instance in the foreground, it should no longer toast, but switching away or background completions should still notify.

Configuration items are intended to be modified via the seven toggles on the same card; clicking writes immediately, no Save button. They’re written into the profile’s cordis.patch.yml user layer, take effect immediately, and require no restart. The host validates the same keys on load (unknown keys or type errors cause startup failure).

Default config example (all optional; empty mapping uses defaults):

- id: notify-away
  config:
    onlyWhenAway: false
    includeSubagents: false
    body: Task finished.
    completion: true
    approval: true
    question: true
    planReview: true
    otherWait: true
Key Type Default Meaning
onlyWhenAway boolean false When true, mutes only while viewing that session in this instance
includeSubagents boolean false Whether completion notifications include subagents
body string Task finished. Notification body (for completions; waits have their own copy logic)
completion boolean true Notify on session idle completion
approval boolean true Notify on approval waits
question boolean true Notify on question waits
planReview boolean true Notify on plan review waits
otherWait boolean true Notify on other wait types

If you don’t install the full package and only want to try the host line, the checkout provides examples/standalone.patch.yml; the browser side must still resolve the package name dsh-helper-plugin-notify-away via link: (depends on the dsh.client declaration in package.json).

Use Cases and Notes

Good for: developers who run agents via dsh web or dsh-helper for long periods, frequently collaborate across windows, and want “system tray / notification center reminders only when away from the session”.

Notes:

  • The plugin runs as part of the current DSH Web process and user config; review the repo source and MIT license before installing to ensure it matches your environment policy.
  • The community directory skillhub.cn is an independent site with no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, and this plugin is one client notification link in that chain.
  • Node engine requirement >=20 (see package.json).

Conclusion

dsh-helper-plugin-notify-away maps “round ended” and “waiting for you” in the Harness to clickable system toasts, and uses “only when away” to align with the habit of “don’t disturb while watching, remind only after switching away”. For details, the repo README (including README.zh.md) is authoritative.

  • Directory page: https://www.skillhub.cn/plugins/x102201/dsh-helper-plugin-notify-away
  • GitHub: https://github.com/x102201/dsh-helper-plugin-notify-away
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye