Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

refactor(cli): keep the retrying PATH command private to the idempotent write (#36237)

Neil303cbbbb57b8
diff --git a/src/main/cli/cli-privileged-processes.ts b/src/main/cli/cli-privileged-processes.ts
index 7c0823f847b..9167f1f8e55 100644
--- a/src/main/cli/cli-privileged-processes.ts
+++ b/src/main/cli/cli-privileged-processes.ts
@@ -26,7 +26,8 @@ export async function writeWindowsUserPath(value: string): Promise<void> {
])
}
-export async function runWindowsPathCommand(args: string[]): Promise<string> {
+// Private on purpose: its timeout retry is only safe for the idempotent PATH write above.
+async function runWindowsPathCommand(args: string[]): Promise<string> {
const run = () =>
runProcess({ program: 'powershell', args, timeoutMs: WINDOWS_PATH_WRITE_TIMEOUT_MS })
let result = await run()