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
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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 ↗

2 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5837
  • #6243
  • #5225

Powered by Codex Action

etraut-openai contributor · 5 months ago

Closing out old, stale bugs. This hasn't received any activity for five months.