# dsh-approval-reminder 面向 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web GUI 的**待批准 / 待回答常驻提醒**插件。 任一会话出现需要点击批准的权限申请(approval)或需要回答的问题时,右下角弹出**常驻系统气泡**(点击直达对应会话)+ 页内提醒卡。气泡不抢焦点、不自动消失,直到你处理完——再也不怕挂在瀑布流上干等。 ## 工作原理 双端插件,随 `dsh web` profile bundle 每次启动自动挂载: - **Host 端**(`lib/index.js`):`/api/dsh-approval-reminder/*` 两个仅回环路由;用隐藏 PowerShell/WinForms 进程渲染气泡(无边框、圆角、置顶、点击关闭、不激活抢焦点)。 - **Browser 端**(`lib/client.js`):订阅权威的 per-session `useSessionPendingInteraction` hook(`uiSession.pendingInteractions` 注册表);出现新 pending 即 POST `/notify`,全部解决即 POST `/notify { clear: true }`;气泡点击经 `/poll-open` 回传,页面跳转到需要关注的会话。左下角自检小徽标镜像 pending 状态。 中文零乱码:气泡文本经环境变量传递,无 base64/EncodedCommand 编码。 ## 安装 DSH 以 profile bundle 方式加载本插件(见 `cordis.patch.yml`): 1. 将本仓库放入你的 DSH `plugin-src/local/`(或宿主加载插件的任意路径)。 2. 确保 profile bundle 行已应用(同上 yaml 片段)。 3. 重启 `dsh web`。跨会话长期生效,无需每次 `cordis_define`。 ## 环境要求 - Windows(气泡依赖 PowerShell + WinForms) - DeepSeek Harness 宿主 + Web GUI ## 支持我 觉得这个插件有用,欢迎赞助支持(微信/支付宝): - [爱发电主页](https://ifdian.net/a/bhx-wl2) ## 许可证 MIT