Skip to content

fix(macos): preserve terminal permissions across app updates with a small signed helper - #27021

Merged
Jinwoo-H merged 43 commits into
mainfrom
jinwoo/macos-slim-terminal-host
Oct 11, 2026
Merged

Jinwoo-H merged 43 commits into
mainfrom
jinwoo/macos-slim-terminal-host

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1573 $\color{#cf222e}{\Huge{\mathbf{−}}}$​20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1553
Prod 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1611 $\color{#cf222e}{\Huge{\mathbf{−}}}$​57 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1554

ELI5

When Orca updates on macOS, terminals that were already open can lose access to protected files (Full Disk Access, Documents, Desktop, Downloads), even though Orca's permission checkbox stays on. This runs the terminal service from Orca's own small, signed helper, kept in a private copy that updates can't touch. macOS still sees it as Orca, so the existing permissions keep working.

This PR combines #25848 (the update-safe launcher) with a slimmer copy: a 124 MB helper instead of the whole 628 MB app.

What Changed

Update-safe launcher (from #25848), now with one copy per helper build

  • Each helper build gets one private copy, named by the helper's code-signing hash (CDHash): userData/daemon-host/macos/terminal-host-<cdhash>/app.noindex/Orca Terminal Host.app. If that copy exists, a new daemon reuses it with no copy and no signature check. Otherwise Orca clones the helper into a staging folder beside it, checks it once with codesign --verify --strict -R "=<the app's designated requirement>", and publishes it with one atomic rename. If another publisher wins the rename, Orca uses that copy.
  • The daemon starts through launchd (gui/$UID) under one fixed label per profile and protocol, with AssociatedBundleIdentifiers naming Orca. Before starting, Orca removes a stopped job left under that label. If a job under that label is still running, the launch fails rather than starting a second daemon beside it. The existing authenticated handshake and launch nonce establish ownership.
  • Live sessions are preserved.
  • Cleanup deletes every other copy and leftover staging folder once lsof +D shows no process using it (after lsregister -u). lsof +D exits 1 even when a process is using the folder, so only empty output counts as unused. If the check is uncertain, the copy stays. No per-copy record file is kept.
  • If a failure proves no launchd job can still claim the socket, Orca falls back to today's forked daemon and logs one line with the reason (prepare-failed, deadline, bootstrap-refused, exited-before-ready or endpoint-taken). If the published copy fails to start, Orca deletes it when nothing uses it, so the next launch makes a fresh copy.

Slim helper (new)

  • The macOS build adds Contents/Helpers/Orca Terminal Host.app, which contains:

    • the pinned Node runtime Orca already ships for SSH, renamed orca-terminal-host;
    • the daemon's compiled JS;
    • the terminal library's native files;
    • Orca's icon and usage descriptions, including Desktop, Documents and Downloads (the app's own Info.plist now carries the same three).

    It is signed as com.stablyai.orca with the same team and entitlements, so its designated requirement equals the app's. It claims no URL schemes or document types.

  • A check after signing boots the signed helper and opens a real PTY on each architecture. The build fails if it can't. Release and CI builds also fail if this machine cannot run a slice (for example x64 without Rosetta); local builds skip that slice with a log line.

  • The launcher copies this helper instead of the whole app. The packaging step copies each package the daemon needs from where Node would load it, including dependencies of nested packages. Below macOS 13.5 (the Node runtime's floor), Orca uses the forked daemon, as it does today.

  • The 4 macOS release workflows cache and prefetch the pinned Node archive.

Disk use for each old version whose terminals outlive an update:

Per old version
main today ~240 MB, estimated
#25848 alone 628 MB
This PR 124 MB, measured

The installed app grows from 628 MB to ~752 MB, and the download from ~255 MB to ~294 MB (estimated).

Why

macOS ties privacy grants to the designated requirement, not to the path or the binary hash. A daemon whose app is deleted before its first protected access is denied, even after the app comes back. A launchd job running from a private signed copy is unaffected. I considered:

The helper has the same identity and only what the daemon needs.

Why one copy per build rather than one per launch: macOS spends about 1 s the first time a binary runs from a new path (measured 996 ms on the first run, 23 ms after). With a copy per launch, every new daemon paid about 0.7 s more than main. With one copy per build, only the first daemon after an update pays it. Keeping one copy per build also removes the per-copy record file, producer pid tracking and per-launch label cleanup, and caps disk use at one copy per build still in use. Investigation history: #20452, and the original signed experiment.

Rollback

Make launchMacDaemonFromStableBundle in src/main/daemon/macos-daemon-launchd.ts return null right after its platform checks; every launch then forks as before. Keep the cleanup call running there (retireOtherMacDaemonCopies(root, '')) until no copy-launched daemon can remain.

Linked Issue

Fixes #13921

Visual Proof

N/A: no UI change. The terminal service starts differently; nothing on screen changes. The Settings status row moved to #27354, with its screenshots.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Signed ad hoc builds of this branch. These predate the switch to one copy per build and the fixed launchd label, so they ran the earlier copy-per-launch launcher. They were built before the split, so they also include #27354: A and B. On both:

  • the post-sign boot check opened a PTY for x64 and for arm64;
  • the helper's designated requirement equals the app's;
  • notarized; minos 13.5.

Deleting the app (build A, macOS 27, arm64, launchd jobs). The app is deleted while a shell is open, then the shell makes its first protected read. The shell's parent process was recorded in every run.

Daemon Result
Whole-app daemon, app kept (baseline) Full Disk Access OK, 2/2
Whole-app daemon, app deleted Full Disk Access denied, 3/3
Helper copy, app deleted Full Disk Access + Documents/Desktop/Downloads OK, 3/3
Helper copy, new session opened after deletion all OK, 3/3

Daily use (signed spike of this design on macOS 27): the daemon ran from the helper copy. Documents, Desktop, Downloads, Full Disk Access and local network all worked with no prompt. Settings showed a single Orca entry, the helper was not registered with LaunchServices, and the copy was 124 MB.

#25848's own evidence (whole-app copy) still applies to the shared launcher:

  • the macOS 26.3.1 native reproduction;
  • 22 real PTY checks across bundle replacements and deletion;
  • Spotlight/LaunchServices isolation of app.noindex;
  • retirement of crashed and abandoned copies;
  • full CI at 0b5f6c48e09b.

Unit tests cover packaging, the boot check, the OS-floor gate and the helper launch path.

After the switch to one copy per build, locally on macOS (arm64):

  • pnpm tc passes.
  • Daemon, packaging and related tests: 2598 passed, 15 skipped, 2 failed. The 2 failures are repro-13767-shell-ready-marker-lost-to-exec.test.ts, which also fails on main on this Mac.
  • pnpm run check:reliability-gates passes; the gate's focused command runs 64 tests, all passing.
  • oxlint and pnpm run check:code-quality:changed are clean on the changed files.
  • New tests cover: reusing a published copy, a new copy per helper build, losing the publish rename, a stopped or running job under the fixed label, deleting a copy that failed to start, and keeping a copy when lsof lists a process but exits 1 (the shape seen on a live copy).

Not yet covered:

  • a signed build of the one-copy-per-build launcher (the signed evidence above predates it);
  • a physical Intel Mac (CI's x64 boot check passed);
  • the fallback on macOS 12–13.4, which is unit tested;
  • a fresh macOS user's first permission prompt;
  • a real update between two release builds;
  • a release-workflow run of the new Node cache steps.

Review

Ownership, startup deadlines, signed-copy integrity and unknown-preserving cleanup were reviewed in #25848. The helper packaging, the boot check and the launch change had two spec reviews and one code review, and all must-fix findings are addressed. Old terminals that were already denied still need a deliberate restart.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Split: the Settings Full Disk Access row per terminal host, the stable-copy telemetry value, and folder descriptions for the app's Helper bundles (used by the fork fallback) are in #27354, stacked on this PR.

macOS only. Linux, Windows, SSH and dev builds use their existing paths. Bumps the daemon protocol to v45, so after an update new macOS tabs start in the helper while existing tabs stay on their old daemon. Rolling back to a v44 build cannot reach the v45 daemon's tabs until re-upgrade, as with any bump. The bump rides with the launcher change on purpose (label allow-runtime-launcher-protocol-bump). There's no new stream opcode. The bump also gives Linux and Windows users a fresh daemon on update, with no benefit to them; that is the usual cost of a protocol bump.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

nwparker and others added 22 commits October 7, 2026 15:36
…ndpoint

A copy, signature, plist or deadline failure before bootstrap, a bootstrap
launchd refused with the job absent, a job whose daemon exited before
answering, and a foreign endpoint all threw out of the launcher. The app then
lost its persistent daemon and fell back to local PTYs, where main forks one.
These now fall through to the existing fork path, which also adopts a foreign
occupant normally instead of as a degraded endpoint. A timed-out bootstrap or
a job still running/unreadable stays fatal, so no second daemon races it.
daemon_adopted, daemon_pty_cwd_denied and daemon_pty_cwd_readable gain a
closed-enum launch_method (stable-copy / app-fork / unknown), read from the
spawner path the daemon recorded, so the update fix is measurable per daemon
even when an old forked daemon is adopted across updates. The reliability
gate is a test manifest with no runtime switch, so there is no gate state to
report; spawner_path_class reports the private copy as 'other' alongside
other non-/Applications installs.
The separate launch_method property duplicated what the recorded spawner
path already says. spawner_path_class gains `stable-copy`, classified from
the same path under the private runtime root, and launch_method, its enum
and classifier are removed from all three .strict() daemon origin events.
A deleted copy still reports `missing`.
The permissions handler already asks for the terminal-host status only on
macOS, so the status function's own platform check and the pane's
'unsupported' branch could never fire. The off-macOS guarantee is now
tested at the handler.
The stable launch could run until 55 s after the launch started, so a late
"unavailable" verdict left the fork fallback's own 10 s readiness wait to
finish after the 60 s gate had already moved the app to local PTYs.

The launcher now gives the stable attempt one handoff deadline: the gate
minus the fork's readiness timeout and the 5 s lease/adapter allowance
(45 s). Copy, signature check and plist conversion share one abort signal
that ends early enough for bootstrap and the job's own readiness wait to
meet that deadline; every command otherwise keeps a fixed timeout. An
unavailable verdict past the deadline is reported instead of forking a
daemon that cannot arrive in time. The per-step budget module is gone (its
deletion landed in the previous commit by a staging slip).

The launch body is now two blocks: preparation (plist, plutil, deadline
check) fails as unavailable after removing the copy and job file, and
bootstrap runs in its own try/finally that always deletes the job file.

Retirement is simpler and claims more orphans: one in-flight collection per
process instead of a per-root map and rotating 20-record scan, and the job
record (written before copying) no longer carries a bundle name because
lsof +D scans the whole runtime directory (measured equal cost, same
result on a live copy). A never-submitted copy is retired once its producer
has exited and its job is missing, so a bootstrap timeout or a crash
mid-copy no longer leaves a copy forever; the open-file check still guards
deletion. Collection now starts from the launcher after the attempt.
The signed investigation harness left the tree in the previous telemetry
commit by a staging slip; its results and pinned link stay in the PR. This
trims the reference doc to why the copy and launchd exist, the fallback
states and the cleanup rule, trims the reliability gate to what its
validator needs, and points AGENTS.md at the reference doc next to the
Windows relocation entry.
A copied daemon refused at exec (for example by Gatekeeper) never answers,
so every fresh start paid the full 10 s readiness wait before the fork
fallback. The readiness loop now reads the job state every 500 ms and
abandons as soon as the job is stopped or missing; a running or
unreadable job is still waited out and never forked beside.

Also drops the dead forkEntryPath the stable launch never read (its
options type now omits it) and un-exports the handoff constant.
…d ones

Each runtime copy is a full Orca.app, so Spotlight indexed it as an app
and LaunchServices kept a record for it that outlived the copy. A
registered copy claims orca: links and Markdown/CSV files, and becomes
their default handler whenever /Applications/Orca.app is not registered.

New copies go under runtime-*/app.noindex/, which Spotlight skips and which
stops the record LaunchServices made while the bundle was being copied.
Retirement now runs lsregister -u on every bundle in the copy (both the
app.noindex layout and the earlier runtime-*/Orca.app layout) once lsof
shows it unused, then deletes it. A running copy stays registered,
because Local Network access may be resolved through that record.

Collection and stable-copy telemetry match the runtime-* directory, so
copies made before this change are still adopted, classified and retired.
The reference doc now explains why copies sit in a .noindex folder, why
only retired copies are unregistered, and how to turn the copy launch off:
make launchMacDaemonFromStableBundle return null, and keep the retirement
code until no copy-launched daemon can remain, because the old code never
deletes copies.

A test pins that rollback: with the stable launcher returning null, the
launcher forks and still runs the copy collection.
…e them

The `.noindex` folder kept copies out of Spotlight and LaunchServices, but
Local Network access is resolved from the signing identifier through
LaunchServices to the executable's Mach-O UUID. After an update that changes
Electron only the copy carries the running daemon's UUID, so an unregistered
copy risks the same Local Network loss main has today. Copies go back to
`runtime-*/Orca.app`; retirement still unregisters each copy before deleting
it, so deleted copies leave no LaunchServices entry. The remaining trade-off:
while `/Applications/Orca.app` is missing, a running registered copy can be
picked for `orca:` links and documents.
Spotlight listed each runtime copy as a second Orca app. New copies go
back under runtime-*/app.noindex/Orca.app, which Spotlight skips.
Retirement and stable-copy telemetry match the runtime-* directory, so
copies in the earlier runtime-*/Orca.app layout still retire and classify
the same way.

Local Network access identifies the daemon by its code signature and
main-executable UUID, not by a LaunchServices record, so an unregistered
copy keeps it. The launchd job now sets AssociatedBundleIdentifiers to
com.stablyai.orca, which is how a job not installed through SMAppService
names the app it belongs to. Copies are never registered explicitly;
retirement still runs lsregister -u before deleting each one.
…on on the pinned Node

Contents/Helpers/Orca Terminal Host.app carries the pinned Node, the daemon's
out/main JS and this slice's node-pty, signed inside-out as com.stablyai.orca.
afterPack boots it through one PTY round trip, then fails the build on layout,
Info.plist, macOS floor (NODE_RUNTIME_DARWIN_MINIMUM_OS vs Node's minos),
architecture or signature drift.
Packaging now fetches the darwin Node from nodejs.org, whose download has no
retry. Each mac workflow caches it with the electron-builder downloads, keyed on
the pin, and warms both darwin targets inside the existing retry wrapper.
…r, not the whole app

The stable launch now clones Contents/Helpers/Orca Terminal Host.app (~124 MiB
instead of ~628 MiB) and runs its Node on its daemon entry, without
ELECTRON_RUN_AS_NODE. The copy must still match the running app's designated
requirement. A missing helper falls back to the fork, and macOS below the
helper's Node floor forks without copying.
…ways clean up

A daemon that stayed silent hung packaging past the 20 s deadline; one that closed the
connection left the hello unsettled so Node exited 0 without cleanup; a malformed line threw
uncaught. Every connect, hello and PTY wait now races the deadline, close/error/parse failures
reject, and the daemon and scratch dir are removed on every path.
…fallback

Sharing the electron-builder cache let old Node archives accumulate through restore-keys.
Also moves release-mac-build's Electron cache comment back onto its step.
…s name in one test

packageMacTerminalHost turned an unknown arch into darwin-undefined; it now throws through the
shared mac arch mapping. A test asserts the packager and the desktop agree on the helper bundle
and executable names, replacing a Linux/Windows test that could not fail.
@Jinwoo-H Jinwoo-H changed the title fix(macos): run the update-safe terminal daemon from a small signed helper, not a full app copy fix(macos): preserve terminal permissions across app updates with a small signed helper Oct 9, 2026
@Jinwoo-H
Jinwoo-H changed the base branch from nwparker/macos-tcc-grants-full-disk-access-desktop-keep-g to main October 9, 2026 23:11
@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner October 9, 2026 23:11
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The macOS packaging flow now builds and verifies a signed terminal-host helper containing pinned Node. Eligible packaged launches can run the daemon through launchd, with deadline- and job-state-based fallback to the existing fork path. New copy materialization and retirement logic manages helper bundles and records stable-copy paths in telemetry. Full Disk Access reporting now includes terminal-host status, which the settings pane displays with recovery instructions. The macOS permission probe reads from the TCC database.















































Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: 🔵 Low · up to 96da4

The new macOS terminal-host helper finds the daemon's dependencies by scanning its source with simple patterns. Some valid module-loading forms, or packages installed only inside another package, could either stop the macOS build or leave a dependency out of the helper. There is no evidence that the current daemon uses those forms, so the change is mergeable. The scanner should still be hardened soon so that later daemon changes do not break helper packaging.

Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check Warning Issue #13921 requires a stable macOS signing identity across updates and verification that the updater preserves it. The PR verifies the helper copy with strict signing checks and matches its designat… Add reviewable automated or release evidence for a ShipIt update between two packaged macOS versions. Verify the bundle identifier, signing team, certificate identity, and designated requirement before and after replacement. Keep an existin…
Docstring Coverage Warning Docstring coverage is 31.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 85 functions across 50 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Out of Scope Changes check Passed The changes support issue #13921. The helper packaging, stable-copy launch path, signature checks, conservative cleanup, permission-status reporting, release workflow cache steps, documentation, telem…
Description check Passed The description includes all required sections, links issue #13921, explains the user impact and implementation, documents testing and known gaps, and addresses rollback, compatibility, and review con…
Title check Passed The title clearly and concisely describes the main change: preserving macOS terminal permissions across app updates by using a small signed helper.




Full details: Linked Issues check

Explanation

Issue #13921 requires a stable macOS signing identity across updates and verification that the updater preserves it. The PR verifies the helper copy with strict signing checks and matches its designated requirement to the running app. The PR does not verify an updater replacement between two packaged app versions. The PR description lists this real-update test as not covered. The optional one-time re-grant documentation and post-update health check are not required because issue #13921 marks them as considerations.

Resolution

Add reviewable automated or release evidence for a ShipIt update between two packaged macOS versions. Verify the bundle identifier, signing team, certificate identity, and designated requirement before and after replacement. Keep an existing terminal session open and verify protected-path access after the update.








✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR




















  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a853d9b0-7855-4810-ac62-c6804ddcc10b
📥 Commits

Reviewing files that changed from the base of the PR and between 0a1d09d and b10135b.

📒 Files selected for processing (54)
  • .github/workflows/adhoc-mac-build.yml
  • .github/workflows/daily-mac-build.yml
  • .github/workflows/hourly-mac-build.yml
  • .github/workflows/release-mac-build.yml
  • AGENTS.md
  • config/electron-builder.config.cjs
  • config/reliability-gates.jsonc
  • config/scripts/macos-folder-usage-descriptions.cjs
  • config/scripts/macos-folder-usage-descriptions.test.mjs
  • config/scripts/macos-terminal-host-bundle.cjs
  • config/scripts/macos-terminal-host-bundle.test.mjs
  • config/scripts/pinned-node-downloads.mjs
  • config/scripts/verify-packaged-daemon-entry.cjs
  • config/scripts/verify-packaged-daemon-entry.test.mjs
  • docs/reference/macos-daemon-tcc-attribution.md
  • src/main/codex/codex-background-terminals.ts
  • src/main/daemon/daemon-adoption-telemetry-event.test.ts
  • src/main/daemon/daemon-adoption-telemetry-event.ts
  • src/main/daemon/daemon-full-disk-access-status.test.ts
  • src/main/daemon/daemon-full-disk-access-status.ts
  • src/main/daemon/daemon-init-macos-stable-launch-fallback.test.ts
  • src/main/daemon/daemon-launched-child-spawn.ts
  • src/main/daemon/daemon-launched-child.ts
  • src/main/daemon/daemon-mac-code-identity.test.ts
  • src/main/daemon/daemon-mac-code-identity.ts
  • src/main/daemon/daemon-out-of-process-launcher.ts
  • src/main/daemon/daemon-permission-requests.ts
  • src/main/daemon/daemon-pty-adapter-full-disk-access.test.ts
  • src/main/daemon/daemon-pty-adapter.ts
  • src/main/daemon/daemon-request-router.ts
  • src/main/daemon/daemon-server.test.ts
  • src/main/daemon/macos-daemon-bundle-retirement.test.ts
  • src/main/daemon/macos-daemon-bundle-retirement.ts
  • src/main/daemon/macos-daemon-bundle.test.ts
  • src/main/daemon/macos-daemon-bundle.ts
  • src/main/daemon/macos-daemon-job-state.test.ts
  • src/main/daemon/macos-daemon-job-state.ts
  • src/main/daemon/macos-daemon-launchd.test.ts
  • src/main/daemon/macos-daemon-launchd.ts
  • src/main/daemon/types.ts
  • src/main/ipc/developer-permissions.test.ts
  • src/main/ipc/developer-permissions.ts
  • src/main/macos-full-disk-access-status.test.ts
  • src/main/macos-full-disk-access-status.ts
  • src/renderer/src/components/editor/editor-cmd-save-target.ts
  • src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx
  • src/renderer/src/components/settings/DeveloperPermissionsPane.tsx
  • src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx
  • src/renderer/src/components/terminal-workspace-model.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/daemon-adoption-telemetry.test.ts
  • src/shared/daemon-adoption-telemetry.ts
  • src/shared/developer-permissions-types.ts
  • src/shared/node-runtime-pin.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

Comment thread config/reliability-gates.jsonc Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7291d6d1-d03e-44be-8a3b-eef32f9840e1
📥 Commits

Reviewing files that changed from the base of the PR and between 3026f47 and ee4f075.

📒 Files selected for processing (16)
  • config/electron-builder.config.cjs
  • src/main/daemon/daemon-launched-child-spawn.ts
  • src/main/daemon/daemon-launched-child.ts
  • src/main/daemon/daemon-mac-code-identity.test.ts
  • src/main/daemon/daemon-mac-code-identity.ts
  • src/main/daemon/daemon-out-of-process-launcher-host-prune.test.ts
  • src/main/daemon/daemon-out-of-process-launcher.ts
  • src/main/daemon/macos-daemon-bundle-retirement.test.ts
  • src/main/daemon/macos-daemon-bundle-retirement.ts
  • src/main/daemon/macos-daemon-bundle.test.ts
  • src/main/daemon/macos-daemon-bundle.ts
  • src/main/daemon/macos-daemon-job-state.test.ts
  • src/main/daemon/macos-daemon-job-state.ts
  • src/main/daemon/macos-daemon-launchd.test.ts
  • src/main/daemon/macos-daemon-launchd.ts
  • src/renderer/src/i18n/locales/en.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/i18n/locales/en.json
  • src/main/daemon/daemon-mac-code-identity.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@Jinwoo-H Jinwoo-H added the allow-runtime-launcher-protocol-bump Override: allow a daemon protocol bump in a PR that changes the runtime launcher (D7.1 R3) label Oct 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50cb2e87-c2bf-4d8a-bb78-9e499ddf8cd0
📥 Commits

Reviewing files that changed from the base of the PR and between c69513a and 96da44a.

📒 Files selected for processing (3)
  • config/scripts/macos-terminal-host-bundle.cjs
  • config/scripts/macos-terminal-host-bundle.test.mjs
  • config/scripts/verify-packaged-daemon-entry.cjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

…lper folder strings to a follow-up

Keeps this change to the update-safe terminal host itself. The follow-up restores:
- the `stable-copy` spawner path class in daemon adoption telemetry;
- the per-terminal-host Full Disk Access row in Settings and its daemon RPC;
- writing folder usage descriptions into the app's Electron Helpers for the fork fallback.

The helper still takes its Desktop, Documents and Downloads descriptions from
`macos-folder-usage-descriptions.cjs`, so that constant stays.
The previous commit took the file from a newer main, which pulled unrelated strings into this PR.
…r a fixed launchd label

Name the copy after the helper's CDHash, reuse it when present, and
publish a new one by cloning into a staging dir, verifying it once
against the app's designated requirement and renaming it into place.
One launchd label per profile and protocol replaces per-launch labels,
so job.json, producer pids and per-label collection go away. Retirement
deletes any other copy lsof shows unused. The stable launcher returns
null for every fork fallback and logs its reason.
…ves them

A nested package's own dependencies were never walked, so a hoisted
dependency of a nested package was left out of the helper. Resolve each
dependency through the node_modules lookup Node performs from its parent
and copy it to the same relative place, unless a copied package already
carries it.
…minal-host slice

An arm64 runner without Rosetta skipped the x64 helper's PTY boot check
and shipped the slice untested. Release channels and CI now fail there;
local cross-arch builds still skip with a log line.
…minal-host

# Conflicts:
#	src/main/daemon/daemon-launched-child-spawn.ts
#	src/main/daemon/daemon-out-of-process-launcher.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-runtime-launcher-protocol-bump Override: allow a daemon protocol bump in a PR that changes the runtime launcher (D7.1 R3)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS TCC grants (Full Disk Access / Desktop) keep getting invalidated after Orca updates — child processes hit EPERM mid-session

2 participants