Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.157.1
Reinstalling and downgrading were also tried; the failure persisted.
What subscription do you have?
ChatGPT-authenticated account.
Which model were you using?
No model turn is reached; the failure occurs during TUI bootstrap.
What platform is your computer?
Reproduced on both Windows and WSL.
What issue are you seeing?
Plain codex consistently fails during TUI bootstrap with:
Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)
But explicitly setting log_dir to the normal Codex log location makes startup succeed:
codex -c log_dir="$HOME/.codex/log"This is reproducible:
codex→ fails with workspace routing timeoutcodex -c log_dir="$HOME/.codex/log"→ starts normally- fresh shell +
codex→ fails again - explicit
log_diragain → works again
Because $HOME/.codex/log is the usual default log location, the interesting difference appears to be explicitly enabling/configuring log_dir, not the filesystem path itself.
Steps to reproduce
- Authenticate normally with ChatGPT.
- Run:
codexResult:
Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery timed out (code -32603)
- Run:
mkdir -p "$HOME/.codex/log"
codex -c log_dir="$HOME/.codex/log"Result: Codex starts normally.
- Exit, open a fresh shell, and run plain
codexagain.
Result: the timeout returns.
Expected behavior
Plain codex should initialize the authenticated account and workspace routing regardless of whether log_dir is explicitly configured.
Additional observations
The issue persisted after:
- reinstalling Codex
- downgrading Codex
- opening fresh shells
- testing Windows host and WSL
The ChatGPT application works normally.
Basic reachability to the workspace-check endpoint is fast:
DNS: 0.000048s
TCP: 0.000757s
TLS: 0.194801s
TTFB: 0.375662s
TOTAL: 0.375796s
HTTP: 401
The 401 is expected for this unauthenticated probe; the relevant observation is that DNS/TCP/TLS/TTFB are fast.
Workaround
alias codex='command codex -c log_dir="$HOME/.codex/log"'Possibly related
- Windows: bundled Codex runtime causes workspace routing timeout and repeated login; using external CODEX_CLI_PATH fixes login persistence but ChatGPT Memory becomes unavailable #47145 —
account/readworkspace-routing timeout - [Windows desktop] Workspace routing is unavailable: status 432 in Chat-related requests #46812 —
Workspace routing is unavailable - Codex fails with "duplicate workspace in routing discovery" after successful ChatGPT login on Windows #47034 — workspace-routing failure during CLI startup
I did not find an existing report describing this explicit-log_dir A/B behavior.
Activity
github-actions commentedon Sep 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-]CLI: `workspace routing discovery timed out` during TUI bootstrap, but explicitly setting `log_dir` makes startup succeed[/-][+]CLI: workspace routing timeout disappears when `log_dir` is set explicitly[/+][-]CLI: workspace routing timeout disappears when `log_dir` is set explicitly[/-][+]CLI: plain `codex` times out in workspace routing; explicit `log_dir` makes startup succeed[/+]marcelritzschke commentedon Sep 27, 2026
Closing as duplicate of #47145. I added the reproducible
log_dirworkaround / A-B behavior there.buraksahins commentedon Sep 28, 2026
I am reporting a regression in Codex authentication / workspace routing in the VS Code extension.
Codex in VS Code is currently unusable for me because authentication repeatedly fails with:
Sign-in failed: workspace routing discovery timed out
This setup worked previously.
The underlying workstation and network connection are functioning normally. SSH access to the workstation works correctly, the local network connection is stable, and VS Code Remote SSH itself is not the problem.
The failure occurs specifically in the Codex authentication/account initialization path.
Repeated authentication attempts do not solve the problem. The failure consistently occurs while Codex is trying to discover or restore the authenticated workspace.
Please do not treat this as a generic local VS Code or SSH configuration problem. The error itself points to Codex workspace-routing discovery.
I am also seeing recent reports from other users describing the same
account/read/workspace routing discovery timed outfailure after recent Codex releases.Please escalate this to the Codex engineering team and investigate whether a recent change to workspace routing, account discovery, authentication initialization, or the bundled Codex runtime introduced this regression.
In particular, please investigate the request path involved in:
account/readand workspace-routing discovery.
Expected behavior:
Actual behavior:
Sign-in failed: workspace routing discovery timed outThis is blocking my development work.
Please confirm whether this is a known regression and provide either a server-side fix or a supported workaround. I would also like this case attached to the existing engineering investigation if the same workspace-routing problem is already being tracked.
BinBinHouse commentedon Sep 30, 2026
Still reproducible on
codex-cli 0.159.2.Environment:
0.159.2Behavior:
Plain startup consistently fails after ~17 seconds:
This also happens with:
Enabling a TUN/system proxy does not change the behavior.
However, the workaround still works immediately:
With the explicit
log_dir, the TUI starts normally on the same machine, account, network, and Codex version.So this issue appears to still be present in
0.159.2.