mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:40:22 +08:00
feat(patch): #83 host 信号杀静默退出 — 消除 crash dialog + 补齐 73-83 UI 翻译
- 新增 patch #83 DESKTOP_HOST_CLOSE_NO_FATAL: child.once(close) 收到 code===null 或任何 signal 时直接 resolve, 不走 fail → FatalRecovery.report 不触发,crash dialog + crash log 都断掉 - 之前 /purge apply 密封包重启靠 PS1 kill Electron,但 host 子进程 close event 还是会走 fail(),弹对话框. 现在从源头切 fail() 路径 - 补齐 client.js 翻译 patch.73-83 zh/en, 之前 #70/#71/#72 之后新加的补丁 UI 显示的是 raw key, 现在数量/名称都对得上
This commit is contained in:
1 parent
b3f5c2dd3e
commit
96b5af8962
2 files changed
+54
No files matched your search
@@ -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",
|
||||
|
||||
+34
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user