lizhijie429/dsh-task-notifier ↗★ 0
@lizhijie429/dsh-task-notifier
DSH Host plugin: monitor agent turn status, send OS notifications (Windows toasts branded with the DSH icon), and auto-continue after exhausted model-request retries.
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lizhijie429/dsh-task-notifierドキュメント
README 全文を読む ↗配置参考
| 字段 | 默认值 | 说明 |
|---|---|---|
notifyOnStart | false | turn/start 时通知(开始刷屏,默认关) |
notifyOnComplete | true | turn/end 且 reason.kind 为 completed/max-tokens 时通知 |
notifyOnError | true | error/blocked/interrupted 时通知 |
notifyOnAbort | false | 用户取消(aborted)时是否通知 |
notifyOnStep | false | 每步(step/start)通知,调试用 |
notifySubagents | false | 是否通知子代理会话(默认只通知主会话) |
channel | auto | auto/windows/macos/linux/log/none |
titlePrefix | DSH | 通知标题前缀(≤60 字符,超出截断并告警) |
windowsAppId | DSH.TaskNotifier | Windows Toast 的 AppUserModelID(决定通知中的应用名/图标) |
windowsAppName | DSH | Windows Toast 显示的应用名 |
maxBodyChars | 240 | 正文裁剪长度(60–2000) |
includePreview | false | 是否在通知里附模型输出预览(默认关,避免锁屏泄露内容) |
logFile | /state/task-notifier.log | JSONL 调试日志;相对路径按插件目录解析;256KB 轮转为 .1 |
autoContinue.enabled | true | 是否允许自动继续 |
autoContinue.message | 继续 | 自动发送的用户消息内容 |
autoContinue.maxAttempts | 3 | 每个任务最多自动继续次数(硬上限 50) |
autoContinue.cooldownMs | 5000 | 两次自动继续之间的最小间隔;0 表示立即 |
autoContinue.requireRetryExhausted | true | 只对“模型请求重试预算耗尽”的失败自动继续 |
autoContinue.respectProviderRetryAfter | true | 若失败带 providerRetryAfterMs,至少等待该时长再继续(>120s 则跳过) |
autoContinue.retryableCodes | EMPTY_RESPONSE,RATE_LIMIT,SERVER,TIMEOUT,TRANSPORT | 视为可重试的失败码 |
非法配置不会抛错:逐项回退默认值,既写 Host 日志,也作为 config.warning 事件写进调试日志,并汇总到 plugin.mounted 的 warnings 字段;未知配置键(手写 patch 拼写错误)同样会告警,不再静默失效。