Files
dsh-purge/release-notes.md
T
叫我小杨同学andCursor aff6529418 fix: 发布 1.1.23,修掉 #1/#2/#3 提示词每次 apply 叠加(#38 / #42)
为自匹配替换链补上 skipIfMarked,并加 idempotence 回归,避免 autoApplyOnStart 无上限膨胀 system prompt。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-27 23:39:15 +08:00

14 KiB
Raw Blame History

1.1.23

中文

  • 修复 #38:#1/#2/#3 提示词补丁每次 apply 叠加约 +841 字符、永不收敛。
  • 原因:替换产物仍以前一版文本为前缀,且未设 skipIfMarked,autoApplyOnStart 每轮都会再写一层。
  • 修复:为 #1/#2/#3 补 skipIfMarked: true(#42),并加 npm run test:idempotence 回归。
  • 已膨胀的宿主文件不会自动缩回,需还原 .dshpurge.bak 或重装 dsh 后再 apply。

English

  • Fix #38: prompt patches #1/#2/#3 grew by ~+841 chars on every apply and never converged.
  • Cause: replacement text still starts with the previous pattern, and skipIfMarked was missing, so autoApplyOnStart rewrote every boot.
  • Fix: set skipIfMarked: true on #1/#2/#3 (#42); add npm run test:idempotence.
  • Already-bloated host files are not auto-shrunk — restore .dshpurge.bak or reinstall dsh, then apply again.

1.1.22

中文

  • 修复官方桌面点「应用」报 ENOENT。app.asar 还在时,新建 dsh-purge-child-process-hide.mjs 会失败,路径被写成 resources\app.asar\...\dsh-purge-child-process-hide.mjs,补丁停在待应用。
  • 原因:官方客户端还带着 app.asar 时,Electron 会把 resources\app 映射进这个归档。归档里没有的新文件,用普通文件接口去创建就会 ENOENT。
  • 两种写法都保留。归档还在时,改写真实磁盘上的 resources\app。没有 app.asar 时仍用原来的 node:fs,包括 Web、社区桌面,以及官方包已经解开并把归档挪成 app.asar.bak 的情况。
  • 安装目录不写死盘符。Web 和社区桌面的应用、重启保持原样。宿主仍对准 dsh 0.1.7-rc.2。

English

  • Fixes ENOENT when Apply runs on the official desktop. While app.asar is still present, creating dsh-purge-child-process-hide.mjs failed. The path was rewritten to resources\app.asar\...\dsh-purge-child-process-hide.mjs, and patches stayed pending.
  • Cause: with the archive still in place, Electron maps resources\app into app.asar. Creating a file that is not already in the archive through the normal file API throws ENOENT.
  • Both write paths stay. If the archive is still there, files are written on the real resources\app directory. If there is no app.asar, the previous node:fs path is unchanged. That covers Web, community desktop, and an official install that has already been unpacked and had the archive moved to app.asar.bak.
  • Install paths are not pinned to a drive letter. Web and community desktop keep their existing Apply and restart. The host target remains dsh 0.1.7-rc.2.

1.1.21

中文

  • 修复必需补丁失败 #43、#9、#15、#23、#42。点「应用」不再因为这 5 条报「清洗未完成」。提示词本来就会写入;这 5 条没写上时,界面却把整次应用判失败,看起来像插件失效。
  • 原因:上级文件夹名叫 DeepSeek Harness 时,整棵目录被当成官方桌面。Web 的 npm 包因此被排除,这 5 条对得上的原文也没写进去。安装路径不写死盘符。现在只有旁边真有桌面程序,或路径在该安装的 resources/app 里,才算桌面安装。Web、社区桌面、官方桌面各自打自己的包。
  • #43:去掉 Web 四个内置预设(standard、ptc、cordis、minimal)里的身份句。没写上时,预设里的原身份句会留在注入旁边。
  • #9:审批请求自动放行。
  • #15:沙箱 confine 不再包一层,命令按原样执行。
  • #23:子代理默认深度从 1 提到 10。
  • #42:给设置服务补回旧的 register / get,还在调旧接口的插件才能加载。
  • 文件在、但这份原文不在当前版本里时,显示跳过,不再把整次应用判失败。原文还在时仍会写上。

English

  • Fixes required-patch failures #43, #9, #15, #23, and #42. Apply no longer reports the cleanse as incomplete because of these five. The prompt was already written; the failure made the plugin look dead.
  • Cause: a parent folder named DeepSeek Harness was treated as the official desktop install, so the Web npm packages were excluded and these five were never written. Install paths are not pinned to a drive letter. A tree counts as the desktop install only when the desktop executable is beside it, or the path is under that install's resources/app. Web, community desktop, and official desktop each patch their own packages.
  • #43: strips the identity sentence from the four built-in Web presets (standard, ptc, cordis, minimal). Left in place, that sentence stays next to the inject.
  • #9: approval requests are auto-granted.
  • #15: sandbox confine no longer wraps the command.
  • #23: subagent default depth moves from 1 to 10.
  • #42: the settings service gets the old register / get methods back, so plugins that still call them can load.
  • When the file exists but this version does not contain that original text, the row shows skipped and Apply still completes. Text that is present is still written.

1.1.20

中文

  • 宿主版本:当前对准 dsh 0.1.7-rc.2。上一档 0.1.7-rc.1(含 0.1.7-rc.1.20260924.1)的旧锚点仍可用。
  • 官方桌面升级:已经下载的新版本会在重启,或在应用里点安装并重启时真正安装,然后解开新版本并重新打补丁。没有新版本时,重启仍是关掉再打开当前客户端。安装目录不写死盘符。
  • 补丁:#14、#35 跟上 rc.2 的升级写法,不再报必需补丁失败。#29、#33、#36 的新提示句也会打上。
  • Web 和社区版 DSH Desktop 的应用、重启保持原样。

English

  • Host version: current target is dsh 0.1.7-rc.2. Anchors for the previous target, 0.1.7-rc.1 (including 0.1.7-rc.1.20260924.1), still match.
  • Official desktop upgrade: a downloaded update installs on Restart, or on the in-app install-and-restart action, then the new build is unpacked and patched. With no pending update, Restart still closes and reopens the current client. Install paths are not pinned to a drive letter.
  • Patches: #14 and #35 match the rc.2 escalation text, so Apply no longer fails those required patches. #29, #33, and #36 follow the new prompt wording.
  • Web and community DSH Desktop keep their existing Apply and restart.

1.1.19

中文

  • 官方桌面 EXE:支持官方 DeepSeek Harness。点「应用」解开 app.asar 并补上原生模块,再点「重启」,客户端自己关掉并重新打开。Web 和社区版 DSH Desktop 的应用、重启保持原样。
  • 重启:官方客户端退出不再被外壳当成崩溃,也不会留下后台 PowerShell。重启脚本不再调用 Windows 脚本宿主没有的 toISOString,避免弹出运行时错误。新进程不再继承 ELECTRON_RUN_AS_NODE,否则会刚打开就退出。
  • 更新:换版本或回退时,按落地的那一版自动还原再应用,不必每次手动先还原再应用再重启。
  • 补丁列表:宿主已经自带 dsh-web-fetch-http 时,不再显示一条永远跳过的 #20。安装目录不再写死盘符。

English

  • Official desktop EXE: Apply on official DeepSeek Harness unpacks app.asar, restores native modules, then Restart closes the client and opens it again. Web and community DSH Desktop keep their existing Apply and restart.
  • Restart: exiting the official host is no longer treated as a crash, and no PowerShell process is left behind. The helper no longer calls toISOString, which made Windows Script Host pop a runtime error. The new process does not inherit ELECTRON_RUN_AS_NODE, which made it exit immediately.
  • Updates: switching or rolling back a version restores and reapplies that version's patches without a manual revert first.
  • Patch list: hosts that already depend on dsh-web-fetch-http no longer show a permanently skipped #20. Install paths are not pinned to a drive letter.

1.1.18

中文

  • 重启:点「重启」后旧页面的 token 会失效,只刷新等于打不开。现在会等端口释放(必要时结束旧进程),并按新进程打印的地址打开浏览器。请用新打开的页面,再新开一轮对话。
  • 设置:1.1.17 之前若已把 legacyApplyPath 叠进 dsh-settings,点「应用」会收成一份,提供商目录才能起来。收好之后再重启一次。

English

  • Restart: the old page token dies with the process, so a refresh looks like restart did nothing. Restart now frees the port and opens the browser at the new dsh web: URL. Use that page and start a new chat.
  • Settings: Apply collapses duplicate legacyApplyPath left by earlier 1.1.17 patches so dsh-settings can load. Restart once after that apply.

1.1.17

中文

  • 稳定性:修复设置补丁 #42 在 dsh 0.1.7 上重复插入 legacyApplyPath 的问题。此前会导致 @deepseek-ai/dsh-settings 无法加载、提供商目录报错、mnemon 等插件连锁 pending。现改为 skipIfMarked,且不再与官方已自带的 legacyApplyPath 叠写。
  • 工作区强指令:#1/#2 同时识别 WORKSPACE_* 与 AGENT_* 常量名,避免「全局/替换式免责」在旧宿主上显示跳过、应用无效。
  • 拒答与软拒:官方 agent-instructions 强指令补充本机授权评测与反软拒话术;插件增加固定 dsh-purge:rules 段(与执行规则一致)。新开会话并重启 dsh 后生效。

English

  • Stability: patch #42 no longer stacks duplicate legacyApplyPath on dsh 0.1.7, which broke @deepseek-ai/dsh-settings, provider catalog loading, and downstream plugins. Uses skipIfMarked and does not re-insert the helper the official package already ships.
  • Workspace intros: patches #1/#2 match both WORKSPACE_* and AGENT_* constant names so rows no longer show Skipped on older installs.
  • Refusal / soft refusal: stronger official workspace intros plus a fixed dsh-purge:rules section. Restart dsh and start a new chat for prompt changes.

1.1.16

中文

  • 对准 dsh 0.1.7-rc.1。工作区说明常量改名为 AGENT_INSTRUCTIONS_INTRO,句子没变,补丁跟着改。
  • 沙箱 confine() 已是 async confine(argv, policy, signal),补丁按新函数写。直通行为与上一版相同。
  • 子代理深度改到 dsh-subagent,默认从 1 提到 10。深度检查还在。
  • 设置服务补回旧的 register / get。dsh-mnemon、dsh-better-reasoning-effort 这类还在调旧接口的插件可以继续用。官方 describe / update 不动。补丁只打一次,不会在启动时重复插入。
  • 删掉 0.1.7 里已经对不上的旧条文,包括单独给 dsh-base 补 dsh-web-fetch-http 依赖的那条。官方包已经自带。
  • Web 四个内置预设(standard、ptc、cordis、minimal)只清空身份句。工作目录、工具列表、ptc 模式,以及 minimal 的 complete: true 和 includeRuntimeContext: false 不动。
  • complete: true 时,prompt-inject.md 仍接在这段前面。换宿主版本或旧钩子删段之后,注入不会丢。点「应用」之后仍要再点「重启」,新开一轮对话才进当前会话。
  • dsh-compaction-instant 网页端从已删除的 settingsScope 改到 configForms,页面不再停在 Failed to load plugins。
  • 回退在 0.1.7 上会建出新会话,但界面仍停在旧对话,看起来像没反应。0.1.7 已没有 sessions.open。现在改用 uiWorkspace.openSession 切到新会话,并把上一句填回输入框。失败原因显示在按钮上。
  • README 的赞赏区换成非盈利声明:严禁商业售卖、付费倒卖或黑灰产牟利,仅供技术参考。

English

  • Aligned with dsh 0.1.7-rc.1. The workspace-instruction constant is now AGENT_INSTRUCTIONS_INTRO. The sentence is unchanged, and the patch follows it.
  • Sandbox confine() is now async confine(argv, policy, signal), and the patch matches that function. Passthrough behavior is the same as the previous release.
  • Subagent depth lives on dsh-subagent. The default moves from 1 to 10. The depth check remains.
  • The settings service again exposes the old register / get methods, so plugins such as dsh-mnemon and dsh-better-reasoning-effort keep working. Official describe / update stay. The patch applies once and does not insert itself again on startup.
  • Patch text that no longer exists in 0.1.7 is removed, including the extra dsh-web-fetch-http dependency on dsh-base. The official package already depends on it.
  • The four built-in Web presets (standard, ptc, cordis, minimal) lose only the identity sentence. The working-directory suffix, tool lists, ptc mode, and minimal's complete: true plus includeRuntimeContext: false stay.
  • When complete: true, prompt-inject.md is still prepended to that section. A host upgrade or an older hook that drops the section does not drop the inject. After Apply you still click Restart and start a new chat before it enters the session.
  • The dsh-compaction-instant web client uses configForms instead of the removed settingsScope, so the page no longer stops on Failed to load plugins.
  • Rewind on 0.1.7 created the new session and left the UI on the old chat, so the click looked dead. 0.1.7 has no sessions.open. The button now opens the new session with uiWorkspace.openSession and puts the previous user line back in the composer. A failure shows on the button.
  • The README sponsor block is now a non-profit notice: no commercial resale and no gray-market profit; technical reference only.