dsh-turn-notify
DSH plugin: Windows toast notification when an agent turn completes; click the toast to jump back into that session in the Web UI.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hxy113/dsh-turn-notify说明文档
阅读完整 README ↗dsh-turn-notify
DSH(DeepSeek Harness)插件:每个交互式回合结束时,在 Windows 右下角弹出系统 toast 通知;点击通知直接跳回对应的会话。
效果
- 发送者:
DeepSeek Harness(通过注册表HKCU\Software\Classes\AppUserModelId\DeepSeekHarness.DSH注册,首次使用自动创建,卸载时自动清理) - 标题:当前会话的标题(自动读取,无标题时回退为 DeepSeek Harness)
- 正文:最后一条 AI 回复的开头(截取 120 字符,不显示"已完成"之类的提示)
- 点击:用默认浏览器打开 Web UI 并自动进入该会话(
/jump-session路由 → 写入localStorage['dsh.sessions.current']→ GUI 主页自动恢复) - 只对根会话(交互式会话)触发,子代理 / workflow 内部回合不会打扰
安装
dsh plugin --profile web add github:hxy113/dsh-turn-notify
dsh web
纯 JavaScript、无构建步骤,git 安装不需要 prepare 授权。
工作原理
- 监听
agent/turn-stopping事件(回合即将关闭时触发) - 通过
powershell.exe -STA+ WinRTToastNotificationManager弹系统 toast(pwsh 7 无法加载 WinRT 类型,故使用系统自带的 Windows PowerShell 5.1 通道) - toast 使用
activationType="protocol",点击后系统用默认浏览器打开http://127.0.0.1: /jump-session?sid= - 该路由由插件注册(
webServer.register),返回一个微型 HTML 页面,写入会话恢复标记后跳转 GUI 主页
要求
- Windows 10/11
- DSH Web UI(
dsh web) - 通知可能被系统"专注助手"或应用通知设置拦截,这是 Windows 自身行为
卸载
dsh plugin --profile web remove dsh-turn-notify
插件卸载时自动删除注册表 AUMID 键和遗留快捷方式。
License
MIT