Codex AppShots - Failed to collect child process snapshot
Open 💬 1 comment Opened May 23, 2026 by Mitch528
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.519.41501 (3044)
What subscription do you have?
ChatGPT Pro 20x
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
When doing an appshot in the Codex App, I get the "Unable to attach appshot" error. From what I can tell, it's happening at this point in the log:
2026-05-23T14:42:41.480Z warning [electron-sampler] Failed to collect child process snapshot errorCode=1 errorMessage="Command failed: ps -ax -o pid=,ppid=,%cpu=,rss=,etime=,command=\nps: rss: requires entitlement\n" errorName=Error errorStack="Error: Command failed: ps -ax -o pid=,ppid=,%cpu=,rss=,etime=,command=\nps: rss: requires entitlement\n\n at genericNodeError (node:internal/errors:985:15)\n at wrappedFn (node:internal/errors:539:14)\n at ChildProcess.exithandler (node:child_process:417:12)\n at ChildProcess.emit (node:events:509:28)\n at maybeClose (node:internal/child_process:1124:16)\n at Socket.<anonymous> (node:internal/child_process:481:11)\n at Socket.emit (node:events:509:28)\n at Pipe.<anonymous> (node:net:350:12)"
What steps can reproduce the bug?
I've isolated the issue to having procps installed on in my nix environment, leading to having the non-default ps command on PATH.
Removing the package seems to resolve the issue and I'm now able to attach app snapshots as expected.
What is the expected behavior?
The Codex App should ideally handle this situation better and either also allow for the ps utility from procps as well or explicitly use the command at /bin/ps.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗