I’m running Windows 11 with WSL (Ubuntu24) and Codex CLI. Codex is working fine. I have it locked down to a ‘codex’ user and ‘dev’ group.
Now I want to connect in from Windows with VSCode and the WSL extension. That does work, but it always comes in as user ‘root’. I don’t want to change the default wsl user to ‘codex’. I want to control the command-line used by the WSL extension to specify the user.
Does anyone know how to change default connection settings for the WSL extension per-server?
When it does connect in the first time, VSCode loads up /root/.vscode-server. That will need to be done for the ‘codex’ user, maybe under /home/codex/.vscode-server. Has anyone seen an issue with that?
As a follow-up, when I get this part working I’m going to setup the VSCode Codex extension. Will there be a similar dance with the user login?
Thanks.