Skip to content

[Windows 11] ChatGPT/Codex Desktop crashes on startup — local projects and chats disappear after profile reset #52592

Open

Description

@marchrock01-web

What version of the Codex App are you using (From “About Codex” dialog)?

26.930.7945.0 (Windows package version, Get-AppxPackage)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11, x64 (exact OS build not captured)

What issue are you seeing?

On October 9, 2026, at approximately 19:15 (UTC+7), the ChatGPT/Codex desktop application on Windows 11 suddenly closed and then consistently crashed during startup.

The application briefly displayed the OpenAI splash screen before terminating without a visible error dialog.

Windows restarts, app reinstallation, restarting the Codex sandbox service, and trying ChatGPT Beta did not resolve the issue.

WinDbg crash analysis:

  • Process: ChatGPT.exe
  • Faulting module: chrome.dll
  • Exception code: 0x80000003 (BREAKPOINT)
  • Failure bucket: BREAKPOINT_80000003_chrome.dll!Unknown
  • Failure ID hash: be0d4058-7058-b7fb-5291-62cb1f25d882

A Codex sandbox service log also recorded Windows error 1008 while attempting to access the logged-in user's token. Its relationship to the desktop crash is unconfirmed.

Renaming the existing %USERPROFILE%\.codex directory allowed the application to launch with a fresh profile. However, this made all previously configured local Codex projects and conversation histories disappear from the interface.

The original project records and session files remained on disk.

Restoring only the session files, session index, and project associations brought back project names, but the interface still displayed "No chats" for previously populated projects.

The missing conversations only reappeared after restoring the original state_5.sqlite database from backup.

This suggests a profile-state, local database, or migration/reconciliation problem. The precise cause of the Chromium startup crash has not been established.

What steps can reproduce the bug?

Steps observed on the affected Windows 11 system:

  1. Use ChatGPT/Codex Desktop normally with multiple local projects and existing conversation histories.
  2. The application unexpectedly terminates during normal usage.
  3. Relaunch ChatGPT Desktop.
  4. Observe that the application reaches the splash screen and then closes without displaying an error.
  5. Restart Windows or reinstall the application. In this case, the crash persists.
  6. Back up the existing %USERPROFILE%\.codex directory, then rename it to allow the application to create a fresh profile.
  7. Launch the application successfully, but observe that all local projects and conversation histories are missing.
  8. Restore session files and project metadata from the backup.
  9. Observe that project names return but historical conversations are still absent.
  10. After closing the application and backing up the newly created database, restore the original SQLite state from the previous profile.
  11. Launch the application again. The previously missing projects and conversations become visible.

Important: These are the actual recovery observations, not a guaranteed reproduction procedure on every Windows system.

The issue occurred in both the regular desktop application and the Beta version.

No reliable trigger for the initial spontaneous crash has been identified.

What is the expected behavior?

ChatGPT/Codex Desktop should launch reliably without crashing.

If a local profile becomes corrupted or incompatible after an update, the application should recover or migrate local state safely.

Existing local projects, conversation histories, and associated files should remain accessible without requiring users to manually modify JSON configuration files or restore SQLite databases.

A profile reset should not silently make previously existing local project conversations disappear.

Ideally, the application should offer an automatic backup and recovery mechanism for local Codex project histories.

Additional information

Confirmed successful recovery procedure

After extensive debugging, the following procedure successfully restored access to the existing projects and conversations on the affected computer.

1. Preserve the original Codex profile

The existing %USERPROFILE%\.codex directory was backed up and renamed.

This allowed the app to launch normally with a fresh profile.

2. Locate the original local project data

The original profile contained:

  • sessions/
  • archived_sessions/
  • session_index.jsonl
  • .codex-global-state.json
  • state_5.sqlite

The original JSON state contained 5 local project records and 19 conversation-to-project assignments. The original sessions folder contained 70 JSONL files.

3. Restore session files and project metadata

Session data was copied into the new profile while preserving the originals.

The relevant configuration properties were recovered from .codex-global-state.json using UTF-8 encoding:

  • local-projects
  • project-order
  • thread-project-assignments

This restored project names and associations, but conversations still did not appear in the desktop interface.

4. Restore the original SQLite database

With ChatGPT fully closed, the current database was backed up.

The original state_5.sqlite database and applicable SQLite journal data were then restored from the old profile.

RESULT: Previously missing local projects and their original conversation histories became visible again in ChatGPT Desktop.

The recovered conversations contained the original messages and working context, not merely reconstructed chat summaries.

Some historical image attachments still showed broken thumbnails after recovery.

Important warning

This was an experimental recovery procedure that worked on one affected Windows 11 installation. Manually replacing SQLite databases may cause corruption or compatibility problems in other environments.

Users should not attempt database replacement without complete backups, and the application should be fully closed before any such operation.

Suggested improvements

Please consider:

  • Investigating the startup crash in chrome.dll.
  • Automatically preserving local Codex history during profile resets.
  • Repairing project-to-conversation associations when session files already exist.
  • Adding an official import/recovery option for existing Codex profiles.
  • Recovering historical image and file references where possible.
  • Displaying actionable diagnostic errors rather than silently closing.

This report documents a successful real-world recovery and may be useful to other Windows users experiencing similar symptoms.

Activity

  1. added
    app
    on Oct 9, 2026
  2. added
    bug
    windows-os
    session
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions