fix: 二次 Apply 不再误报 #26/#27,重启等到会话树落地再进页面

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yangandCursor committed 2026-09-17 13:33:34 +08:00
1 parent 6c88f4d075
commit fd4dfa4e38
11 files changed
+254 -432

No files matched your search

+1 -6
View File
@@ -1,9 +1,4 @@
// ESM facade over the real child_process builtin with windowsHide forced.
// Loaded via registerHooks so `import { spawn } from "node:child_process"`
// receives the wrapped functions (plain cp.spawn = … does NOT affect ESM
// named imports on Node 24).
const cp = process.getBuiltinModule("child_process");
const cp = process.getBuiltinModule("child_process"); // Node 24 ESM 具名导入是副本,必须包 builtin
const MARK = "__dshPurgeHideConsole";
function hide(options) {