watericetangcw/dsh-session-pause

一个用于DeepSeek Harness的Cordis插件,可挂起整个对话状态并在重启后恢复。

Project Overview项目介绍

This is a DSH-native plugin that adds session pause and resume functionality to DeepSeek Harness. It does not modify any core DSH code, and ships as a ready-to-install profile bundle that can be added with one command. It intentionally does not bundle any @deepseek-ai/* runtime dependencies, and instead pulls shared modules directly from your local DSH installation to avoid version conflicts. To install, run dsh plugin --profile web add github:watericetangcw/dsh-session-pause in your terminal, then restart dsh web and refresh your browser page to start using the plugin. After installation, it adds a dedicated pause button to the left of the main send button in the DSH UI.

This plugin is designed for users working on long multi-step tasks that need to be paused mid-run. When you click the pause button while a task is running, it does not interrupt any in-progress requests or tool calls. Instead, it lets the current step finish gracefully, saves the full session context to DSH's existing JSONL session log, and switches the button to a continue state. You can close DSH, restart your machine, or even move the session to another device, and when you re-open the session it will still be in the paused state ready to resume.

The plugin also supports slash commands: you can run /pause to pause, /pause-cancel to cancel a pending pause request, and /resume to continue a paused session. If you hover over the pause button while it is pending, it temporarily changes to a cancel icon that you can click to stop the pause request. To uninstall the plugin, run dsh plugin --profile web remove dsh-session-pause, then restart dsh web to restore the original DSH behavior. It is released under the open source MIT license, so you can modify or redistribute it freely. There are no hidden costs or locked features, all functionality is available out of the box after installation.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,核心功能是让用户随时暂停DSH会话,之后再无缝续跑。安装完成后,它会在发送按钮左侧新增一个暂停按钮,点击后不会打断正在进行中的请求,当前步骤运行到边界后会优雅结束,并自动将会话完整落盘保存。它不需要修改任何DSH核心代码,本身就是一个即装即用的配置包,用户随时可以关闭、重启DSH,之后点击继续按钮就能从暂停点接着任务运行,就像从来没暂停过一样。

这款插件适合需要处理长任务、中途需要中断工作的用户,使用流程非常简单直观。给DSH分配一个需要调用多个工具的长任务,任务运行起来后点击暂停按钮,等待当前步骤完成、按钮变为继续状态就可以中断工作了。如果需要重启DSH甚至换设备继续,打开保存的会话后依然处于暂停状态,点击继续就能从断点接着跑,不会丢失任何任务进度。

本插件采用MIT许可证开源,它有意不携带额外的@deepseek-ai运行时依赖,会直接从DSH安装目录解析共享模块,保持和原有服务一致。安装只需要一条命令:dsh plugin --profile web add github:watericetangcw/dsh-session-pause,安装后重启dsh web并刷新浏览器页面即可使用。卸载只需对应移除命令,卸载后恢复DSH原生运行行为,不会残留修改。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:watericetangcw/dsh-session-pause

把 watericetangcw/dsh-session-pause 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-pause

让 DeepSeek Harness 随时「暂停一切」,稍后无缝接着跑

License: MIT DeepSeek Harness

English · 简体中文

一次安装,永久可用:点击发送按钮旁边的 ⏸ 暂停,等当前这一轮优雅收尾(回答写完、所有工具跑完)后,把会话完整落盘——随时关闭、重启 DSH 都行,回来点 ▶ 继续 即可从暂停点接着跑,就像从来没停过。不改动任何 DSH 代码,整个功能就是一个即装即用的 profile bundle。

✨ 功能亮点

⏸ 一键暂停

发送/停止主按钮正左侧新增一枚暂停按钮:点击后不打断任何进行中的请求,当前步骤到达边界后这轮以 paused 优雅关停,紧接着自动落盘——按钮随即变成继续按钮。

💾 完整持久化

暂停 = 全程落盘:消息、chunk、工具调用与结果、请求上下文全部写进既有会话 JSONL,不新增任何存储格式。因此只要 DSH 还在,随时回来都能继续。

🔄 重启也能恢复

会话日志里最后一轮以 paused 结束时,重启 DSH 后重新打开该会话,agent 会直接回到暂停状态,继续按钮照常工作——关掉 DSH、甚至换机器继续,都不会丢进度。

🛑 排干中的三件小事

操作 效果
悬停转圈中的按钮 图标临时变成 ✕,移开恢复
点击 ✕(取消暂停) 解除暂停请求,后续运行恢复正常
点停止 不会取消暂停——只中止当前这轮,转圈继续等下一次可暂停时机

停顿期间 agent 进入 paused 状态,goal 自动轮次天然不启动;继续跑完后自动恢复。

🚀 快速安装

一条命令即可:

dsh plugin --profile web add github:watericetangcw/dsh-session-pause

安装完成后重启 dsh web,并刷新一次浏览器页面,即可使用。

本 bundle 有意不携带任何可安装的 @deepseek-ai/* 运行时依赖:运行时它的 host 半部分会从 DSH 安装目录本身解析这些包(共享同一份模块实例),从而与部署的 presets / scope / session 服务保持身份一致。请通过 dsh plugin add(如上)安装,不要把该包当作普通库 npm install 进 profile。

卸载
dsh plugin --profile web remove dsh-session-pause

卸载后重启 dsh web,恢复原生 agent-loop 行为。

🧪 快速体验

安装后,给 DSH 一个会用到工具的长任务,跑起来后:

① 暂停再继续

点发送按钮左侧的 ⏸ → 等转圈结束、按钮变成 ▶ → 再点 ▶,模型会基于持久化的工具结果接着完成原任务,语义上等同于从未暂停。

② 重启后继续

暂停后直接重启 dsh web,重新打开刚才的会话 → 它已经是暂停状态,点 ▶ 即可从暂停点续跑。

③ 暂停中又排队了消息?

暂停期间发的新消息会留在会话里,继续时一起被认领,不会丢。

📖 使用方式

  • 暂停:运行中点 ⏸(或输入 /pause);空闲时也能武装请求,让下一次运行在第一个步骤边界暂停。
  • 取消暂停:转圈中悬停按钮 → 点 ✕(或 /pause-cancel)。
  • 继续:暂停后点 ▶(或 /resume)。
  • 命令:/pause、/pause-cancel、/resume 均可直接从斜杠菜单调用。

🔗 链接

📄 许可证

MIT © 2026 WateRice

← 上一个 Prev dsh-doctor 下一个 Next dsh-plugins-raincode →