chore(process-host): drop the WSL hook relay launcher from the direct-import baseline (#34078)

This commit is contained in:
Neil
2026-10-26 15:24:14 -07:00
committed by GitHub
parent 26b158d7bd
commit ad5f787ad0
2 changed files with 4 additions and 5 deletions
@@ -6,7 +6,6 @@ src/cli/handlers/core.ts
src/cli/handlers/interactive-login-interruption.ts
src/cli/runtime/launch.ts
src/main/agent-hooks/managed-hook-owner-identity.ts
src/main/agent-hooks/wsl-hook-relay-launch.ts
src/main/agent-hooks/wsl-hook-relay-link.ts
src/main/agent-hooks/wsl-hook-relay-manager.ts
src/main/agent-hooks/wsl-hook-relay-sentinel.ts
@@ -1,4 +1,4 @@
import type { ChildProcessWithoutNullStreams } from 'node:child_process'
import type { PipedChildProcess } from '@orca/process-host/process-spec'
import { existsSync, readFileSync } from 'node:fs'
import { join } from 'node:path'
import { spawnProcess } from '@orca/process-host'
@@ -102,7 +102,7 @@ export function spawnWslRelayProcess(
distro: string,
env: NodeJS.ProcessEnv,
version: string
): ChildProcessWithoutNullStreams {
): PipedChildProcess {
// --exec bypasses login-shell rewriting and passes $HOME verbatim for guest-side expansion.
const command = `exec sh "${guestRelayDirExpr(version)}/launch.sh"`
return spawnProcess({
@@ -153,10 +153,10 @@ export async function launchWslRelayWithInstall(options: {
version: string
io: WslRelayLaunchIo
isDisposed: () => boolean
onChild: (child: ChildProcessWithoutNullStreams) => void
onChild: (child: PipedChildProcess) => void
onNoNode: () => void
onFailure: (message: string) => void
connect: (transport: MultiplexerTransport, child: ChildProcessWithoutNullStreams) => Promise<void>
connect: (transport: MultiplexerTransport, child: PipedChildProcess) => Promise<void>
}): Promise<void> {
const { distro, env, bundleJsPath, version, io } = options
let installTried = false