mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* fix(wsl): name an explicit Windows cwd for wsl.exe spawns Removing the worktree Orca was launched from broke every wsl.exe spawn for the rest of the session. The WSL command builders passed `cwd: undefined` meaning "the directory is inside the command" -- but CreateProcessW reads NULL as "inherit the parent's", and the parent's was a \\wsl.localhost path Linux had just deleted. Fixes #16463 * fix(wsl): name the spawn directory at the six remaining wsl.exe sites The first commit fixed the WSL command builders. Six spawn sites were left inheriting the process cwd, which is the same deletable `\\wsl.localhost` worktree: `wsl-availability` (both probes), the WSL filesystem watcher, the agent-hook relay launch, the UNC delete, and the local worktree filesystem. `wsl-availability` is the one that matters most, and it turns the bug into a latching false negative. `isRetryableWslProbeFailure` returns false for ENOENT, so a spawn that failed only because the inherited cwd was gone is cached as "WSL is not installed" on the 10-minute definitive TTL with exponential backoff up to 30 minutes. Git keeps working and Orca reports WSL unavailable -- worse than the bug being fixed. ENOENT stays non-retryable. It is answer-shaped for the reason it is meant to be -- wsl.exe is not on PATH -- and naming the directory is what removes the one cause that was not. Making it retryable would instead re-probe every non-WSL Windows machine on the short window, and would leave the false ENOENT in place for the other five sites, which have no cache to correct. Three of these are also on the `runWslProcess` W3 migration allowlist; this is the interim until they move, and matches what #17837 does inside the runner.
55 lines
2.2 KiB
JSON
55 lines
2.2 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/main/gitlab/mappers.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.ts",
|
|
"../src/main/wsl-interop-spawn-directory.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/*"]
|
|
}
|
|
}
|
|
}
|