mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 18:47:40 +00:00
* fix(wsl): start host-side wsl.exe probes through process-host so they never open a console wsl --list, wsl --status, the WSL home and directory probes, and WSL UNC deletes were started with node:child_process directly. The synchronous ones omitted windowsHide, so each spawn from the GUI-subsystem main process flashed a conhost window that could take keyboard focus. Route them through @orca/process-host, which pins windowsHide, and keep the execFile-shaped exit errors the availability cache classifies. Refs #27390 * build(tc): list wsl-exe-process.ts in the web typecheck project wsl-availability.ts is in the explicit web file list and now imports it. * refactor(wsl): drop the unused sync availability probe; classify ProcessResult directly No production code calls the sync isWslAvailable (the IPC and RPC paths already assert they never do), so delete it and its sync guest-probe twin instead of porting them. The async probe now reads the --status ProcessResult itself: an exit code is definitive, a timeout or signal kill is retryable, ENOENT on spawn is definitive. The WSL2-missing-kernel exit codes live in one named set. Availability tests now drive the async probe. * refactor(wsl): shrink wsl-exe-process to a spec builder and stdout reader With the availability cache classifying ProcessResult itself, nothing reads the execFile-shaped code/status error any more. wslExeFailure returns a plain reason string; wslExeStdout throws it; the UNC delete folds it into its own error. The home probe builds its argv with buildWslExecArgs. * test(wsl): mock process-host in the empty running-list case from main * docs(wsl): the availability probe no longer blocks; drop the stale word * build(ratchet): prune the wsl.exe sync launches this branch removed --------- Co-authored-by: Orca Worker <orca-worker@localhost>
59 lines
2.4 KiB
JSON
59 lines
2.4 KiB
JSON
{
|
|
"extends": "./tsconfig.web.json",
|
|
"include": [
|
|
"../src/renderer/src/env.d.ts",
|
|
"../src/renderer/src/**/*",
|
|
"../src/renderer/src/**/*.tsx",
|
|
"../src/preload/api-types.ts",
|
|
"../src/preload/api/**/*",
|
|
"../src/preload/browser-client-page-renderer-requests.ts",
|
|
"../src/preload/browser-find-subscriptions.ts",
|
|
"../src/preload/close-active-tab-payload-admission.ts",
|
|
"../src/preload/e2e-config.ts",
|
|
"../src/preload/gitlab.ts",
|
|
"../src/preload/preload-runtime-support.ts",
|
|
"../src/preload/renderer-heap-statistics-reader.ts",
|
|
"../src/preload/renderer-process-memory-reader.ts",
|
|
"../src/preload/renderer-restart-wiring.ts",
|
|
"../src/preload/runtime-environment-subscriptions.ts",
|
|
"../src/preload/usage-provider-api.ts",
|
|
"../src/shared/**/*",
|
|
"../src/packages/process-host/src/__fixtures__/**/*",
|
|
"../src/main/gitlab/mappers.ts",
|
|
"../src/main/ipc/deferred-emoji-shortcode-dataset.ts",
|
|
"../src/main/ipc/worktree-branch-name.ts",
|
|
"../src/main/ipc/worktree-logic.ts",
|
|
"../src/main/ipc/worktree-display-name.ts",
|
|
"../src/main/ipc/worktree-linked-work-item-metadata.ts",
|
|
"../src/main/ipc/worktree-metadata-merge.ts",
|
|
"../src/main/ipc/worktree-path-comparison.ts",
|
|
"../src/main/wsl-availability.ts",
|
|
"../src/main/wsl-directory-probe-command.ts",
|
|
"../src/main/wsl-distro-list-output.ts",
|
|
"../src/main/wsl-distro-retry.ts",
|
|
"../src/main/wsl-running-distro-cache.ts",
|
|
"../src/main/wsl-home-cache.ts",
|
|
"../src/main/wsl.ts",
|
|
"../src/main/wsl-interop-spawn-directory.ts",
|
|
"../src/main/wsl-exe-process.ts",
|
|
"../src/main/persistence/applying-settings/ui-state-read.ts",
|
|
"../src/main/persistence/applying-settings/ui-state-update.ts",
|
|
"../src/main/persistence/applying-settings/ui-selection-normalization.ts",
|
|
"../src/main/persistence/applying-settings/ui-interaction-merge.ts",
|
|
"../src/main/protected-secret-persistence.ts",
|
|
"../src/main/startup/serve-desktop-activation.ts",
|
|
"../src/main/startup/serve-mode-argv.ts",
|
|
"../src/main/startup/single-instance-lock.ts",
|
|
"../src/main/startup/startup-diagnostics.ts",
|
|
"../src/main/window/focus-existing-window.ts",
|
|
"../src/main/window/foreground-activation-policy.ts",
|
|
"../src/main/window/macos-app-activation.ts"
|
|
],
|
|
"compilerOptions": {
|
|
"paths": {
|
|
"@renderer/*": ["../src/renderer/src/*"],
|
|
"@/*": ["../src/renderer/src/*"]
|
|
}
|
|
}
|
|
}
|