@waitinraining/dsh-body-fix
v0.1.1
Published
Self-healing patch: render reasoning-only settled assistant messages as body text (DSH web body-drop bug)
Maintainers
Readme
@waitinraining/dsh-body-fix
自愈补丁:修复 DeepSeek Harness Web 偶发的「正文丢失」问题——当一条已结束的助手消息只剩 reasoning 块(没有 text / 工具调用 / 图片)时,把 reasoning 内容当作正文渲染,避免回答空白。
功能
- 启动时自动检查并修补 DSH 客户端 bundle 中的渲染逻辑
- 幂等:已打过补丁则跳过,不会重复写入
- 目标模式不匹配(DSH 升级后 bundle 变更)时安全跳过并打印日志,不破坏文件
- 每次启动都会自检,
dsh升级或npm install后重启即自愈
环境要求
- DeepSeek Harness
0.1.0-rc.6兼容版本 - Node.js
>= 22.19.0 - 对 DSH 安装目录有写权限(默认补丁目标在
/opt/homebrew/lib/node_modules/@deepseek-ai/dsh/...) pnpm已加入PATH
安装
dsh plugin --profile web add @waitinraining/dsh-body-fix安装后重启 Harness:
dsh web使用
安装后无需任何配置。启动时会自动应用补丁并在日志中打印 [dsh-body-fix] 补丁已应用。若目标 bundle 已变更导致模式不匹配,会打印 [dsh-body-fix] 目标模式未匹配…跳过补丁。
说明:这是一个针对特定 DSH 客户端 bundle 版本的 in-place 补丁。DSH 升级后若官方已修复该问题,可卸载本插件。
卸载本插件
dsh plugin --profile web remove @waitinraining/dsh-body-fixLicense
MIT
