release: 1.3.5 适配 dsh 0.1.2-rc.1 / Node 24 Windows 无感与首轮注入

修复 Node 24 ESM spawn 补丁无效导致的 CMD 闪窗;梁神 phase-1 保留完整 system-prompt;README 写明适配版本与变更说明。
This commit is contained in:
yang committed 2026-09-05 19:57:42 +08:00
1 parent 905383165b
commit 9d139bf474
10 files changed
+1097 -171

No files matched your search

+6
View File
@@ -37,6 +37,8 @@ async function waitFree() {
const ok = await waitFree();
if (!ok) process.exit(1);
// On Windows, detached without a hidden console allocates a visible conhost.
// Always force windowsHide + never shell (dsh.cmd → cmd.exe flash).
const child = spawn(info.execPath, info.argv, {
detached: true,
stdio: "ignore",
@@ -45,5 +47,9 @@ const child = spawn(info.execPath, info.argv, {
windowsHide: true,
shell: false,
});
child.on("error", () => process.exit(1));
child.unref();
// Brief linger so the replacement is not torn down with this helper's process
// group on Windows before it detaches.
await new Promise((r) => setTimeout(r, 400));
process.exit(0);