Skip to content

Windows: Codex crash while editing config.toml can reset local projects/thread assignments #47007

Open

Description

@Lesterffx

What issue are you seeing?

After a Codex Desktop crash on Windows while I was manually editing %USERPROFILE%\.codex\config.toml, all local Projects disappeared from the sidebar.

The underlying chats were not deleted:

  • old threads can still be found through Search
  • old threads can still be opened
  • however, they are no longer associated with their previous local projects
  • the sidebar now shows No projects

I am willing to recreate the projects manually, but this looks like a state-loss bug: a config parse/schema problem or crash should not wipe unrelated project/thread grouping metadata.

Context / trigger

I had been editing Computer Use allow-list settings in config.toml, including an unsupported/incorrect structure similar to:

[computer_use.windows.always_allowed_app_ids]
"Microsoft.Office.EXCEL.EXE.15" = true
"chrome.exe" = true

Codex later reported that computer_use.windows.always_allowed_app_ids was unrecognized/ignored. I also had an ignored/deprecated features.thread_tools setting.

During manual cleanup/removal of config entries, Codex crashed/hung. After recovering and restarting the app, the project registry was gone.

I cannot prove that the malformed config is the root cause, but the project disappearance happened immediately after this crash/restart sequence.

Diagnostics

Current UI state:

  • Projects: No projects
  • Recents/Search: old threads still exist and can be opened
  • opening an old thread does not restore its original project association

I checked %USERPROFILE%\.codex\.codex-global-state.json using PowerShell 7 with ConvertFrom-Json -AsHashtable.

The current values are:

LocalProjects             0
ThreadProjectAssignments  0
ProjectlessThreadIds      0

The normal ConvertFrom-Json path also revealed case-sensitive duplicate keys such as dataFlow and dataflow, so -AsHashtable was required to parse the file.

The local .codex directory is over 8 GB. I do not plan to manually repair/reconstruct the old project mapping; I will recreate my projects instead. I am reporting this because the crash should not be able to silently erase the project registry while leaving sessions intact.

Steps that reproduced the incident

  1. Start Codex Desktop on Windows with multiple existing local projects and many historical threads.
  2. Edit %USERPROFILE%\.codex\config.toml.
  3. Add/remove Computer Use configuration entries; some entries are invalid/deprecated and Codex reports them as ignored.
  4. Codex hangs/crashes during/after the manual config cleanup.
  5. Fully exit and relaunch Codex Desktop.
  6. Observe that the Projects section is empty.
  7. Search for an old thread.
  8. Observe that the thread still exists and opens, but it is no longer associated with its former project.

Expected behavior

  • Invalid/deprecated config.toml entries should be rejected or ignored safely.
  • A crash while loading/editing config should not reset or overwrite local project metadata.
  • Existing local-projects and thread-to-project assignments should survive restart.
  • If the global project state cannot be loaded, Codex should preserve the last known good state or recover it from durable session/project metadata instead of writing an empty registry.

Actual behavior

  • Local project list is reset to empty.
  • Thread-to-project grouping is lost.
  • Historical threads remain searchable/openable.
  • Users must manually recreate project organization.

Environment

  • OS: Windows 11 x64
  • Codex Desktop / ChatGPT Desktop on Windows
  • Exact app version: not captured at the time of the incident

Related issues

This appears related to:

The potentially useful difference here is the trigger: the reset happened immediately after a crash associated with manual config.toml editing / invalid Computer Use configuration, rather than a normal app update.

I can provide additional sanitized diagnostics if needed, but I do not intend to upload the full .codex directory because it is over 8 GB and contains private local session data.

Activity

  1. added
    bug
    app
    windows-os
    session
    config
    on Sep 21, 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

    appbugconfigsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions