Repository navigation
Codex app on macOS triggers syspolicyd/trustd CPU loop and severely slows Xcode and Chrome #26795
Copy link
Copy link
Open
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appbugSomething isn't workingSomething isn't workingperformance
Description
Summary
The Codex app on macOS appears to trigger a repeated macOS security validation loop involving syspolicyd and trustd.
When Codex is open, my Mac becomes extremely slow. Xcode takes a very long time to run a project, and Chrome becomes unresponsive or freezes. When I completely close Codex, Xcode runs almost immediately again and the high CPU usage from syspolicyd / trustd disappears.
This does not appear to be an Xcode project issue, a hardware issue, or a RAM issue. The slowdown is directly correlated with Codex being open.
Environment
- Device: Apple Silicon Mac
- RAM: 128 GB
- macOS version: [insert macOS version]
- Codex app version: [insert Codex version if available]
- Xcode version: [insert Xcode version]
- Chrome also affected: Yes
Observed behavior
While Codex is open:
- The whole system becomes very slow.
- Xcode Run becomes extremely delayed.
- Chrome freezes or becomes unresponsive.
- Activity Monitor shows high CPU usage from:
syspolicydtrustdWindowServer
- Codex-related processes are also visible.
- macOS logs show repeated security validation messages with rapidly increasing PIDs.
Example log output:
syspolicyd [...] [com.apple.syspolicy.exec:default] dispatch_mig_server returned 268435459
syspolicyd [...] <private> with PID 90040 violates validation category policy. This will likely result in a block in the future
syspolicyd [...] SecKeyVerifySignature
syspolicyd [...] SecTrustEvaluateIfNecessary
trustd [...] SecKeyVerifySignature
syspolicyd [...] SecTrustCopyAppleTrustAnchors
syspolicyd [...] <private> with PID 90041 violates validation category policy. This will likely result in a block in the future
syspolicyd [...] <private> with PID 90043 violates validation category policy. This will likely result in a block in the future
syspolicyd [...] <private> with PID 90044 violates validation category policy. This will likely result in a block in the future
syspolicyd [...] <private> with PID 90045 violates validation category policy. This will likely result in a block in the future
The PIDs keep increasing rapidly, suggesting that something related to Codex may be repeatedly launching or validating processes, triggering macOS Gatekeeper / Apple System Policy / trust validation in a loop.
Expected behavior
Codex should not trigger repeated macOS security validation loops or make unrelated apps like Xcode and Chrome unusable.
Actual behavior
With Codex open:
* Xcode Run is severely delayed.
* Chrome becomes unresponsive.
* syspolicyd and trustd consume significant CPU.
* macOS logs show repeated validation events with rapidly increasing PIDs.
With Codex closed:
* Xcode runs almost immediately.
* syspolicyd and trustd disappear from the top CPU list.
* The system returns to normal performance.
Reproduction steps
1. Open Codex app on macOS.
2. Open Xcode.
3. Run an iOS/macOS project.
4. Observe that Xcode Run becomes extremely slow.
5. Open Activity Monitor and sort by CPU.
6. Observe elevated syspolicyd and trustd.
7. Run:
log stream --predicate 'process == "syspolicyd" OR process == "trustd"' --style compact
8. Observe repeated security validation messages with rapidly increasing PIDs.
9. Completely close Codex.
10. Run the same Xcode project again.
11. Xcode runs almost immediately and syspolicyd / trustd CPU usage drops.
Workaround
Closing Codex restores normal Xcode performance.
Attachments
I can provide:
* Activity Monitor screenshot showing syspolicyd and trustd consuming high CPU while Codex is open.
* macOS log output showing repeated syspolicyd validation messages.
* Activity Monitor screenshot after closing Codex, showing normal CPU usage and Xcode running correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appbugSomething isn't workingSomething isn't workingperformance
Activity
github-actions commentedon Jun 6, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
syspolicyd/trustdCPU and memory runaway #25719Powered by Codex Action
andersaamodt commentedon Jun 15, 2026
Additional sanitized diagnostics from a live reproduction on macOS 26.5.1 build 25F80, Apple Silicon:
The issue now looks like an interaction between Codex Desktop's macOS attestation/app-server path and a macOS
syspolicydresource leak. I think Apple owns the daemon/resource-leak bug, but Codex is currently the primary trigger on my machine and could likely mitigate it by reducing/caching/throttling the attestation path or by avoiding repeated launch-assessment pressure.Current Codex build:
26.609.41114, build3888/Applications/Codex.appDeveloper ID Application: OpenAI OpCo, LLC (2DC432GLL2)com.apple.quarantinexattr3888as currentMost important live evidence:
syspolicydreached multi-GB RSS and sustained high CPU while Codex was open.lsofaggregate on livesyspolicydshowed:ExecPolicy.scan_targets_v2had0unmeasured rows at the same time, so this was not just an uncleared assessment backlog.okfor both/var/db/SystemPolicyConfiguration/ExecPolicyand/var/db/SystemPolicyConfiguration/Tickets.requestAttestationon macOS, and the main process registersattestation/generateusingResources/native/devicecheck.node.~/.codex/config.tomldid not disable this attestation capability path.Suggested Codex-side mitigations:
requestAttestationon macOS unless it is strictly required for the current operation.devicecheckd/mobileassetd/syspolicydor token generation becomes slow or repeatedly invoked./Applications/Codex.app/Contents/MacOS/Codex.This is severe because once
syspolicydis wedged, unrelated apps can fail to launch and the Codex app itself can fail to restart.nintendomustdie commentedon Jun 27, 2026
Adding a sanitized data point from a live repair on macOS 26.5.1 where the visible symptom was Homebrew and terminal startup failures, but the underlying pattern matches this issue.
Environment, sanitized:
/Applications/Codex.app/opt/homebrewObserved behavior:
syspolicydandtrustdwere persistently high CPU, roughly ~50% each._dyld_startwith no library-load output.starship,rg, and Homebrew's portable Ruby.starship init zshwas in.zshrc, new Terminal/Ghostty sessions appeared unresponsive: zsh was waiting forstarshipto return.brew --versionandbrew --prefixinitially timed out. Some otherbrewcommands could eventually return after a long delay.Relevant diagnostics:
Mitigation/repair sequence that worked:
starship init zshin.zshrcso terminals could open again.git,rg,starship, andpython3.After that:
This looks like Codex Desktop can trigger or amplify a macOS 26.x
syspolicyd/trustdvalidation loop. Once that loop is active, unrelated Homebrew binaries may appear broken because process launch stalls at_dyld_start. The local Homebrew repair was only effective after Codex was quit and the validation loop stopped.I am not including full local logs because they contain machine-specific paths and process context, but I can provide further redacted diagnostics if useful.
XavierGeerinck commentedon Jul 13, 2026
Same issue here, had to stop using it because of this