From bec16ff11bb4f01e53d3403cca982e393adea346 Mon Sep 17 00:00:00 2001 From: "buf0-bot[bot]" <252831055+buf0-bot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 23:13:59 -0700 Subject: [PATCH] fix: pr-bug-scan validated finding from #1705 (#1708) Aligned shouldUseMacOSNativeProvider gate with send-time check by using resolveMacOSComputerUseExecutablePath, restoring symmetry so RPCs no longer throw when only the bundle exists. Co-authored-by: orca-bug-scan-bot --- src/main/computer/macos-native-provider-client.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/computer/macos-native-provider-client.ts b/src/main/computer/macos-native-provider-client.ts index c55a824e041..ec6b0c4a855 100644 --- a/src/main/computer/macos-native-provider-client.ts +++ b/src/main/computer/macos-native-provider-client.ts @@ -21,10 +21,7 @@ import { type PendingNativeRequest, writeNativeProviderLine } from './macos-native-provider-contract' -import { - resolveMacOSComputerUseAppPath, - resolveMacOSComputerUseExecutablePath -} from './macos-native-provider-paths' +import { resolveMacOSComputerUseExecutablePath } from './macos-native-provider-paths' import { connectMacOSProviderSocket } from './macos-native-provider-socket' import { RuntimeClientError } from './runtime-client-error' @@ -33,7 +30,9 @@ const HELPER_CONNECT_TIMEOUT_MS = 10_000 export function shouldUseMacOSNativeProvider(): boolean { return ( - process.platform === 'darwin' && isMacOS14OrNewer() && resolveMacOSComputerUseAppPath() !== null + process.platform === 'darwin' && + isMacOS14OrNewer() && + resolveMacOSComputerUseExecutablePath() !== null ) }