Preface¶
When running conversations in DSH Desktop, state changes after a background conversation ends are easily overlooked. If a long-running task is closed midway or completes, there is no explicit system-level alert, making it easy to miss points that require human intervention. Existing solutions either rely on in-app state or require manual log inspection, lacking a system-level attention prompt.
Plugin Overview¶
dsh-task-notifications is a third-party plugin that detects when the main conversation in DSH Desktop finishes while running in the background on Windows. It highlights the taskbar button and displays a silent system notification. The plugin does not modify the registry, does not install system services, and does not launch a separate persistent helper process. It solely reads state through DSH’s plugin interface and invokes the Windows notification API.
Core Features¶
Conversation Completion Reminder¶
When DSH Desktop is running in the background, a reminder is triggered upon completion of the main conversation. Sub-agents, individual scheduled task rounds, intermediate rounds of automatic Goal continuation, and user-initiated cancellations do not trigger a reminder. No notification is sent when DSH is in the foreground.
Taskbar Highlight¶
The taskbar window requests a highlight state. If DSH is hidden to the system tray, the plugin will still attempt to send a notification, though no taskbar button will be present at that time. Automatic reminders do not steal focus and do not alter the tray icon.
Notification Privacy and Title Control¶
Notifications include the conversation title by default. Title display can be turned off in the plugin settings page; after saving, subsequent notifications will no longer display the title. The plugin only reads DSH’s current title and does not read message body content directly. Windows may retain historical notification titles in the Notification Center or on the lock screen; turning off this setting does not delete historical notifications. When multiple conversations are merged or no title is available, a generic message is used. This setting persists across updates.
Notification Invocation (Windows 11 Only)¶
The standard packaged DSH Desktop registers the dsh protocol with Windows upon launch. On Windows 11, the plugin attaches a fixed dsh://open invocation action, so clicking the notification can attempt to bring the DSH window to the foreground. Windows 10 Toast notifications do not dispatch protocol activation; the plugin marks invocation as unavailable, the notification prompts the user to switch back manually, and clicking only dismisses the notification. On Windows 11, clicking does not guarantee the system will actually bring the window to the front—it only attempts invocation. You can verify the protocol association using Win + R → dsh://open.
Diagnostics and Testing¶
The plugin detail page provides “Notification Privacy,” “Test Notification,” and “Notification Diagnostics.” The test notification uses a fixed sample and does not call the model. After clicking “Test in 10 seconds,” switch to another application or minimize DSH, then return and click “Refresh” to check taskbar highlighting, system notification, title handling, and the invocation action.
Installation and Activation¶
Release Build Installation¶
- Visit GitHub Releases to download the corresponding version.
- In DSH, open “Plugins → Add Plugin.”
- Select the downloaded package (
.tgzfile). - Before upgrading, uninstall the old version; the legacy prototype
@local/dsh-taskbar-testshould also be uninstalled to avoid duplicate reminders.
Development Build Installation¶
- Run
npm ciin the plugin repository root directory. - In DSH’s “Plugins → Add Plugin,” select this repository directory.
- Keep the local link; subsequent modifications should be made in this repository.
- After host and client code changes, reload or restart DSH as prompted during installation, then open the plugin detail page.
Uninstallation¶
Simply disable or uninstall it from the plugins page. The plugin does not modify the registry, does not install system services, and does not launch a separate persistent helper process.
Environment and Limitations¶
Supported Environments¶
- Windows DSH Desktop
0.2.2-rc.5(strictly pinned) - Windows PowerShell 5.1
- Available desktop Win32/WinRT interfaces
- DSH’s Windows notification sender registration
Unsupported Scenarios¶
- Web standalone deployment
- macOS
- Other unverified DSH versions
- Waiting for replies, waiting for approval, or conversation deep links
- Notification invocation on Windows 10
System Limitations¶
Group Policy, Do Not Disturb mode, or notification permissions may restrict notification behavior. Banner click behavior, Notification Center retention, and click actions are determined by Windows. Notification text follows the Windows display language: Chinese systems display Chinese, other display languages fall back to English, and DSH’s UI language does not override this independently.
Version Pinning¶
The engines.dsh field in package.json is strictly pinned to 0.2.2-rc.5. DSH will disable plugin entries that do not meet the version requirement, so after a DSH upgrade, this plugin will remain disabled until a matching new version is released. Each verified DSH version should have a corresponding plugin version published; the range should only be widened after acceptance testing passes on the new version.
Regression and Release¶
The repository provides test scripts:
npm test: runs unit checksnode check.mjs <DSH_main_process_PID> "<full_path_to_DSH_executable>": read-only probe
Release process:
- Test on Windows 10 22H2 and Windows 11: title enabled by default, disabled, and re-enabled (including restart). Test the plugin settings page, and separately verify click behavior for the banner, Notification Center, and when hidden in the tray. On Windows 10, clicking only dismisses the notification—verify the manual switch-back prompt is sufficient.
- Update
version, runnpm testand the read-only probe. - Run
npm pack --ignore-scripts, record the SHA-256, create a tag, uploaddsh-task-notifications.tgz, and include the SHA-256 in the release notes. - Install the package in a clean profile and verify installation, usage, and uninstallation.
Environments that have not passed testing should not be listed as supported.
Use Cases¶
Suitable for users who run DSH Desktop for extended periods on Windows and need system-level notifications to monitor background conversation status. Before installing, it is recommended to review the source code and license (MIT), and confirm compatibility with the current DSH version.
References¶
- Plugin directory page: https://www.skillhub.cn/plugins/Magicqy/dsh-task-notifications
- GitHub repository: https://github.com/Magicqy/dsh-task-notifications