Codex IDE does not automatically switch to the Conda environment selected in VS Code

Open 💬 0 comments Opened Mar 8, 2026 by jasonwei1002

What version of the IDE extension are you using?

26.304.20706

What subscription do you have?

plus

Which IDE are you using?

VS Code

What platform is your computer?

Darwin 25.3.0 arm64 arm, Linux 6.8.0-90-generic x86_64 x86_64

What issue are you seeing?

In VS Code, I have already selected a project-specific Python interpreter that belongs to a Conda environment. However, when the same project is opened in a new Codex IDE window, that interpreter/environment is not picked up automatically. Codex IDE uses default Python environment instead, and I need to manually switch to the correct Conda environment every time. Expected behavior: Codex IDE should detect and inherit the Python interpreter selected for the project in VS Code, and activate the corresponding Conda environment automatically.

What steps can reproduce the bug?

  1. Open a Python project in VS Code.
  2. Select a Conda environment as the Python interpreter for that project.
  3. Open the same project in a new Codex IDE window.
  4. Check which Python interpreter / Conda environment Codex IDE is using.
  5. Observe that Codex IDE does not automatically switch to the Conda environment previously selected in VS Code, and instead uses a default environment.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗