openai / openai/codex

Permission changes mid-task are not applied in the same session

Open
#40,104 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI sandbox session
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

0.149.0

What subscription do you have?

Plus

Which model were you using?

5.6 Sol Fast

What platform is your computer?

Darwin 25.5.0 arm64 arm

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

None, zsh

Codex doctor report
not available
What issue are you seeing?

Setting /permissions to an existing CLI mid-task doesn't work and I still get asked for permissions before running any commands.

What steps can reproduce the bug?

Run a task and when it's running, switch permissions using the /permissions command. Then check if your new permissions are followed in subsequent operations.

What is the expected behavior?

Permission changes should reflect into the working task immediately. eg if I allowed full access, it shouldn't ask me for command permissions. Changes should persist in the same session at least.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Codex CLI by starting a task, changing permissions with /permissions, and observing subsequent command requests. Trace how permission state is read during an active task; done means permission changes take effect for later operations in the same session without unnecessary prompts.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authorization, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.