Skip to content

[Regression] TCC 'access to other apps' data' prompt re-appears on every subprocess launch (op CLI) — regression of #6996 since ~1.4.139 #8985

Closed

Description

@saka2jp

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

Steps to reproduce

Same as #6996:

  1. In a shell/terminal running under Orca, run a script that invokes the op CLI several times in a row (e.g. op whoami followed by several op item get ... / op run -- <cmd> calls).
  2. Each op invocation triggers the kTCCServiceSystemPolicyAppData dialog 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

Happy to capture a fresh log stream --predicate 'subsystem == "com.apple.TCC"' --info trace on 1.4.141 if useful.

Activity

  1. added
    pending_repro
    on Jul 21, 2026
  2. nwparker commented on Jul 21, 2026

    @nwparker
    Contributor

    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 preserves wrapShellSpawnForMacosTccAttribution on the daemon spawn path, and the wrapper source is byte-identical from #7003 through 1.4.141. At HEAD every user-terminal spawn path (daemon pty-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: wrapShellSpawnForMacosTccAttribution skips wrapping whenever the login preflight is inconclusive (pipe-probe timeout / spawn error leaves the cache null), which drops to an unwrapped shell where op can 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." Marking cannot_repro for the reported regression; please share your exact macOS + Orca version and a Console.app tccd log line around the prompt if you'd like to pursue the inconclusive-preflight angle.

  3. added
    bug
    on Jul 27, 2026
  4. shawnkoh commented on Aug 4, 2026

    @shawnkoh
    Contributor

    Still reproducible on Orca 1.4.167.

    Environment:

    • Orca: 1.4.167
    • macOS: 26.5.1 (25F80), Apple Silicon
    • 1Password CLI: 2.38.1 (Homebrew Cask)

    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_PROMPTING events for kTCCServiceSystemPolicyAppData where the requesting binary was 1Password CLI but the subject was still attributed to Orca:

    service=kTCCServiceSystemPolicyAppData
    subject=Sub:{com.stablyai.orca}
    responsible_path=/Applications/Orca.app/Contents/MacOS/Orca
    binary_path=/opt/homebrew/Caskroom/1password-cli/2.38.1/op
    

    Each event had a fresh op PID. Several prompts occurred only seconds apart. This matches the original #6996 failure mode: macOS sees com.stablyai.orca rather than preserving com.1password.op, so the AppData decision is not persisted across child invocations.

    Steps to reproduce:

    1. On macOS 26.5.1, enable 1Password desktop app integration under 1Password → Settings → Developer → Integrate with 1Password CLI.

    2. Open and unlock 1Password.

    3. Open an Orca terminal.

    4. Resolve the configured account without printing its details:

      account_id="$(op account list --format=json | jq -er '.[0].account_uuid')"
    5. Invoke an authenticated CLI operation several times in the same terminal:

      op vault list --account "$account_id" >/dev/null
      op vault list --account "$account_id" >/dev/null
      op vault list --account "$account_id" >/dev/null
    6. 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 op child invocations. The unified log continues to attribute each separately signed op binary to com.stablyai.orca.

    The prompt storm is severe in normal multi-worktree use because independent agents invoke op concurrently. I can provide a redacted tccd excerpt if useful.

  5. shawnkoh commented on Aug 4, 2026

    @shawnkoh
    Contributor

    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-preflight degradation event. Current Orca logs negative and inconclusive preflight outcomes, so the evidence indicates that the preflight was accepted and Orca believed the login(1) wrapper was active. Despite that, tccd still reports:

    subject=Sub:{com.stablyai.orca}
    responsible_path=/Applications/Orca.app/Contents/MacOS/Orca
    binary_path=/opt/homebrew/Caskroom/1password-cli/2.38.1/op
    

    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:

    Orca:
    login → env → configured shell → op
    
    cmux/Ghostty:
    login → clean bash trampoline → exec -l configured shell → op
    

    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’s exec -l to 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 current login → env → shell structure.

    A safe Orca equivalent could pass all values positionally rather than interpolating shell paths or arguments:

    /usr/bin/login -flpq <user> \
      /bin/bash --noprofile --norc -c \
      'export SHELL="$1"; shift; exec -l "$@"' \
      orca-tcc-login \
      <SHELL value> \
      <configured shell> \
      <configured shell args...>
    

    In TypeScript terms, the argument construction would be approximately:

    const trampoline = 'export SHELL="$1"; shift; exec -l "$@"'
    
    return {
      file: '/usr/bin/login',
      args: [
        '-flpq',
        username,
        '/bin/bash',
        '--noprofile',
        '--norc',
        '-c',
        trampoline,
        'orca-tcc-login',
        shellEnvValue,
        file,
        ...args
      ]
    }

    This preserves:

    • the configured shell and all arguments without string interpolation;
    • SHELL, without /usr/bin/env interposition;
    • login-shell semantics through exec -l;
    • the existing working directory through login -l;
    • one final shell process rather than a persistent trampoline.

    I would pair this with two forms of verification:

    1. Unit tests covering custom shell paths, arguments containing spaces or =, fallback shells, and the exact login → bash → exec -l argv.
    2. A macOS integration/manual gate that launches three separate authenticated op processes in one PTY and confirms:
      • only the first invocation prompts;
      • tccd reports com.1password.op as the accessing identity;
      • later invocations produce a persisted authorization decision rather than another 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.

  6. AmethystLiang commented on Aug 4, 2026

    @AmethystLiang
    Contributor

    thanks for reporting. looking into it

  7. AmethystLiang commented on Aug 5, 2026

    @AmethystLiang
    Contributor

    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.

  8. marcelkooi commented on Aug 28, 2026

    @marcelkooi

    Still reproducing after #12562, and I think I can name the mechanism. Please re-open.

    Environment

    Orca 1.4.188 (v1.4.188 published 2026-08-22; installed here 2026-08-26 09:24 by ShipIt)
    macOS 15.4.1 (24E263) — note this is not macOS 26, unlike #12287 and #12971
    1Password CLI 2.34.1 (Homebrew, binary unchanged since 2026-07-01)
    Trigger any op read — the CLI stats ~/Library/Group Containers/2BUA8C4S2C.com.1password on every invocation

    Symptom: "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", ...}
    • Installed bundle: CFBundleShortVersionString = 1.4.188.
    • PID 38995 started 2026-08-21 11:42:25 (the 1.4.187 install) and is still alive; the GUI process (PID 42983) restarted 2026-08-26 11:33 on 1.4.188.
    • A second daemon, PID 1970, has been alive since 2026-07-16.
    • spawnerExecPath points at the bundle ShipIt overwrote on 2026-08-26.

    Process chain for a shell that triggers the prompt:

    Orca Helper (PID 38995, appVersion 1.4.187)
      └─ /usr/bin/login -flpq <user> /bin/bash ... orca-tcc-login /bin/zsh /bin/zsh -l
           └─ zsh → agent CLI → bash → op read
    

    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 !== packagedAppVersion check from getMacDaemonTccAttributionHealth(). 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 in daemon-init.ts only 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.plist declares NSCameraUsageDescription, NSMicrophoneUsageDescription, NSBluetoothAlwaysUsageDescription, NSLocationUsageDescription, NSAppleEventsUsageDescription, NSLocalNetworkUsageDescription, NSAudioCaptureUsageDescription, NSDocumentsFolderUsageDescription, NSDownloadsFolderUsageDescription — but not NSAppDataUsageDescription. tccd's strings include kTCCServiceSystemPolicyAppData alongside NSAppDataUsageDescription. 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

    1. Probe kTCCServiceSystemPolicyAppData specifically 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.
    2. Consider re-cycling a version-mismatched daemon even with live sessions, or re-establishing attribution without killing them.
    3. Add NSAppDataUsageDescription to Info.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugpending_repro

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions