Zum Hauptinhalt springen
H

dsh-desktop-notify

handelxh/dsh-desktop-notify

Zed-style floating desktop card for DeepSeek Harness: a 5-minute topmost card when a turn finishes, a confirmation is waiting, or the assistant asked a question. View focuses the app, Dismiss closes.

Installation

dsh plugin --profile web add github:handelxh/dsh-desktop-notify

README

dsh-desktop-notify

DeepSeek Harness 插件:会话完成、需要你确认、或助手在等你回答时,在桌面右下角弹一张 Zed 风格的浮窗卡片——不依赖 DSH 窗口是否在前台。

桌面浮窗

功能

时机说明
会话完成一轮回复结束时提醒(turn/end)
需要你确认工具在等待批准/拒绝时提醒(approval/asked)
等待你的回答助手通过提问工具等你回复时提醒(question)

桌面浮窗(Windows)

  • 独立于 DSH 窗口的置顶卡片:深色圆角、✦ 图标、完整的会话名(自动换行)、状态副标题;
  • 停在屏幕右下角,5 分钟自动消失;鼠标悬停暂停计时;
  • View:把 DSH 恢复并切到前台(不自动打开会话,避免刚恢复的渲染器卡死);
  • Dismiss:直接关闭;
  • DSH 在前台时不打扰;页内飘窗可在设置里单独开启。

安装

dsh plugin add @handelxh/dsh-desktop-notify

安装后刷新页面(客户端模块需要重新加载)。

使用

设置 → 插件 → 桌面通知:

  1. 勾选需要提醒的时机:任务完成 / 需要确认 / 等待回答;
  2. 「预览飘窗」测试页内卡片样式;
  3. 「桌面通知测试(5 秒后)」会延迟 5 秒弹桌面卡片,方便你最小化窗口观察;
  4. 如只想在桌面上看到(不在窗口内重复),保持「窗口内飘窗」关闭。

实现说明

  • Host 监听 session/event,把三类事件通过本机 SSE 路由推给页面;
  • 桌面卡片由一段单次 PowerShell(WPF)脚本绘制:Host 把载荷写成 UTF-8 临时文件传入,避免命令行编码问题;
  • 卡片上的 View/Dismiss 通过带进程随机 token 的本机回调路由通知 Host;
  • 不落盘敏感数据、不访问网络;/health 只暴露计数与最近诊断。

已知限制

  • 桌面卡片仅 Windows;Web profile 会自动退化为页内飘窗;
  • View 目前只负责把 DSH 窗口带回前台,不会自动打开对应会话(自动打开会导致刚恢复的渲染器卡死,已暂时移除);
  • 卡片位置固定在主屏右下角,最多 3 张纵向堆叠。

开发

node --test test/unit.test.mjs

License

MIT

Ähnliche Plugins