What version of Codex CLI is running?
0.120.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 6.17.0-20-generic x86_64 x86_64 (Ubutnu 24.04)
What terminal emulator and version are you using (if applicable)?
gnome-terminal
What issue are you seeing?
Under Ubuntu, every normal edit to a file in the current working directory says it fails and prompts to skip the sandbox which does work to allow the edit. Last good version is 0.114.0. I believe this is related to bwrap and Ubuntu's default AppArmor configuration.
One work around is to add an AppArmor profile for the codex to allow userns, as below. I believe Claude Code had/has a similar problem that required allowing userns for the bwrap binary itself. No comment on security implications of loosening AppArmor like this. My layman understand was that Ubuntu's default rules are more conservative than other distros.
In /etc/apparmor.d/local-codex:
abi <abi/4.0>,
include <tunables/global>
profile local-codex <PATH_TO_CODEX> flags=(unconfined) {
userns,
include if exists <local/local-codex>
}
(I use mise to install node so that path was something like /home/me/.local/share/mise/installs/node/*/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex.)
What steps can reproduce the bug?
Uploaded thread: 019d80f4-80f5-7613-a2b3-a8671c7b6429
What is the expected behavior?
No response
Additional information
No response
What version of Codex CLI is running?
0.120.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 6.17.0-20-generic x86_64 x86_64 (Ubutnu 24.04)
What terminal emulator and version are you using (if applicable)?
gnome-terminal
What issue are you seeing?
Under Ubuntu, every normal edit to a file in the current working directory says it fails and prompts to skip the sandbox which does work to allow the edit. Last good version is 0.114.0. I believe this is related to bwrap and Ubuntu's default AppArmor configuration.
One work around is to add an AppArmor profile for the codex to allow
userns, as below. I believe Claude Code had/has a similar problem that required allowingusernsfor thebwrapbinary itself. No comment on security implications of loosening AppArmor like this. My layman understand was that Ubuntu's default rules are more conservative than other distros.In
/etc/apparmor.d/local-codex:(I use
miseto installnodeso that path was something like/home/me/.local/share/mise/installs/node/*/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex.)What steps can reproduce the bug?
Uploaded thread: 019d80f4-80f5-7613-a2b3-a8671c7b6429
What is the expected behavior?
No response
Additional information
No response