Codex Troubleshooting: Stuck Messages, Freezes, Missing History, and Login Errors

October 30, 2026 Updated: October 30, 2026 · By Taylor Yang · #AI Tools #Developer Tools

Work through Codex login errors, stuck messages, frozen panels, missing sessions, CLI problems, and MCP failures with a symptom-based checklist.

💡 What this guide covers: messages that spin, queue, or disappear; a frozen Codex panel while VS Code works; missing session history; login failures; codex: command not found; and MCP problems. Start with a general checklist, then identify tool bugs, reported workarounds, and actions to avoid.

More Codex articles: Save Effort · Codex

Where people get stuck

Separate these three symptom groups, then check versions, logs, and local records:

  1. Messages won’t send: spinning, queued, or disappearing messages were reported by several users on October 1–3, 2026, in GitHub #49991 and #50118.
  2. Codex freezes while VS Code works: users recorded extension-process blocking, message backlogs, and server-overload logs in #22393.
  3. Older sessions disappear from history: some users found that local databases and session files were still intact, despite missing entries in the VS Code list; see #21244.

For complex edits that fail in one pass and confused task context, see safe code changes and long tasks and session management.

A few points of context:

1. Six things to do first

  1. Check the version. Find the openai.chatgpt version in VS Code’s Extensions panel. For the CLI, run codex --version. Later diagnosis depends on this.
  2. Search GitHub. Look up your version or symptom in openai/codex Issues. Many same-day reports of identical behavior strongly suggest a version bug; wait for a fix or roll back.
  3. Save logs before restarting. Restarts can temporarily fix symptoms and make evidence harder to find. Save a copy first; locations are in section four.
  4. Don’t delete .codex or rush to clear caches. It contains sessions and settings. A missing list entry does not prove the underlying data is lost; see section five.
  5. Run /status. Check model, permissions, directory, and remaining context. A task that “won’t work” may involve the wrong model, read-only mode, wrong directory, or too much conversation history. Make this your first troubleshooting reflex.
  6. Submit feedback while it is stuck. Some users obtained a Feedback ID during a freeze and included it in their issue. The live failure gives OpenAI more complete diagnostic information than a report after restarting.

2. Quick symptom lookup

SymptomLikely causeFirst stepsDetails
Ordinary messages spin or show steer/pendingQueue bugs in certain October 2026 extension versionsUp arrow, then Enter, retrying 2–3 times; Reload WindowSection 3
A completed turn still sends follow-ups into a queueThread incorrectly remains in a streaming stateRestart Extension Host; fully quit and reopen VS CodeSection 3
Sent messages disappearSame queue bugUp arrow often retrieves the text from input historySection 3
Codex panel is unresponsive while VS Code worksWindows extension-process blocking and backlogsReload Window or restart the project window; save logsSection 4
A normal task stops without an error or resultSame problemRecord a Feedback ID, then restart the project windowSection 4
Old sessions are absent from historyList and local index out of sync; data usually remainsOpen by session ID; don’t edit local recordsSection 5
Browser authorization finishes but terminal reports failureNetwork, browser cache, or sign-in stateCheck connection, clear browser cache, sign out and back inSection 6
codex: command not foundInstallation failure or npm global path missing from PATHReinstall; inspect npm config get prefixSection 7
Environment variable is still missing after configurationApp not fully restartedFully quit and reopen Codex; restart the computer if neededSection 8
Third-party model connects but cannot workProvider lacks Responses API supportChoose a compatible model or providerSection 8
MCP does nothing or generates errorsSettings not loaded, old session, or known Windows problemInspect configuration, start a new session, request the tool by nameSection 9

3. Messages won’t send, keep spinning, or queue themselves

This was a concentrated set of failures in early October 2026. After the October 1 automatic update to 26.928.31416, many users reported intermittent problems.

Typical symptoms

Frequency varied: every few messages, almost every other message, or intermittent failures followed by a successful message. Even a simple type ok prompt could trigger it; a coding task was not required.

Reported versions and platforms

Extension versionPlatform / notes
26.928.31416Windows and Ubuntu; problems after the October 1 update
26.928.40906Intel macOS and Windows
26.5928.31416, pre-releaseLinux and Apple M1 Pro; changing channels did not help
26.930.21537Windows, stable
26.930.31428Windows
26.930.31730Windows, bundled codex-cli 0.160.0

This was not limited to one operating system. Reports covered Windows, Intel and M1 Macs, Ubuntu/Linux, stable releases, and pre-releases.

What to look for in logs

Use the locations in section four and search for:

One user isolated the code behind the JSON warning and found a response-parsing failure after successful lock release. The warning alone does not prove the lock remained held, and fixing that parser does not prove all queue problems are solved.

The same user inspected User/globalStorage/state.vscdb in read-only mode, under openai.chatgpt → queued-follow-ups. Nine queued entries remained across six conversations; several had already reached conversation history. Local queue state and real history did not match. The user did not modify the extension or database. Neither should you.

Temporary workarounds, least disruptive first

  1. Up arrow + Enter: retrieve and resend. Some users needed 2–3 retries or around three attempts per successful message.
  2. Ctrl+Enter: one user reported that Enter during ongoing work could lose a message, an older bug seen 2–3 months earlier. Ctrl+Enter could still freeze the UI but at least kept the message.
  3. New session: test whether only the current thread is affected. Save the task and logs first; don’t delete the old session.
  4. Reload Window: run “Developer: Reload Window” from the command palette, Ctrl+Shift+P.
  5. Restart Extension Host: #50084 reports this workaround. Run “Developer: Restart Extension Host.”
  6. Fully quit and reopen VS Code: some users needed more than a reload. Others saw recurrence even after restart, so this remains temporary.
  7. Roll back the extension: choose the gear icon → “Install Specific Version…” and select an older version. One reported trade-off: 26.917.62051 worked but did not support GPT-6.1 Sol.
  8. Disable this extension’s automatic updates after rollback so it doesn’t immediately return to the faulty version. Re-enable them after GitHub confirms a fix.

Reloads, new sessions, and rollbacks are version-specific workarounds. There is no evidence they work in every case.

Things tried that did not identify the root cause

4. Slow or frozen panel on Windows

Unlike a single unsent message, this affects the whole Codex panel while the rest of VS Code works. It is primarily reported on Windows in #22393.

Typical symptoms

Reported versions include extension 26.506.31421 with codex-cli 0.130.0, and extension 26.715.61943 with codex-cli 0.145.0-alpha.27, on Windows 11 and VS Code 1.129.1.

Log patterns

After Reload Window, both queue-full and overload counts dropped to zero on the same machine, though they could recur later.

Log locations

VS Code on Windows:

%APPDATA%\Code\logs\<session>\window1\renderer.log
%APPDATA%\Code\logs\<session>\window1\exthost\openai.chatgpt\Codex.log
%TEMP%\exthost-*.cpuprofile

Codex App on Windows:

%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs

For the CLI, set log_dir in config.toml, which also creates a plain-text codex-tui.log. See configuration.

Count important errors quickly

This PowerShell reads logs without changing anything. Replace the path with yours:

$log = "$env:APPDATA\Code\logs\<session>\window1\exthost\openai.chatgpt\Codex.log"
"outbound queue is full","Server overloaded","not valid JSON","cloudflare_challenge","markedStreaming=true" | ForEach-Object {
  "{0}: {1}" -f $_, (Select-String -Path $log -SimpleMatch $_).Count
}

Large counts show the extent of the problem and can accompany feedback. They are a snapshot, not an error rate.

Temporary workarounds

Related issues: #21806, intermittent Remote-SSH panel freezes; #19437, Windows App blank screen/spinner and repeated workspace_dependencies errors; #19366, connector-icon fetching causing overload; and #20599, backend CPU at 70–90% under WSL with queue-full errors.

5. Old sessions missing from history

Don’t panic: the data is often still there

The #21244 reporter, using openai.chatgpt@26.429.30905, codex-cli 0.128.0, and VS Code 1.118.1 arm64, found missing history entries whose data remained locally:

That points to a list-display problem, not lost data.

How to reopen a session

  1. Use its ID: run codex resume &lt;session-id&gt;. Some users reported that codex resume --all omitted sessions that still opened directly by ID; see #20165.
  2. Search local records read-only: search rollout-*.jsonl in ~/.codex/sessions/ for keywords, find the ID, and reopen it. Search only; don’t edit.
  3. Third-party tools: Codex Migrate for Mac can search local records read-only and export conversations. It is unofficial, does not repair the sidebar, and may miss some record formats. Evaluate it yourself before use.

What not to do

Another case: switching devices or interfaces

A Windows user running /goal in the same session switched between VS Code and Codex Desktop. Returning showed an older state in both interfaces. The Goal remained active, but the last turn looked interrupted and the session showed notLoaded. The local rollout file contained the full history and kept growing: the backend was working while the UI was out of sync. Check whether the rollout file is growing rather than trusting the displayed state alone.

Make future recovery easier

Related issues: #20340, index/database mismatch and blank history; #19822, stale local index preventing recovery; #19603, consistent sidebar and CLI list rules; #20624, silent failures opening old sessions; and #20165.

6. Sign-in fails

Symptom: browser authorization completes, but the terminal reports failure.

Try, in order:

  1. Check the network connection.
  2. Clear browser cache and retry.
  3. Run codex logout, then sign in again.
  4. Try API-key authentication.

For personal accounts, company SSO, and shared CLI/extension sign-in, see setup.

7. codex: command not found

Symptom: the terminal reports codex: command not found.

Reinstall:

npm install -g @openai/codex

Check npm’s global installation path:

npm config get prefix

Ensure the path is included in PATH. Run codex --version; seeing the version confirms the command is available.

On Windows, if PATH setup is difficult, start with the App rather than getting stuck on CLI setup. The VS Code extension also works independently of the CLI.

8. Missing environment variables or a third-party model that won’t run

9. MCP doesn’t work

  1. Check that configuration was saved. After codex mcp add, open config.toml and find the server entry.
  2. Start a new session. The old session may not have loaded new settings.
  3. Request the tool by name: “Use Context7 to find the latest documentation for this library first.” Put it in global AGENTS.md if it should be a recurring rule.
  4. Separate noise from failures. -32601: Method not found often means an optional resource-listing feature is missing, not that the server is broken.
  5. Known Windows issue: localized taskkill output can enter MCP JSON parsing and fail on non-English systems; see #22393. Report the tool issue instead of endlessly changing your setup.
  6. Ask whether MCP is necessary. Plans and progress often need only a Markdown file in Git. See long-task planning.

For MCP setup and examples, see configuration.

10. Windows checklist

11. Write a useful bug report

Search openai/codex Issues first. Adding your environment to an existing matching issue is more useful than opening a duplicate.

Include:

Redact sensitive data. Don’t post tokens, API keys, or account details. Replace session IDs, request IDs, and local paths with &lt;redacted&gt; where possible, as GitHub reporters have done. State only what you verified and label guesses as guesses.

Official references