Repository navigation
Description
Summary
This is a regression of #6996 (fixed by #7003, "Fix macOS TCC attribution for terminal children via login(1)").
After the fix shipped, the behavior was correct for a while: the macOS "access to other apps' data" TCC prompt (kTCCServiceSystemPolicyAppData) for the 1Password CLI (op) was remembered after the first approval and did not re-appear.
Starting roughly two releases ago (around 1.4.139, still reproducible on 1.4.141), the pre-fix behavior is back: the "'Orca' から、ほかのアプリからのデータへのアクセス権を求められています" dialog fires again on every single op invocation launched from a shell running under Orca, exactly as originally reported in #6996. A workflow that shells out to op several times in a row (via a wrapper like op run / multiple op item get calls) triggers the dialog on each call.
Environment
- Orca: 1.4.141 (regressed around ~1.4.139; the Fix macOS TCC attribution for terminal children via login(1) #7003 fix was working on the versions in between Fix macOS TCC attribution for terminal children via login(1) #7003's release and then)
- macOS: 26.5.1 (build 25F80), Apple Silicon
- 1Password CLI (
op): 2.32.1 (Homebrew Cask)
Steps to reproduce
Same as #6996:
- In a shell/terminal running under Orca, run a script that invokes the
opCLI several times in a row (e.g.op whoamifollowed by severalop item get .../op run -- <cmd>calls). - Each
opinvocation triggers thekTCCServiceSystemPolicyAppDatadialog again, even though Orca,op, and the target vault are unchanged between calls — i.e. the grant is not being attributed/persisted per child binary anymore.
Expected behavior
The behavior #7003 restored: the spawned child keeps its own code identity (com.1password.op) for TCC attribution, so the "other apps' data" grant is persisted after the first approval and later op invocations do not re-prompt.
Notes / possible lead
- The regression window (~1.4.139) lines up with fix(daemon): resolve Unix shell fallback before node-pty spawn #8306 ("fix(daemon): resolve Unix shell fallback before node-pty spawn", merged 2026-07-11), which touched the daemon PTY spawn path and
local-pty-utils.tsaround the same code that applieswrapShellSpawnForMacosTccAttribution. That PR still imports the TCC wrapper, so this is only a timing-based suspicion — but it may be worth checking whether some spawn path (e.g. the daemon subprocess path, or the fallback-resolved shell path) no longer goes through thelogin(1)wrapper. - This appears distinct from [Bug]: TCC "access other apps' data" prompt re-appears for SSH agent (Secretive/SecretAgent): attribution is correct but the AppData grant is session-scoped, not persisted #8381, where attribution is reported as correct but the grant is session-scoped; here the symptom matches the original TCC 'access to other apps' data' prompt re-appears on every subprocess launch (e.g. 1Password op CLI) instead of being remembered #6996 (re-prompt on every subprocess launch).
Happy to capture a fresh log stream --predicate 'subsystem == "com.apple.TCC"' --info trace on 1.4.141 if useful.
Activity
nwparker commentedon Jul 21, 2026
Attempted to reproduce on macOS (code trace against
main, HEAD 0e7b0ac). I could not reproduce this as a code regression.The reported cause — "a spawn path lost the
login(1)TCC wrapper around 1.4.139 / #8306" — doesn't hold up at the code level: #8306 preserveswrapShellSpawnForMacosTccAttributionon the daemon spawn path, and the wrapper source is byte-identical from #7003 through 1.4.141. At HEAD every user-terminal spawn path (daemonpty-subprocess+ local-pty primary/fallback) still calls the wrapper, and the login preflight is awaited before spawn, so the shell is login-wrapped on a healthy Mac. Nothing in our source removes attribution between #7003 and 1.4.141.One residual fail-open path does exist and may be worth hardening separately:
wrapShellSpawnForMacosTccAttributionskips wrapping whenever the login preflight is inconclusive (pipe-probe timeout / spawn error leaves the cachenull), which drops to an unwrapped shell whereopcan re-prompt — even though a real PTY login would have succeeded. If that matches your machine (macOS 26.x, preflight timing out), that's a different bug than "#8306 removed the wrapper." Markingcannot_reprofor the reported regression; please share your exact macOS + Orca version and aConsole.apptccdlog line around the prompt if you'd like to pursue the inconclusive-preflight angle.shawnkoh commentedon Aug 4, 2026
Still reproducible on Orca 1.4.167.
Environment:
I confirmed this passively from the macOS TCC log while several existing Orca worktrees were running. Between 19:20 and 19:47, there were 23 separate
AUTHREQ_PROMPTINGevents forkTCCServiceSystemPolicyAppDatawhere the requesting binary was 1Password CLI but the subject was still attributed to Orca:Each event had a fresh
opPID. Several prompts occurred only seconds apart. This matches the original #6996 failure mode: macOS seescom.stablyai.orcarather than preservingcom.1password.op, so the AppData decision is not persisted across child invocations.Steps to reproduce:
On macOS 26.5.1, enable 1Password desktop app integration under 1Password → Settings → Developer → Integrate with 1Password CLI.
Open and unlock 1Password.
Open an Orca terminal.
Resolve the configured account without printing its details:
account_id="$(op account list --format=json | jq -er '.[0].account_uuid')"Invoke an authenticated CLI operation several times in the same terminal:
Approve the first macOS AppData prompt and the first 1Password CLI authorization prompt.
Expected: macOS remembers the AppData decision; subsequent calls in the same terminal do not show the macOS prompt. 1Password authorization is also reused in that terminal according to its 10-minute session policy.
Actual: the macOS “Orca would like to access data from other apps” prompt is generated again for later
opchild invocations. The unified log continues to attribute each separately signedopbinary tocom.stablyai.orca.The prompt storm is severe in normal multi-worktree use because independent agents invoke
opconcurrently. I can provide a redactedtccdexcerpt if useful.shawnkoh commentedon Aug 4, 2026
I traced the current 1.4.167 implementation and compared it with the working cmux/Ghostty launch path. I think this is now narrow enough for a concrete fix attempt.
The daemon log on the affected machine contains no
macos-login-preflightdegradation event. Current Orca logs negative and inconclusive preflight outcomes, so the evidence indicates that the preflight was accepted and Orca believed thelogin(1)wrapper was active. Despite that,tccdstill reports:That makes the residual “inconclusive preflight caused an unwrapped spawn” path unlikely for this reproduction. The wrapper appears to be running but is not producing the required TCC responsibility boundary.
A potentially important difference is the process shape:
Ghostty’s macOS implementation is here:
https://github.com/ghostty-org/ghostty/blob/bdd849fc2feff762612c2d057db7e013c118e390/src/termio/Exec.zig
Ghostty launches
/usr/bin/login -flp, starts/bin/bash --noprofile --norc, and uses Bash’sexec -lto replace the trampoline with the actual configured shell. Since cmux was the working comparator in #6996, I suggest testing that exact launch structure rather than continuing to harden the currentlogin → env → shellstructure.A safe Orca equivalent could pass all values positionally rather than interpolating shell paths or arguments:
In TypeScript terms, the argument construction would be approximately:
This preserves:
SHELL, without/usr/bin/envinterposition;exec -l;login -l;I would pair this with two forms of verification:
=, fallback shells, and the exactlogin → bash → exec -largv.opprocesses in one PTY and confirms:tccdreportscom.1password.opas the accessing identity;AUTHREQ_PROMPTING.It would also help to log the selected spawn strategy per PTY—
login-bash-exec,direct, and the degradation reason—because the existing daemon log proves the preflight result but not the actual wrapper selected for each terminal spawn.This remains a fix hypothesis until tested on the affected machine, but matching cmux/Ghostty’s known-working launch structure looks like the strongest next experiment.
AmethystLiang commentedon Aug 4, 2026
thanks for reporting. looking into it
AmethystLiang commentedon Aug 5, 2026
Linked duplicate closed
Closing #12534 as a Discord-bot mirror of this 1Password / macOS TCC prompt storm. Extra context transferred:
Note: this issue was already fixed via #12562 (
fix(pty): restore macOS TCC attribution persistence). If the storm still reproduces after that fix ships in a build, please re-open with the new version + TCC log snippets.marcelkooi commentedon Aug 28, 2026
Still reproducing after #12562, and I think I can name the mechanism. Please re-open.
Environment
op read— the CLI stats~/Library/Group Containers/2BUA8C4S2C.com.1passwordon every invocationSymptom: "Orca would like to access data from other apps" fires on every
op read, several times an hour. Clicking Allow does not persist, and no Orca row ever appears in System Settings → Privacy & Security. Quitting the 1Password desktop app changes nothing (the group container is on disk regardless).The daemon that spawns the terminal is a previous app generation
~/Library/Application Support/orca/daemon/daemon-v36.pid:{"pid":38995,"startedAtMs":1787326945385.4038, "entryPath":"/Applications/Orca.app/Contents/Resources/app.asar.unpacked/out/main/daemon-entry.js", "appVersion":"1.4.187", "spawnerExecPath":"/Applications/Orca.app/Contents/MacOS/Orca", ...}CFBundleShortVersionString = 1.4.188.spawnerExecPathpoints at the bundle ShipIt overwrote on 2026-08-26.Process chain for a shell that triggers the prompt:
Why this looks like a regression of the #12562 fix
#14655 ("stop reporting every app update as severed TCC attribution", merged 2026-08-14) removed the
parsedPid.appVersion !== packagedAppVersioncheck fromgetMacDaemonTccAttributionHealth(). Its rationale is that tccd tracks the responsible binary by file reference plus code identity and survives same-path replacement by an identically-signed bundle — which matches the Automation/Accessibility/Screen Recording probes in that PR body.That reasoning may not hold for
kTCCServiceSystemPolicyAppData, which was not among the probed services. The PR also notes the remaining replacement path indaemon-init.tsonly fires at zero live sessions; with long-running agent sessions the version-mismatched daemon never gets cycled, so it persists indefinitely — exactly the state above, 7 days and one update later. Timeline fits: ShipIt installs on 2026-07-13, 07-31, and 08-05 produced no prompts; the first build containing #14655 did.Possibly contributing: no
NSAppDataUsageDescription/Applications/Orca.app/Contents/Info.plistdeclaresNSCameraUsageDescription,NSMicrophoneUsageDescription,NSBluetoothAlwaysUsageDescription,NSLocationUsageDescription,NSAppleEventsUsageDescription,NSLocalNetworkUsageDescription,NSAudioCaptureUsageDescription,NSDocumentsFolderUsageDescription,NSDownloadsFolderUsageDescription— but notNSAppDataUsageDescription. tccd's strings includekTCCServiceSystemPolicyAppDataalongsideNSAppDataUsageDescription. That would independently explain why the grant is never recorded and never appears in the settings pane, and it would also cover #8381's "session-scoped, not persisted" report.Codesign is fine and stable:
Developer ID Application: Lovecast LLC (6CX3WHS9HZ),com.stablyai.orca, hardened runtime.Suggested checks
kTCCServiceSystemPolicyAppDataspecifically across a ShipIt swap with a surviving version-mismatched daemon — the fix(macos): stop reporting every app update as severed TCC attribution #14655 probes covered AppleEvents, Accessibility, and Screen Recording only.NSAppDataUsageDescriptiontoInfo.plist.Happy to run further probes on this machine — the stale 1.4.187 daemon is still live and I can hold it in that state.
feat(secrets): opt-in 1Password op:// secret resolution for tab envir…