跳到正文

omdsh-dev/dsh-notification

495最近提交 2026年8月13日

dsh-notification DSH 插件

dsh-notification 在 DeepSeek Harness Web GUI 中为会话完成添加系统通知。无需修改 Harness:宿主提供会话投影,客户端监听会话列表的完成提醒。设置位于“设置 > 通知”,包括结果类型开关、关键词规则以及手动关闭选项。

如何安装 dsh-notification DSH 插件

dsh plugin --profile web add https://github.com/omdsh-dev/dsh-notification/archive/refs/tags/v0.1.2.tar.gz

复制不会执行命令。安装 dsh-notification DSH 插件前请核对仓库和版本。

dsh-notification DSH 插件数据来源

dsh-notification DSH 插件快照日期:2026年8月16日

discovered

dsh-notification DSH 插件能做什么

  • 会话完成一个回合时,通过浏览器 Notification API 显示系统通知。
  • 可按回合结束原因(完成、错误、中止、阻塞、Token 限制)分别开启/关闭通知。
  • 支持包含/排除关键词规则,匹配会话标题、回复文本和工具名称,支持字面量或正则匹配。
  • 可要求手动关闭通知,或自动关闭;可设置仅当会话不在视图内时才通知。

dsh-notification DSH 插件适合哪些场景

  • 切换标签页时及时知道长期运行的任务完成。
  • 只关注错误或阻塞的完成,忽略常规成功通知。
  • 通过关键词排除常见模式(如“测试”、“预览”)避免通知噪音。

dsh-notification DSH 插件适合谁

  • 需要同时在多个浏览器标签页中工作的 DSH 用户。
  • 希望精细控制哪些完成触发桌面通知的用户。

dsh-notification DSH 插件的限制

  • 通知需要页面保持打开且授予 Notification 权限;若权限被拒绝,无法在页面内覆盖。
  • 每个完成回合仅触发一次通知(运行→空闲状态变化);页面断开连接期间发生的完成不会在重新连接后重新通知。
  • 规则匹配仅针对会话标题和最后一个回合的回复文本及工具名称——不匹配更早的回合。
  • 通知正文为纯文本片段;点击通知仅聚焦窗口,无法跳转到具体回合。

dsh-notification DSH 插件的仓库 README 摘录

以下文字摘自 dsh-notification DSH 插件的上游仓库 omdsh-dev/dsh-notification 的 README,版权归原作者,仅作引用。

Desktop notifications for the DeepSeek Harness web GUI. When a session finishes a turn, the browser shows a system notification (via the `Notification` API), so you can switch tabs and still know when DSH is done. Per-outcome toggles and include/exclude keyword rules control exactly which completions notify. No harness change is needed: the host contributes a session projection (a bounded summary of each session's last completed turn), and the client watches the session list's completion reminder and applies its own persisted preferences. ``` host: notification projection (last turn's reason/text/tools) --session/projection--> browser client: session list completion reminder (live, dedup) + persisted settings -> permission + current-session visibility gate -> new Notification("DSH finished", { body: "deploy done" }) ``` ## Install ```sh dsh plugin --profile web add https://github.com/omdsh-dev/dsh-notification/archive/refs/tags/v0.1.2.tar.gz ``` Restart the web server so the host half and the served client bundle pick up the plugin. The default `dsh web` profile has the required client composition (the session list, the settings shell, and locale). The settin

阅读完整 README仓库许可: MIT

dsh-notification DSH 插件常见问题

如何安装 dsh-notification?

在 DSH 环境中运行命令 `dsh plugin --profile web add https://github.com/omdsh-dev/dsh-notification/archive/refs/tags/v0.1.2.tar.gz`,然后重启 Web 服务器以使宿主和客户端捆绑包加载插件。设置将出现在“设置 > 通知”中。

为什么通知没有显示?

首先,确保浏览器已授予 DSH 网页的通知权限。如果之前拒绝了,需要在浏览器站点设置中手动启用(插件无法覆盖已拒绝的权限)。同时检查“设置 > 通知”中的主开关是否打开,以及您关心的具体结果类型(如“完成”或“错误”)是否已启用。

能否只接收错误通知,而不接收成功完成的通知?

可以。在“设置 > 通知”的“通知在完成/错误/中止/阻塞/Token 限制时”中,关闭“完成”并启用“错误”(以及其他需要的类型)。这样只有以该状态结束的回合才会触发通知。

如何阻止特定会话或关键词的通知?

您可以添加排除关键词规则。例如,如果会话标题包含“测试”,则添加一个排除规则,文字为“测试”。规则会匹配会话标题、最后一个回合的回复文本以及工具名称。如果匹配成功,排除规则将抑制通知。您还可以使用正则表达式进行更复杂的匹配。

关闭浏览器标签页后,通知还能工作吗?

不能。通知要求页面保持打开(即使隐藏)。如果关闭标签页或浏览器,将不会显示任何通知。该插件使用浏览器 Notification API,仅在页面存活时有效。