DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

Wuxie233 /

Wuxie233/dsh-plugin-restart-continue

Topic repository only

This plugin has no description yet.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: master@d0d39573

当前接入方式:dsh-std adapter

本插件通过 dsh-plugin.json 声明标准 host facet;lib/index.js 发布 plugins.starpivot.dev/v1 HostPlugin,lib/host.js 保留业务策略并接收 adapter API。 有浏览器界面的插件另声明 LocalModule,使用私有 WebPlugin surface。

执行 ./install.sh 会先验证全部九个自制插件的组合、Web 界面与 CodeCarry 原生 Remote,再备份并复制部署;失败不替换生产插件。需先安装同级 dsh-std 维护仓库及其依赖。部署后在没有活跃任务时重启 dsh,并刷新 Web。

不要把 lib/index.js 直接作为 Cordis 插件挂载;原插件的 cordis insert 行由 共享部署器移除,配置迁入 adapter.componentConfigs。不要链接运行时插件目录。 标准协议不承诺未来版本永久兼容;native ctx/hooks 的变化由候选门禁和集中 adapter 维护控制。Web 界面不会自动出现在原生 Android 中。

下方保留业务说明和历史修复记录;涉及旧式直接挂载、导入和安装步骤的内容, 以本节为准。

dsh-plugin-restart-continue

重启 dsh web 后,自动把最近 24 小时内被崩溃/重启打断的用户根对话冷恢复,并让模型继续干活。

通用设置 → 重启后续跑 可关(默认开)。

行为

  • 触发:host 进程启动扫一次,不依赖浏览器是否连上。
  • 对象:普通用户根对话(非 subagent / automation),且有项目 cwd。
  • 判定:最新一轮是 interrupted(含未闭合轮次),打断时间在 24 小时内。
  • 动作:agents.resume 并挂上会话记录的 preset,再发一条 plugin 来源的 Continue 通知。
  • 卡在审批 / 提问 / Plan 确认也会续跑。
  • 子代理不主动拉起。
  • 已归档、空对话、已正常结束、超过 24 小时、已经 Continue 过的都跳过。
  • Host session.list 只列会话,不会自动续跑。同一会话每轮启动最多一条 Continue;旧日志里若已有 dsh-host-apiproxy 通知也跳过。

Continue 文案沿用 Host 的 “Continue the work that was interrupted by a restart.”,并提醒:先看工作区;只读/幂等可重试;有副作用先核对,不要盲目重放。

安装 / 更新

./install.sh
# ~/.dsh/profiles/web/cordis.patch.yml:
#   - insert:
#       - id: restart-continue
#         name: '@wuxie/dsh-restart-continue'
# 重启 dsh web(host 半)
# 刷新页面(设置行)

验证

  • 纯函数:node scripts/qualify.test.mjs
  • node --check lib/client.js;ESM 的 index.js / logic.js 复制为 .mjs 再查
  • 部署后:cd ~/.dsh/profiles/web && node -e "await import('@wuxie/dsh-restart-continue')"
  • 运行日志:pm2 logs dsh-web --lines 80 --nostream | grep restart-continue
—/ 5

No ratings yet

Manifest verification required

Commit d0d395735522

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout