Cannot create new local conversation (WSL)
What version of the IDE extension are you using?
v0.5.74 (Pre-Release)
What subscription do you have?
Plus
Which IDE are you using?
VS Code 1.109.3
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Codex VS Code Extension: "Start New Agent" fails in WSL (both 0.5.74 and 0.4.74)
Summary
In VS Code Remote (WSL), starting a new Codex agent consistently fails.
I tested both OpenAI extension versions 0.5.74 (pre-release) and 0.4.74 (stable).
Both versions show the same runtime and thread-state failures.
This seemed to coincide with fact that I had two VS Code projects open - one WSL and one Windows. This may or may not be related.
Date / Time
Initially observed on **February 12, 2026
Environment
- VS Code Server (Remote WSL)
- Extension under test:
openai.chatgpt - Tested versions:
0.5.74(openai.chatgpt-0.5.74-linux-x64)0.4.74(openai.chatgpt-0.4.74-linux-x64)- Workspace:
/home/micah/projects/HA_Visual_Dashboard_Maker
Actual
- Extension host throws:
PendingMigrationError: navigator is now a global in nodejs- Codex logs show:
state db missing rollout path for thread ...no rollout found for conversation id ...no rollout found for thread id ...thread/resumerequest failures withcode=-32600
Key evidence
0.5.74
~/.vscode-server/data/logs/20260213T222845/exthost2/remoteexthost.log~/.vscode-server/data/logs/20260213T222845/exthost2/openai.chatgpt/Codex.log
0.4.74 A/B retest
~/.vscode-server/data/logs/20260213T222845/exthost3/remoteexthost.log~/.vscode-server/data/logs/20260213T222845/exthost3/openai.chatgpt/Codex.log
A/B result
Downgrading from 0.5.74 to 0.4.74 did not change behavior.
Both versions fail with the same signatures, suggesting an upstream extension/runtime issue rather than a single-version regression.
Extra context
A fresh rollout file exists on disk (example):
~/.codex/sessions/2026/02/13/rollout-2026-02-13T22-29-07-019c56c3-06fc-7db3-a928-9c3607e17129.jsonl
But extension logs still report missing rollout path / missing rollout for thread IDs.
Remediation Steps Already Attempted (February 13, 2026)
I attempted the following remediation steps before filing this report:
1. Initial log review
I reviewed the VS Code Remote (WSL) logs under ~/.vscode-server/data/logs and repeatedly observed:
PendingMigrationError: navigator is now a global in nodejsstate db missing rollout path for thread ...no rollout found for conversation/thread id ...thread/resumefailures withcode=-32600
2. Full local reset
I ran a full reset to clear potentially corrupted local state while preserving auth/config:
- Moved older extension bits out of the active extensions path.
- Reset workspace storage for workspace ID
b6cc891f0c8b9078d9d5396cd8460ca5. - Reset local Codex state:
~/.codex/sessions~/.codex/shell_snapshots
Result: the stale-session behavior changed, but the core failures persisted.
3. Extension scan cleanup
I moved backup folders out of ~/.vscode-server/extensions so VS Code would stop trying to scan non-extension directories as extensions.
Result: extension scan noise was reduced, but the core Codex failure persisted.
4. Reinstall / version-state verification
I verified that pre-release openai.chatgpt-0.5.74 was installed and active in WSL extension host state.
Result: issue remained reproducible on 0.5.74.
5. Controlled A/B version test
I performed a controlled downgrade from 0.5.74 to 0.4.74, reloaded VS Code, retried Start New Agent, and captured fresh logs.
I then compared 0.4.74 and 0.5.74 logs side-by-side.
Result: no behavioral improvement. Both versions showed the same failure signatures.
6. Restore to pre-release
After the A/B test, I switched back to openai.chatgpt-0.5.74 to return to the preferred test state.
7. Evidence collection
I prepared a support bundle containing the key logs and A/B comparison:
- Bundle directory:
.codex_support_20260213_2236 - Archive:
/home/micah/projects/HA_Visual_Dashboard_Maker/codex_vscode_bug_20260213.tar.gz
8. Existing issue check
I checked https://github.com/openai/codex/issues for matching open reports and did not find one that clearly matched this exact error pattern.
---
Current assessment
Despite reset, cleanup, reinstall verification, and A/B version testing, the failure remained reproducible.
Based on the repeated signatures across both extension versions, this appears more likely to be an upstream extension/runtime bug than a local one-time state issue.
Attachments prepared
.codex_support_20260213_2236/AB_COMPARISON.md.codex_support_20260213_2236/remoteexthost_20260213T222845_exthost2.log.codex_support_20260213_2236/Codex_20260213T222845_exthost2.log.codex_support_20260213_2236/remoteexthost_20260213T222845_exthost3_0.4.74.log.codex_support_20260213_2236/Codex_20260213T222845_exthost3_0.4.74.log.codex_support_20260213_2236/rollout-2026-02-13T22-29-07-019c56c3-06fc-7db3-a928-9c3607e17129.jsonl
What steps can reproduce the bug?
Reproduction steps
- Open VS Code in WSL remote session.
- Activate OpenAI Codex extension.
- Click Start New Agent.
- Observe failure/errors in extension host logs.
- Repeat after full local state reset and after version downgrade/upgrade test.
What is the expected behavior?
Expected
- New Codex agent/session starts successfully.
- Conversation thread is created/resumed without rollout lookup errors.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same type of error for me.
What issue are you seeing?
When using the Codex extension in Visual Studio Code, attempting to create a new thread or resume an existing one fails with a red pop up "Failed to resume task" or "Error creating task". The logs shows an internal error indicating a missing rollout for a thread. Even in a fresh workspace, and on different OS, this happens consistently.
The error in the VS Code extension logs looks like:
What version of the extension are you using?
What subscription do you have?
What IDE are you using?
Steps to reproduce
What is the expected behavior?
Starting a new conversation/task should proceed as intendend and allow interaction without errors.
Additional context
The problem happens even with a completely empty workspace and after re-logging in. I also try reinstalling the Codex extension, and renaming the .codex folder. There are no network errors prior to the internal error, indicating the issue occurs in the session state / rollout management layer.
Logs contain consistent messages about rollouts missing for newly created thread IDs, suggesting an internal state binding failure.
Thanks @donQuiM , I downgraded to 0.4.71 and the issue resolves.
Additional diagnostic findings (WSL2 + Remote SSH)
Spent several hours today systematically diagnosing this on a WSL2 setup. Adding findings that narrow the root cause significantly.
Environment
Key finding: Sidebar works, editor tab does not
The sidebar panel creates and runs conversations correctly. The editor tab fails every time with
"no rollout found for thread id". This is true even with:~/.codex/sessions/directoryThe tab generates a brand-new conversation ID on every open, then immediately calls
thread/resumeon it. The CLI correctly responds "no rollout found" because the conversation was never created server-side — the tab's code path callsresumewhere it should be callingcreate.Log evidence
Extension startup → tab opens → new ID generated → resume attempted → fails:
Note: no
state db record_discrepancywarnings — the state DB is clean. The bug is purely in the tab webview's conversation initialization path.What we ruled out
| Attempted fix | Result |
|---|---|
| Clear all
~/.codex/sessions/| Tab still fails || Clear shell_snapshots + tmp | Tab still fails |
| Remove ghost IDs from VSCode workspace state DBs (
agentSessions.model.cache,memento/workbench.parts.editor) | Tab generates new ghost on next open || Downgrade to 0.4.71 | Tab still fails (contradicts earlier reports — may be environment-specific) |
| Upgrade to 0.4.76 (CLI 0.104.0-alpha.1 with rollout fixes) | Tab still fails |
| New workspace | Tab still fails |
| Full computer restart | Tab still fails |
Secondary issue: cascading session corruption
When the tab repeatedly fails, it creates orphaned conversation IDs in the VSCode workspace state DB (
state.vscdbon the Windows side atAppData/Roaming/Code/User/workspaceStorage/*/state.vscdb, keyagentSessions.model.cache). Over time these accumulate and eventually corrupt the sidebar's functionality too — the CLI starts loggingstate db record_discrepancy: find_thread_path_by_id_str_in_subdir, falling_backon every operation, which breaks new session creation even in the sidebar.Workaround for the cascading corruption: Clear
~/.codex/sessions/,~/.codex/shell_snapshots/, and~/.codex/tmp/, then use the sidebar only.Summary
The bug is in the extension's editor tab webview code path — it calls
thread/resumeon a newly-generated conversation ID instead of properly creating the thread first. The sidebar uses a different (working) code path. The CLI is not at fault.Hey! I ran into a similar pattern in our bug knowledge base and thought this might help.
What's happening: Node.js v21+ added
navigatoras a global (viaglobalThis.navigator). The Codex extension (or a dependency like an OpenAI SDK) usestypeof navigator !== 'undefined'as a browser-detection heuristic. This now incorrectly resolves to true in Node.js/WSL, causing browser-only code paths (e.g.,navigator.userAgent,navigator.locks, fetch with browser headers) to execute in the Node.js extension host, which crashes.What worked for us:
Replace browser-detection checks from
typeof navigator !== 'undefined'totypeof window !== 'undefined'(window is NOT a Node.js global). Alternatively, checknavigator.userAgentexistence specifically or useglobalThis.process?.versions?.nodeto positively identify Node.js. For the WSL user: as a workaround, launch VS Code with--no-experimental-global-navigatorflag or setNODE_OPTIONS=--no-experimental-global-navigatorbefore launching, which disables the Node.js navigator global.Hope this helps! Let me know if it doesn't match your case — happy to dig deeper. 🦞
---
<sub>🦞 Confucius Debug — community knowledge base for AI agent bugs. Free to search via MCP.</sub>
The
state db missing rollout path/no rollout founderrors despite a rollout existing on disk make this a direct session inventory/parity case forcodex-rescue==0.1.0a4.If you still have the preserved WSL state, could you run:
pipx install codex-rescue==0.1.0a4codex-rescue sessionscodex-rescue doctor --latestThe commands are read-only. They won’t repair the VS Code extension/runtime, but they can independently report whether rollout discovery, filenames, duplicate/missing inventory, and persisted session structure are consistent.
Please share only sanitized status/findings/aggregate counts. Don’t post raw rollout files, SQLite DBs, extension logs, prompts, tool output, credentials, repository data, thread IDs, or private paths.