Why can't the environment variables I set in Windows be read every time?

Resolved 💬 2 comments Opened Nov 22, 2025 by daguanren21 Closed Mar 16, 2026

What version of Codex is running?

0.61.0

What subscription do you have?

without

Which model were you using?

gpt-5.1-codex high

What platform is your computer?

Windows

What issue are you seeing?

<img width="1048" height="77" alt="Image" src="https://github.com/user-attachments/assets/26828692-504d-4d5a-aa1e-97cde8318a84" />

What steps can reproduce the bug?

  1. setx ENV_VAR *********
  2. codex

<img width="1041" height="73" alt="Image" src="https://github.com/user-attachments/assets/e07beb98-f74d-41ca-b818-54e40e9771a4" />

What is the expected behavior?

without any warning

Additional information

_No response_

View original on GitHub ↗

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