Skip to content

[Bug]: Processes spawned in Orca get EPERM on ~/Documents while ~/Desktop and ~/Downloads work #17600

Not planned

Description

@zi-gae

Operating system

macOS

Orca version

1.4.192

Details

Any process started from Orca's terminal gets Operation not permitted (EPERM) on ~/Documents, while ~/Desktop and ~/Downloads are fine. This broke mid-session: the same repo under ~/Documents was readable earlier and stopped being readable a couple of days later, with no permission changes on my side.

Repro

$ ls ~/Desktop      # OK
$ ls ~/Downloads    # OK
$ ls ~/Documents
ls: /Users/me/Documents: Operation not permitted

$ cat ~/Documents/some/existing/file.md
cat: ...: Operation not permitted

The part that looks like a bug

Writing works, reading does not:

$ echo hello > ~/Documents/probe.txt   # succeeds
$ cat ~/Documents/probe.txt            # succeeds, prints hello
$ ls ~/Documents                       # still EPERM

So a file the process creates itself is readable, but pre-existing files and directory listing are not. A plain TCC denial would block the write too, which is why I don't think this is just a missing permission.

What I ruled out

  • Unix permissions and ACLs are normal: drwx------, owner is me, the only ACL entry is group:everyone deny delete
  • Orca is listed in System Settings under Full Disk Access
  • Info.plist already declares NSDocumentsFolderUsageDescription and NSDownloadsFolderUsageDescription
  • Not iCloud: brctl download on the path returns Path is outside of any CloudDocs app library, will never sync
  • No MDM or endpoint-security agent running
  • Same result with the host tool's sandbox explicitly disabled, so it isn't the tool's own sandboxing

Possible cause

The process chain goes through /usr/bin/login:

Orca Helper (Orca.app/Contents/Frameworks/Orca Helper.app)
  └─ /usr/bin/login
       └─ zsh
            └─ (dev tool)
                 └─ zsh

Going through login is a known way to lose TCC responsible-process attribution, so grants made to Orca.app may not reach the spawned shell. That would explain why the folder-scoped Documents grant doesn't apply even though Orca declares and appears to hold it.

Why Desktop and Downloads still work, I don't know.

Expected

~/Documents should behave like ~/Desktop and ~/Downloads for processes started in Orca.

Environment

  • macOS 26.5.1 (25F80), arm64
  • Orca 1.4.192 (com.stablyai.orca)
  • Shell: zsh

Workaround

Moving the working directory out of ~/Documents avoids it entirely.

Activity

  1. added
    bug
    on Aug 31, 2026
  2. added theissue type on Aug 31, 2026
  3. added
    os:macos
    on Aug 31, 2026
  4. changed the title [-]Processes spawned in Orca get EPERM on ~/Documents while ~/Desktop and ~/Downloads work[/-] [+][Bug]: Processes spawned in Orca get EPERM on ~/Documents while ~/Desktop and ~/Downloads work[/+] on Aug 31, 2026
  5. reopened this on Sep 4, 2026
  6. zi-gae commented on Sep 6, 2026

    @zi-gae
    Author

    Reproduced with full root-cause evidence. The daemon hosting the terminal was an orphan from a previous app generation (PPID 1, 13-day / 8-release drift), not a TCC-configuration problem. ⌘Q plus relaunch reused the orphan and did not fix it; killall -9 Orca "Orca Helper" did, instantly. Details and process-ancestry evidence in #17696: #17696 (comment)

    Same ~/Documents-only EPERM symptom as this report.

  7. self-assigned this
    on Nov 13, 2026
  8. nwparker commented on Nov 26, 2026

    @nwparker
    Contributor

    Thanks for the report! This is the same problem tracked in #17696, so I'm closing this as a duplicate to keep the discussion in one place. Please add any extra details there.

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

Metadata

Metadata

Assignees

Labels

bugos:macos

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions