Switching to sub-agent and back re-asks permission for commands previously ran that aren't being run again
What version of Codex CLI is running?
0.104.0
What subscription do you have?
pro
Which model were you using?
gpt-5.3-codex
What platform is your computer?
Linux 6.18.8-arch2-1 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
Suckless terminal 0.9.3, tmux 3.6a
What issue are you seeing?
I switched to a (sub) agent, back to the main agent, and was re-asked for permission for everything I had granted a long time ago, even though it never ran those commands again.
What steps can reproduce the bug?
- Cause Codex to ask for permission then spawn agents, and grant permission.
- Switch to a (sub) agent.
- Switch back to main agent.
- Observe being asked for the same permissions as in step 1, even though Codex never runs the commands after this second time it's asking permission.
I haven't verified if this always reproduces, but having run /feedback with thread ID 019c8199-e775-7120-85a0-1134ccf354a4 I'm hoping that's OK.
What is the expected behavior?
Once I give permission to run a command and it's run, Codex shouldn't later ask again, especially if it's not going to run those again.
Additional information
I ran '/feedback' and was given thread ID 019c8199-e775-7120-85a0-1134ccf354a4.
I know there's other "asking permission again" issues. I don't see any involving agent switching or being asked for commands it's not trying to run.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗