codex - 💡(How to fix) Fix Codex background terminal starts opening folders / not relevant to EAS submission and build [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18145Fetched 2026-04-17 08:32:11
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
0
Timeline (top)
labeled ×4commented ×2unlabeled ×2closed ×1

Error Message

↳ rg: /Users/christopherlam/Pictures/Photos Library.photoslibrary: Operation not permitted (os error 1) rg: /Users/christopherlam/Library/Photos: Operation not permitted (os error 1) rg: /Users/christopherlam/Desktop: Operation not permitted (os error 1)

Code Example

• rg --files /Users/christopherlam -g 'SKILL.md' | rg '/expo-deployment/SKILL.md$'
    ↳ rg: /Users/christopherlam/Pictures/Photos Library.photoslibrary: Operation not permitted (os error 1)
      rg: /Users/christopherlam/Library/Photos: Operation not permitted (os error 1)
      rg: /Users/christopherlam/Desktop: Operation not permitted (os error 1)
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.121.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

iTerm2

What issue are you seeing?

Codex opens irrelevant apps and folders in the background terminal.

 • rg --files /Users/christopherlam -g 'SKILL.md' | rg '/expo-deployment/SKILL.md$'
    ↳ rg: /Users/christopherlam/Pictures/Photos Library.photoslibrary: Operation not permitted (os error 1)
      rg: /Users/christopherlam/Library/Photos: Operation not permitted (os error 1)
      rg: /Users/christopherlam/Desktop: Operation not permitted (os error 1)

What steps can reproduce the bug?

Uploaded thread: 019d96ad-2a83-75a1-84dc-c580bb73113a

What is the expected behavior?

It should only run the EAS submission and build.

Additional information

No response

extent analysis

TL;DR

The issue might be resolved by adjusting the file search scope or permissions to prevent Codex from accessing irrelevant directories.

Guidance

  • Review the rg command used by Codex to ensure it's correctly filtering files and directories, potentially adjusting the -g flag to narrow down the search.
  • Check the permissions of the directories being accessed, such as /Users/christopherlam/Pictures/ and /Users/christopherlam/Library/Photos, to see if they can be restricted to prevent Codex from attempting to open them.
  • Verify that the SKILL.md file path in the rg command is correct and points to the intended location.
  • Consider modifying the Codex configuration or the script that invokes rg to exclude certain directories from the search.

Example

No code example is provided as the issue seems related to configuration or permissions rather than a specific code snippet.

Notes

The exact cause of the issue is unclear without more information about the Codex configuration and the script or command that invokes rg. The provided error messages suggest a permissions issue, but the root cause might be related to how Codex interacts with the file system or how the search command is constructed.

Recommendation

Apply a workaround by adjusting the file search scope or permissions, as the issue seems to be related to how Codex interacts with the file system rather than a version-specific bug that could be fixed by an upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex background terminal starts opening folders / not relevant to EAS submission and build [2 comments, 3 participants]