Allow PowerShell or WSL execution environment to be selected per project and per chat

Open
#36,098 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell, rust, ubuntu

Research direction

The payload names no files or tests. Start by locating project and chat persistence, environment selection, and Windows/WSL path-handling entry points; then trace restoration of chats, file-browser paths, attachments, and terminal settings. Done means per-project and per-chat environments remain distinct, paths translate correctly, and chats stay visible when environments switch.

Written by the indexing model from the issue text.

Description

app config enhancement session windows-os
What variant of Codex are you using?

App

What feature would you like to see?

Title: Support per-project and per-chat Windows/WSL environments with reliable path handling

I regularly use Codex on Windows 11 with both Windows-native and WSL-native projects:

  • C:\platform-tools requires the Windows agent and PowerShell.
  • /home/mike/repos/PortfolioWatch requires the WSL agent and an Ubuntu-22.04 terminal.

Currently, changing the Agent or Integrated Terminal between PowerShell and WSL behaves like a global setting. Switching environments can make existing chats appear to disappear, disrupt project grouping, break file and attachment links, and cause the file browser to resolve paths using the wrong environment.

For example, Codex can incorrectly reinterpret WSL paths as Windows paths and produce invalid hybrids such as C:\home\... or C:\mnt\....

These path forms need to remain distinct and be translated deliberately:

  • Windows native: C:\platform-tools
  • WSL native: /home/mike/repos/PortfolioWatch
  • Windows access to WSL: \\wsl.localhost\Ubuntu-22.04\home\mike\repos\PortfolioWatch
  • WSL access to Windows: /mnt/c/...

Please add:

  1. A default execution environment for each saved project:

    • Windows/PowerShell
    • WSL, including distribution selection
    • Inherit global default
  2. A per-chat environment override when creating or reopening a chat.

  3. Independent configuration of:

    • Agent execution environment
    • Integrated terminal shell
  4. Persistent environment identity for every chat, including its working directory and path format.

  5. Correct Windows-to-WSL and WSL-to-Windows path translation for the file browser, attachments and clickable file links.

  6. A consistent task list where chats remain visible regardless of the currently selected environment.

Expected behaviour:

  • Opening C:\platform-tools automatically restores the Windows agent and PowerShell terminal.
  • Opening /home/mike/repos/PortfolioWatch automatically restores the Ubuntu-22.04 WSL agent and terminal.
  • Windows-native and WSL-native chats can remain open simultaneously.
  • Switching chats does not require changing a global setting or restarting Codex.
  • Changing the integrated terminal does not reinterpret the chat’s working directory.
  • The file browser never constructs invalid hybrid paths.
  • Existing file and attachment links continue working after switching between Windows and WSL chats.

This would make Codex substantially more reliable for Windows power users who work across both native Windows and WSL projects every day.

Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.