dsh-windows-notifications: Windows Local Notification Toggle

Introduction

When using DeepSeek Harness (DSH) to handle agent tasks, you often need to keep an eye on events such as approvals, questions, and errors. Without notifications, users may miss critical state changes and have to frequently switch windows to check status. DSH’s Web Notification API renders as native Toasts on Windows, but by default there is no explicit toggle to control them. The dsh-windows-notifications plugin adds notification switches for six event types in the settings window, allowing users to enable or disable them as needed.

Plugin Overview

dsh-windows-notifications is a client-side plugin that provides Windows local notification toggles for DeepSeek Harness. Maintained by Orabla, it exposes configuration options in the settings window through Switch and Button primitives. It wraps the Web Notification API’s capabilities into a set of toggleable switches, supporting six events: approval, question, task completion, subtask completion, task error, and turn completion.

Core Features

The plugin provides six notification switches in the Windows notifications section of the DSH settings window:

  • Approval waiting: Awaiting approval (enabled by default)
  • Question for you: A question requires your response (enabled by default)
  • Task completed: Task finished (enabled by default)
  • Subtask completed: Subtask finished (disabled by default)
  • Task error: Task error occurred (enabled by default)
  • Turn completed: Turn ended (disabled by default)

See the README table for the default state of each switch. Switch values are stored in DSH_HOME/windows-notifications/settings.json (or ~/.dsh/windows-notifications/settings.json when DSH_HOME is not set). Changes take effect immediately and persist across restarts.

Installation & Activation

Install the plugin package from the repository:

dsh plugin --profile desktop add github:Orabla/dsh-windows-notifications

--profile specifies the profile of the DSH instance, typically desktop. The command installs the plugin package and registers the profile as a Bundle.

You can also clone the repository and install from a local directory:

dsh plugin --profile desktop add ./dsh-windows-notifications

After installation, enable Windows notifications in the DSH settings window and grant system notification permissions.

If Toasts are hidden, check the following:
- Windows Settings > System > Notifications — ensure DeepSeek Harness is allowed
- Turn off Focus assist or Do not disturb

Notification Text & Customization

Toggle the Custom notification text switch in the settings window to edit the Toast text. Each event type has its own template, and an overall title overrides the entire Toast. Supported variables:

  • {dot}: Event status icon
  • {kind}: Event name (in the current language)
  • {session}: Session title
  • {detail}: Event detail (when included in the event)
  • {time}: Local time of the event

An empty template falls back to the built-in text.

The Include the event detail switch determines whether an event displays a detail line:

Event Detail Content
Approval waiting Tool name and the reason provided by the agent
Question The question text
Task error Failure message
Task completed Last assistant reply of the completed turn (single line)

Events with details use {kind}\n{detail} as the built-in text. For example, a task completion shows the event name on the first line and the reply on the second. The detail is capped at 50 characters, but custom templates may include line breaks.

Behavior Notes

  1. Open the Windows notifications section in the settings window.
  2. Press the permission button first, then press the test button.
  3. After granting permission, the window reconnects to the event stream via ready=1.
  4. Only one permitted window receives events at a time; when a window disconnects, the other takes over.
  5. Clicking a notification opens the corresponding session via ctx.uiWorkspace.openSession.
  6. The test notification only focuses the DSH window.

Use Cases

Ideal for agent developers who need to continuously track DSH tasks on Windows, especially those who rely on Toasts to quickly identify approval, question, and error scenarios.

Note: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installing.

Summary

dsh-windows-notifications wraps DSH’s Web Notification capabilities into six toggleable notifications. Combined with custom templates and event details, it lets users receive task state change notifications on demand.

  • Directory page: https://www.skillhub.cn/plugins/Orabla/dsh-windows-notifications
  • GitHub: https://github.com/Orabla/dsh-windows-notifications
羽毛球分组比赛记分
小程序二维码

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

Xiaoye