refactor: remove ineffective Harness window guard

This commit is contained in:
lofyer
2026-08-14 13:25:00 +08:00
parent de497b9553
commit 6c879ab34a
3 changed files with 0 additions and 204 deletions
@@ -12,12 +12,9 @@ import {
startControlledDeepSeekHarnessHost,
type ControlledHarnessHost
} from './deepseek-harness-host'
import { installHarnessChildProcessWindowGuard } from './agent/deepseek-harness-child-process'
const parentPort = process.parentPort
const restoreDiagnostics = installHarnessDiagnosticGuard()
const restoreChildProcessWindowGuard =
installHarnessChildProcessWindowGuard()
// The Windows ACL sandbox launches its JavaScript runner through
// `process.execPath`. Inside an Electron UtilityProcess that path is Electron,
// so descendants must opt into Electron's supported Node execution mode.
@@ -44,7 +41,6 @@ async function close(): Promise<void> {
closed = true
await host?.dispose().catch(() => undefined)
transport?.dispose()
restoreChildProcessWindowGuard()
restoreDiagnostics()
}