dsh-approval-reminder: Edge / Windows Desktop Notifications While Waiting for DSH Approval

Introduction

When running commands in DeepSeek Harness (DSH), if the sandbox denies the request or requires higher privileges, the host will pop up an approval panel above the session input box. If you are currently viewing another session, Edge is minimized, or the window is not in the foreground, this approval request is easily missed, and the command will remain pending.

The following is an introduction to the community plugin dsh-approval-reminder (maintainer In-clude): In the DSH Web interface, it reminds you via Microsoft Edge and Windows system notifications whenever there is a pending approval request; it does not participate in the approval decision and only reads a snapshot of the session status on the browser side.

What is this

dsh-approval-reminder is a pure JavaScript plugin for DSH Web + Microsoft Edge on Windows, with no dependencies and no build step. The current version is 0.2.0 (see package.json in the repository), licensed under MIT.

The host-side index.js is an empty shell (apply() {}); it does not register Services, Tools, or Configs. The core logic resides in the browser bundle client.js, which filters for sessions where pendingInteraction.kind === 'approval' by subscribing to uiSession.sessionStatus. It never intercepts approval/request, so it does not alter any approval results.

Core Functionality

When to send notifications

The plugin attempts to send a system notification for every pending approval request according to the following rules:

  • Do not send if the page is visible and in the foreground (document.visibilityState === 'visible' and document.hasFocus())—the approval panel is already on the screen.
  • Remind only after the page switches to the background, is minimized, or loses focus; each request is reminded only once.
  • After returning to the page, the displayed notification will be automatically closed.

Notification content and interaction

  • Title: Approval Required
  • Body: The reason provided by the requester (or a default text like “Tool pwsh requested to run with higher privileges”) + the name of the session.
  • Click Notification: Calls uiWorkspace.openSession(sessionId) and window.focus(), switching back to the corresponding session and bringing Edge to the foreground.
  • After approval is answered, cancelled, or withdrawn: The corresponding notification is automatically closed.
  • Consecutive requests in the same session will replace the old notification (tag is deduplicated by session), preventing the notification center from cluttering up.

Settings Entry

After installation, you can enable permissions in Settings → General → Approval Desktop Notifications and use Send Test Notification to verify the channel without triggering a real approval.

Installation and Enablement

Prerequisites: Microsoft Edge is allowed in Windows Settings → System → Notifications; not in Focus Assist/Do Not Disturb mode; the DSH Web tab remains open (can be minimized, but notifications will stop if the tab is closed).

On a machine with DSH installed, choose one of the following methods:

# Install from GitHub (pnpm GitHub shorthand)
dsh plugin --profile web add In-clude/dsh-approval-reminder

# Or install from local directory (for development)
dsh plugin --profile web add "D:\path\to\dsh-approval-reminder"

You can also install, enable, disable, or uninstall it in the Settings → Plugins page of DSH Web. No DSH restart is required after installation; simply refresh the browser page to take effect.

Uninstallation example:

dsh plugin --profile web remove dsh-approval-reminder

Typical Usage

Initial Notification Authorization

Browsers only allow notification authorization to be triggered by a user gesture. You can choose one of the following:

  1. On the first click or key press after the page loads, the plugin will request notification permission once (at most once per page load);
  2. Open Settings → General → Approval Desktop Notifications and click “Enable”.

If you have clicked “Block” before, please change the notification permission back to “Allow” via the site icon to the left of the Edge address bar, then refresh the page.

Verifying Effectiveness

  1. Use Send Test Notification on the settings page to confirm the channel is available.
  2. Trigger a real approval: When you are looking at the conversation page, no notification should appear; it should appear after switching to another window or minimizing Edge; the notification should close automatically after returning to the page.
  3. Clicking the notification should return to the corresponding session; after allowing or denying in the panel, that notification should disappear.

The README records that the above behavior has been tested and passed on Windows + Edge (DSH Web 127.0.0.1) (reminder timing logic in 0.2.0).

Use Cases and Notes

Target Audience: Developers who primarily use Edge on Windows to open DSH Web and frequently switch between multiple windows/tasks; who want to receive reminders on the desktop side when approvals are pending, rather than staring at the same tab.

Limitations (from README):

  • Only effective for browser sessions; headless / API sessions do not have notifications.
  • Chromium (Edge) on Windows does not support “Allow/Deny” buttons on notifications; you must click the notification to return to the session to answer.
  • Whether notifications pop up depends on Windows notification settings and Focus Assist; the plugin cannot override this.
  • When multiple tabs are open simultaneously, each page notifies the requests received by that page independently.
  • No reminders after the page is closed (does not use Service Worker / Push).
  • Not covered: Full verification of scenarios such as macOS / Linux desktop notifications, multi-tab race conditions, etc.

Security and Permissions: The plugin is loaded as a web plugin entry for the current DSH profile and runs in the browser context. It is recommended to review the source code and MIT license on the GitHub repository before installation. It does not modify the approval chain, only observes client state.

The DSH ecosystem emphasizes “Everything is a Plugin”; the plugin directory site entry on SkillHub has no official affiliation with DeepSeek / High-Flyer. Please refer to the repository and commands you trust for installation sources.

Conclusion

dsh-approval-reminder solves the reminder problem of “the approval panel is on the page, but the person is not in front of the page”: it pops up Windows/Edge notifications when suspended in the background, automatically collects notifications when returning to the foreground, and returns to the session upon clicking. You can get instructions and installation commands from the directory page or GitHub if needed.

  • Directory Page: https://www.skillhub.cn/plugins/In-clude/dsh-approval-reminder
  • GitHub: https://github.com/In-clude/dsh-approval-reminder
羽毛球分组比赛记分
小程序二维码

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

Xiaoye