dsh-notify-ar: Windows Actionable Toast Notifications (Arabic Priority)

Introduction

When running agents in DeepSeek Harness (DSH), users are often not in front of the main window: tasks finish, requiring a click on “Continue,” or sandbox permission requests pop up, requiring a switch back to the application to take action. While community notification plugins like dsh-notify exist, the README and maintainer notes indicate that their implementation uses activationType="background", meaning buttons on the Toast often only display without triggering valid actions, and the text is hardcoded in Chinese. dsh-notify-ar targets the Windows desktop to provide Toasts with actionable buttons: when the application is still running (including minimized), users can directly approve/reject permissions, continue, stop, or open DSH. It also supports Arabic/English and RTL (Right-to-Left) layouts. The maintainer is qusaykhadour, the plugin is categorized as a client-side extension, and the community directory entry can be found at SkillHub. The source code and documentation are available on GitHub.

What is this

dsh-notify-ar is a Cordis plugin for DSH (npm package name dsh-notify-ar, version 0.1.1 according to current information) that pushes session status and permission decisions to the system notification center via native Toasts on Windows. The default language follows the DSH application language, but can also be specified as auto, ar, or en in the configuration. The notifications use a separate app identity Qusay.DshNotifyAr and do not share the same AUMID storage with PowerShell notifications.

Core Features

The buttons and effects for each notification type are described below (consistent with the table in the repository README).

Scenario Button Effect
Permission Request Approve (موافق) Grants permission without opening the main window
Task Finished Continue Resumes the agent from the stop point
Task Running Stop Ends the current turn (queue is preserved)
Any Open App Brings the DSH window to the foreground

Other verified capabilities:

  • Bilingual interface and RTL layout.
  • Each notification carries a 128-bit random nonce, valid for a single use; replayed or forged clicks are rejected. The allowed action whitelist consists of approve, reject, continue, stop, and open.
  • Permission-related Toasts only appear when the agent explicitly requests sandbox_permissions and includes a justification; ordinary rejections are handled directly by the sandbox without additional pop-up prompts.

Installation and Activation

The plugin is installed via the DSH desktop profile. After installation, a one-time setup execution is required, followed by a DSH restart. The official commands are as follows (from the GitHub README):

dsh plugin --profile desktop add dsh-notify-ar
node "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-notify-ar\scripts\setup.mjs"

setup.mjs performs three tasks: it compiles click-gateway.exe using the local csc.exe (without downloading additional installation packages); it registers the AUMID via a “Start” menu shortcut; and it registers the dshnar:// protocol pointing to that executable. The documentation explains that Windows cannot use powershell.exe or cmd.exe as Toast activation targets (buttons would display but remain unresponsive), necessitating a real executable file as a click gateway.

Runtime Environment (from package.json): Node >= 22.5; peer dependency @deepseek-ai/cordis ^4.0.1. License: MIT.

Configuration

Configuration is injected via cordis.patch.yml under the profile. Example fields are as follows:

- id: dsh-plugin-notify-ar
  name: dsh-notify-ar
  config:
    locale: auto          # auto | ar | en
    enabled: true
    rootsOnly: true       # Root sessions only, excluding sub-agents
    notifyApproval: true  # Permission notifications and buttons
    cooldownMs: 10000     # Minimum interval between two notifications in the same session (milliseconds)
    aumid: Qusay.DshNotifyAr

Adjust locale, rootsOnly, notifyApproval, and cooldownMs as needed in your DSH desktop profile.

Typical Usage and Self-Testing

For daily use, no separate CLI is required: once the plugin is enabled, the setup is completed, and DSH is restarted, simply handle Toasts in the Windows Notification Center. The maintainer provides local verification scripts in the repository (for development or troubleshooting reference):

cd Projects\notify-ar\plugin
node scripts/test-toast.mjs          # Build XML and display in Arabic
node scripts/test-pipeline.mjs       # Complete click chain and security (9 tests)
node scripts/test-approval.mjs       # Approval logic (26 tests)
node scripts/test-approval-wire.mjs  # Approval end-to-end
node scripts/smoke.mjs --action continue   # Real Toast and wait for click

The path Projects\notify-ar\plugin is a development directory example from the README; users who installed via npm should use the scripts with the same names found under node_modules\dsh-notify-ar\scripts\.

Use Cases and Limitations

Suitable for: Users who primarily use the DSH desktop version on Windows and wish to continue/stop tasks or handle sandbox permissions via notifications without returning to the main window; scenarios requiring Arabic-first or bilingual (Arabic/English) Toasts.

Limitations you must be aware of (from the “Boundaries” section of the README):

  1. Buttons can only directly drive the agent when the DSH process is still running (including minimized); if the application has exited, the button will instead open the app.
  2. Windows retains only one valid action per Toast: the notification disappears after the first click, so the rule is “one decision per notification.”
  3. The installation setup requires operations such as writing to the registry. Permissions within the DSH sandbox are insufficient for this, so installation should be completed in an environment with the appropriate privileges.
  4. The click gateway passes events via a JSONL file, which theoretically could be written to by other local processes; the plugin relies on one-time nonce validation and the action whitelist as practical safeguards.

The DSH ecosystem emphasizes that “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek or Quantwai. Before installation, please consult the source code and LICENSE yourself to ensure that the plugin’s behavior when running under the current DSH process privileges complies with your security policy.

Summary

dsh-notify-ar turns Windows Toasts into an operable remote console: continuing, stopping, opening the window, and batch approval of permissions, with priority support for RTL and bilingual Arabic-English. If you are constrained by the experience of “only being able to view notifications but having to switch back to the app to click,” you can install the desktop profile plugin and run setup.mjs using the official commands.

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

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

Xiaoye