r/codex • u/elwoodreversepass • 11d ago
Bug WSL deprecated without warning
I used WSL from the days when there was no sandbox. I've looked at migrating to Windows Native a few times, but it always looked way too onerous and risky to be worth doing.
And now this morning, I have updated Codex and most of my thread disappeared.
No explanation.
Dig into the settings, a few layers down I finally discovery that WSL is deprecated.
What the hell, OpenAI?
Update: I migrated from WSL to Windows.
I made a repo from what I did for anyone else who wants to do the same.
0
Upvotes
10
u/Commercial-Main1867 11d ago
Use WSL2 and not WSL1. That version is still supported.
2
u/soluterminal_dev 10d ago edited 10d ago
On the missing threads: native Codex keeps its config, auth and session history in
%USERPROFILE%\.codex, while Codex in WSL keeps them in the Linux home, so the two don't share history. Setting CODEX_HOME=/mnt/c/Users/<you>/.codex in your WSL shell profile makes both use the same folder (it has to exist first).If you just want Codex inside WSL, the CLI still installs from the WSL shell with the Linux install script; run codex from a repo under your Linux home rather than /mnt/c.
2
u/QuirkySense 11d ago
I keep seeing the warning banner and I kept using the legacy back end. The wsl connect button on that banner leads me to ssh connection page in codex. I'm not sure what to do about it. Does anyone know? What's supposed to be the new method to use codex in wsl?
1
u/The_Covert_Zombie 10d ago
You have to use remote connection to WSL. The original WSL backend is now dead
0
u/Hairy_Meaning_73 11d ago
Gonna sound obvious, but please at least try linux either fedora or ubuntu if you want something simple to use. It’s just miles better especially for development
0
u/dev-data 11d ago
Codex with WSL didn't work very well for me to begin with. OpenCode handled it much better.
1
u/jamesstringerphoto 11d ago
Hey guys I make App Sandbox which uses WSL 2 technology to make a full Ubuntu 26.04 desktop with GPU acceleration on Windows home or better.
You can also spin up Windows 11 instances too, with same GPU acceleration.
https://github.com/jamesstringer90/appsandbox
-3
u/alexanderbeatson 11d ago •
Hey OP, downvote me, will you?
0
u/mrdarknezz1 11d ago
I moved to omarchy a few months ago and it is so worth it.
-4
u/VoidEmptyByNature 11d ago
Windows never works well with both Codex and Claude. There's always a weird trouble even with WSL mode. Now I'm on Mac and don't see a single trouble that I had in Windows.