On Windows codex doesn't respect path and always launches tasks at `C:\`

Open 💬 5 comments Opened Jan 22, 2026 by benaadams

What version of Codex is running?

codex-cli 0.87.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

Windows Terminal (PowerShell)

What issue are you seeing?

Every time codex launches a CLI task it reverts to starting in C:\ rather than the current working directory e.g. D:\Github\Something

This means each command must either be prefixed with a change directory (e.g. Set-Location) or use full absolute paths

However this then messes up the permission requests

What steps can reproduce the bug?

Uploaded thread: 019be4e0-1772-7492

What is the expected behavior?

Starts in working directory and doesn't have to prefix every command with a change directory (and then more convoluted permission request)

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗