diff --git a/client.js b/client.js index ce37a82..48eb666 100644 --- a/client.js +++ b/client.js @@ -401,6 +401,16 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => { "patch.68": "回退后缺 content 不中断", "patch.69": "deepseek-flash 保持官方 in-history", "patch.72": "Messages 的 system 用当前系统提示", + "patch.73": "极简 bash 去掉误留的镜像说明", + "patch.74": "首发前先挂默认提示词", + "patch.75": "回退把已完成任务收回成未开始", + "patch.76": "unrestricted 预设去掉身份句", + "patch.77": "回退标记到达时丢弃已发送消息", + "patch.78": "补丁文件缺失时从 .bak 恢复", + "patch.80": "恢复官方极简工具表", + "patch.81": "每一步重放完整 prompt-inject", + "patch.82": "主进程兜底 DSH_PROFILE=desktop", + "patch.83": "host 信号杀静默退出不弹对话框", "status.unlocated": "未定位", "status.na": "本端不需要", "metric.unlocated": "还没定位到本机 Harness", @@ -718,6 +728,16 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => { "patch.68": "Missing content after rewind no longer ends the turn", "patch.69": "deepseek-flash keeps the official in-history flag", "patch.72": "Messages system field uses the current system prompt", + "patch.73": "Minimal preset drops stray mirror sentence", + "patch.74": "Hang default prompt before first assemble", + "patch.75": "Rewind resets completed todos to pending", + "patch.76": "Unrestricted preset: strip identity sentence", + "patch.77": "Rewind marker drops already-sent messages", + "patch.78": "Restore missing overlay from .bak backup", + "patch.80": "Restore official minimal tool plugins", + "patch.81": "Replay the full prompt-inject every step", + "patch.82": "Fallback DSH_PROFILE=desktop in main process", + "patch.83": "Silence host-stopped crash on signal kill", "status.na": "Not for this host", "metric.sealed": "Official client found. Apply to unpack", "metric.sealed.count": "Sealed", diff --git a/lib/core.js b/lib/core.js index aa4a9ef..d91cac1 100644 --- a/lib/core.js +++ b/lib/core.js @@ -4501,6 +4501,40 @@ const NEW_TOOL_PATCHES = [ ], markers: ["[dsh-purge] guard undefined section text"], }, + { + id: 83, + name: "DESKTOP_HOST_CLOSE_NO_FATAL", + layer: "代码", + layer_en: "Code", + desc: "host 被信号杀 (重启密封包) 时静默退出,不弹 crash dialog / silence host-stopped crash on signal kill", + file: "desktop-shell", + surfaces: ["desktop"], + replacements: [ + { + pattern: + "\t\tthis.exitPromise = new Promise((resolve) => {\n" + + "\t\t\tchild.once(\"close\", (code) => {\n" + + "\t\t\t\tconst suffix = this.stderr.trim() === \"\" ? \"\" : `: ${this.stderr.trim()}`;\n" + + "\t\t\t\tif (code !== 0 && code !== null) this.fail(/* @__PURE__ */ new Error(`dsh desktop host exited with ${String(code)}${suffix}`));\n" + + "\t\t\t\telse this.fail(/* @__PURE__ */ new Error(`dsh desktop host stopped${suffix}`));\n" + + "\t\t\t\tresolve();\n" + + "\t\t\t});\n" + + "\t\t});", + replace: + "\t\tthis.exitPromise = new Promise((resolve) => {\n" + + "\t\t\tchild.once(\"close\", (code, signal) => {\n" + + "\t\t\t\tconst suffix = this.stderr.trim() === \"\" ? \"\" : `: ${this.stderr.trim()}`;\n" + + "\t\t\t\t// [dsh-purge] signal kill (code===null, 任何 signal 杀) 静默 resolve,不走 fail → 不写 crash log 不弹对话框\n" + + "\t\t\t\tif (code === null || signal) { resolve(); return; }\n" + + "\t\t\t\tif (code !== 0) this.fail(/* @__PURE__ */ new Error(`dsh desktop host exited with ${String(code)}${suffix}`));\n" + + "\t\t\t\telse this.fail(/* @__PURE__ */ new Error(`dsh desktop host stopped${suffix}`));\n" + + "\t\t\t\tresolve();\n" + + "\t\t\t});\n" + + "\t\t});", + }, + ], + markers: ["[dsh-purge] signal kill"], + }, { id: 67, name: "AGENT_LOOP_MESSAGES_GUARD",