From 25262fc8e9d8a37c74408a7fc0e0196486a51a0b Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:57:58 -0400 Subject: [PATCH] fix(daemon): let macOS terminal shells download cloud-only files (STA-11929) (#33623) --- src/main/daemon/macos-daemon-launchd.test.ts | 1 + src/main/daemon/macos-daemon-launchd.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/daemon/macos-daemon-launchd.test.ts b/src/main/daemon/macos-daemon-launchd.test.ts index faff3d64961..2664f54c0b7 100644 --- a/src/main/daemon/macos-daemon-launchd.test.ts +++ b/src/main/daemon/macos-daemon-launchd.test.ts @@ -218,6 +218,7 @@ it('launches the copied helper on plain Node and leaves no inherited credentials Label: macDaemonJobLabel(state.root), KeepAlive: false, AssociatedBundleIdentifiers: ['com.stablyai.orca'], + MaterializeDatalessFiles: true, EnvironmentVariables: { ORCA_TEST_SECRET: 'test-value' } }) expect(JSON.stringify(job)).not.toContain('NODE_CHANNEL_FD') diff --git a/src/main/daemon/macos-daemon-launchd.ts b/src/main/daemon/macos-daemon-launchd.ts index e7986592256..44c066cd724 100644 --- a/src/main/daemon/macos-daemon-launchd.ts +++ b/src/main/daemon/macos-daemon-launchd.ts @@ -76,6 +76,8 @@ function buildMacDaemonLaunchJob( // Associate plist-launched jobs with Orca for Local Network access. AssociatedBundleIdentifiers: [LOCAL_BUILD_COMPATIBILITY_CONTRACT.appId], ProcessType: 'Interactive', + // launchd disables cloud-file downloads for jobs unless asked; shells need them like Terminal.app. + MaterializeDatalessFiles: true, StandardOutPath: '/dev/null', StandardErrorPath: '/dev/null' }