{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreifjr5fkjwrve23ntmzuzf42rraeu6vergmsnsdn4joaaa2ciwspfa",
    "uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3moy6lugojrt2"
  },
  "path": "/t/windows-codex-desktop-update-hid-local-chat-history-and-removed-project-grouping-recovery-tool/1384516#post_1",
  "publishedAt": "2026-06-23T19:31:57.000Z",
  "site": "https://community.openai.com",
  "textContent": "After updating Codex Desktop on Windows, my sidebar suddenly showed `No chats`.\n\nThe chats were not deleted. The local SQLite database was healthy and still contained all thread records:\n\n  * SQLite integrity: `ok`\n  * Total threads: 85\n  * Active threads: 84\n  * Real user/project threads: 54\n\n\n\n## Symptoms\n\n  * The sidebar showed no previous chats.\n  * Only newly created chats appeared.\n  * Pinning old chats made them visible, but all projects became mixed into one flat pinned list.\n  * Codex reported zero saved projects even though the thread database still contained the original working directories.\n\n\n\n## What caused it\n\nThe current Windows Codex Desktop build appears to use a newer project-state format.\n\nRestoring only older sidebar keys such as:\n\n  * `thread-workspace-root-hints`\n  * `saved-project-roots`\n  * the older array-style `sidebar-project-thread-orders`\n\n\n\nwas not sufficient.\n\nProject grouping returned only after rebuilding the current state together:\n\n  * `local-projects`\n  * `project-writable-roots`\n  * `thread-project-assignments`\n  * `thread-workspace-root-hints`\n  * `project-order`\n  * the current object-style `sidebar-project-thread-orders`\n\n\n\nThe repair restored 53 project chats to their folder groups while preserving one projectless chat. Service/subagent threads were left untouched.\n\n## Windows recovery tool\n\nI created an unofficial, local-only, backup-first recovery utility:\nGitHub repository:\nAccount: Pankaj-1N\nRepository: codex-desktop-windows-sidebar-recovery\n\nLink not allowed so search manually.\n\nSearch GitHub using that exact repository name.\n\nIt includes:\n\n  * Dry-run diagnosis by default\n  * SQLite integrity verification\n  * Current Windows project-registry recovery\n  * Thread-to-project assignment rebuilding\n  * Codex worktree consolidation\n  * Cleanup for mass-pinned recovery chats\n  * Automatic database and global-state backups\n  * Rollback tooling\n  * Synthetic Windows tests\n  * Privacy-safe issue templates and documentation\n\n\n\nThe tool does not delete or archive chats, access transcript JSONL files, modify source repositories, or upload anything.\n\n## Request to OpenAI\n\nPlease add an official migration/reindex path when Codex Desktop updates its project-state schema.\n\nIdeally, Codex should detect that `state_5.sqlite` contains active threads while the sidebar project registry is empty, then safely rebuild the missing project assignments automatically.\n\nA visible “Rebuild local chat index” option would also prevent users from assuming their history was permanently deleted.\n\n## Privacy warning\n\nDo not upload or publicly share:\n\n  * `state_5.sqlite`\n  * `.codex-global-state.json`\n  * session JSONL files\n  * recovery backups\n  * private chat screenshots\n  * thread IDs\n  * credentials, tokens, `.env` files, or private source paths\n\n\n\nOnly sanitized counts and application-version information should be posted.",
  "title": "[Windows] Codex Desktop update hid local chat history and removed project grouping recovery tool"
}