-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
bugSomething isn't workingSomething isn't workingwindows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Description
What version of Codex is running?
codex-cli 0.41.0
Which model were you using?
affects all models
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What steps can reproduce the bug?
- Start Codex on Windows.
- Trigger any non–auto-approved command, e.g. a git init.
- In the approval modal choose “Always” / “Approve for this session.”
- Let the tool run, then issue the same command again.
- Codex asks for approval every time.
What is the expected behavior?
Once I approve “for this session,” any equivalent invocation during that session should run without another prompt.
What do you see instead?
Codex repeats the approval prompt because the stored command vector only matches the PowerShell-wrapped version that actually ran, not the original bash -lc … the UI shows and the model reuses.
Additional information
Bug reproduces reliably on Windows because exec command translation swaps the command vector before caching. Broad fix is to store both the displayed command and the executed command when the user approves “for this session.”
thomasgg23, jfbosch, fcakyon, jgillard, MrGeRoI and 14 morepanthernet, Weijiang-Xiong, SamGu-NRX, dzanaga, fcakyon and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwindows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems