dsh-approval-notify: Desktop Notification for DSH Pending Approval Tool Invocation

Introduction

When running agents in DeepSeek Harness (DSH), tool calls often require you to click approve or deny within the interface. If experimental Auto review is enabled, approval requests asking you to make a decision also appear when a review fails. When the window is in the background and you are looking at another application, it is easy to miss such requests, leaving tasks stuck in a waiting state.

The community plugin dsh-approval-notify (maintainer: sakuraboy9128-cmd, SkillHub category: Client) displays a desktop notification when DSH is waiting for your approval of a tool call. On Windows, you can also click the notification to bring the DSH window to the foreground. The following sections describe its positioning, capabilities, and installation/configuration methods. Refer to the GitHub repository README for authoritative information.

What This Is

dsh-approval-notify is a DSH bundle that hooks into an existing profile and listens for approval/request events provided by @deepseek-ai/dsh-user-approval. When DSH needs you to approve or deny a tool call, it presents a localized title and body on the system side (derived from the request fields toolName, displayReason, and reason) rather than layering an additional UI on top of the DSH window.

It should be noted upfront: notifications are merely reminders and cannot replace decisions made in the DSH interface. Clicking a notification will not automatically approve any operation.

Core Features

Coverage of Approval Events

The plugin registers a listener in the approval service’s approval/request waterfall. According to the README, it covers all kinds of ask events thrown by the approval service, including requests generated under the ask approval policy of @deepseek-ai/dsh-experimental-auto-review — a typical scenario being when Auto review rejects a call, DSH then asks you, and you were not watching the window.

Notification Content and Deduplication

  • The title and body are rendered from the request’s own fields. When there is no tool name, it is marked as unknown; no guessing is made.
  • Within the configurable dedupeWindowMs window, duplicate requests with the same tool name and same reason are suppressed to avoid the same ask popping up twice. Different requests are still notified separately.

Platform-Specific Presentation

Platform Behavior (per README)
Windows 10/11 Uses a long-running PowerShell helper: prefers WinRT toast, and falls back to a screen-corner pinned card when unavailable
macOS Requires osascript, standard notifications, no click-to-focus for DSH
Linux Requires notify-send, standard notifications, no click-to-focus for DSH

On Windows, clicking a notification restores and focuses the DSH window. If DSH is not running, the configured executable is launched (a single-instance lock will bring up an existing window). When registerProtocol is set to true, the dsh-approval-notify:// protocol is registered to facilitate toast click-through focusing. The card presenter does not depend on this protocol; clicks are handed directly to the helper process.

Isolation from the Approval Pipeline

The implementation does not await its own I/O within the approval waterfall and does not throw errors outward: notification failures should not turn the approval result into a fail-closed unavailable, nor should they slow down other answerers.

Environment and Dependencies

  • DSH must mount the approval service (@deepseek-ai/dsh-user-approval); it is included by default in the official Desktop / Web profiles.
  • Node.js >= 20 (see engines in package.json).
  • No npm dependencies; the bundle uses only Node built-in modules.
  • Supported operating systems: win32, darwin, linux (see package.json).

Installation and Activation

When installing, add the bundle using a local absolute path. Do not use the github:owner/repo form constructed from the repository name (unless your environment documentation specifies otherwise). The command given in the official README is as follows:

dsh plugin --profile <profile> add /absolute/path/to/dsh-approval-notify

Replace <profile> with the profile for which you want to receive approval reminders. The README gives an example: desktop is a profile with Auto review built in. If the loader prompts for a restart, restart DSH. The CLI installs the package and writes the patch declared by the bundle into the profile, so that the approval-notify line enters the configuration.

After installation, it is recommended to first verify that the notification chain works properly:

node bin/cli.mjs test        # Pop up a test notification
node bin/cli.mjs doctor      # Print resolved inputs along the notification path
node bin/cli.mjs logs        # Follow plugin and helper logs

(Run the above commands in the plugin directory. You can also invoke them via the package’s bin name dsh-approval-notify; see package.json.)

Configuration

In the profile patch, the config of the approval-notify line supports the following fields (default values are listed in the README. Illegal values fall back to defaults and emit a warning in the plugin log):

Field Default Meaning
enabled true When false, the bundle remains active but does not send notifications
mode auto auto = try toast then card; also toast, popup, balloon, none
clickAction focus-dsh focus-dsh focuses or launches DSH; none does not handle clicks
locale auto auto follows the host; or zh, en
title '' Custom title; if empty, use the localized default
includeReason true Whether the body includes the request’s reason
maxBodyChars 220 Truncation length for title and body
dedupeWindowMs 4000 Deduplicate same tool+reason within these milliseconds; 0 disables
appId '' AppUserModelID for WinRT toast
dshExePath '' Executable to launch when there is no DSH window; if empty, auto-detected
windowTitleSuffix DeepSeek Harness Window title suffix used to match the window to focus
registerProtocol true Whether to register the dsh-approval-notify:// handler
popupTimeoutMs 12000 How long the card stays; hovering pauses the countdown
helperIdleMs 900000 How long the helper idles before exiting
sound true Whether to play a notification sound
dshExeCandidates [] Additional DSH executable paths to try

Example patch snippet:

- id: approval-notify
  name: 'dsh-approval-notify'
  config:
    mode: popup
    locale: zh
    dedupeWindowMs: 10000

If you no longer need the protocol handler, the README provides:

node bin/cli.mjs unregister-protocol

Typical Usage and Troubleshooting

  1. Install on the desktop (or the profile you actually use) using the command above and restart if necessary.
  2. Run node bin/cli.mjs test to confirm that your machine can emit notifications.
  3. Trigger a tool call that requires manual approval (or an Auto review ask), and observe whether a notification pops up and whether the log contains notified-type records (on Windows you can use node bin/cli.mjs logs).

Common issues (excerpted from the README’s troubleshooting table):

  • No notifications at all: the approval policy is set to never, the bundle is set to enabled: false, or mode is none. Check dsh-approval-notify logs.
  • Always a card, never a toast: when the host has no package identity, WinRT may return 0x80073D54. You can set mode: popup to skip the toast attempt.
  • Click does not focus: the primary verification path is on Windows; macOS/Linux do not provide click-to-focus in the first place.

The README verifies the listener, hot reload, toast, card fallback, click-to-focus, etc. on Windows 11 (build 26100), the DSH Desktop profile, and Node 24. The macOS/Linux presenters are marked as not tested in that environment.

Use Cases and Notes

Who it is for: developers who frequently run workflows in DSH involving approval or Auto review ask policies, and tend to leave the DSH window in the background.

Permissions and security: the plugin runs with the permissions of the current DSH process. Before installation, review the GitHub source code and the MIT license (package.json) yourself. The community catalog’s SkillHub plugin page has no official affiliation with DeepSeek / Hundsun. The DSH ecosystem emphasizes “everything is a plugin”, so third-party bundles should be evaluated at your own discretion.

Conclusion

dsh-approval-notify brings “DSH is waiting for you to approve a tool” to the desktop notification layer. On Windows, it can also bring you back to the DSH window in one click, reducing situations where tasks are stuck in the background without anyone noticing. The current package version is 0.1.0.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye