Repository navigation
Description
Summary
Existing local projects disappeared from the Codex desktop sidebar on Windows. The user recreated their main project using the same existing repository folder, but many existing chats remained outside the project. The user explicitly authorized publication of this sanitized report, including affected-chat counts and migration indicators, in the public openai/codex repository.
Environment
- Windows desktop application installed as OpenAI.Codex (window title: ChatGPT), Codex mode.
- Observed on 2026-11-07, timezone UTC-03:00.
- Exact app version could not be retrieved: the package metadata query returned Access denied.
- Sidebar grouping was already set to project.
Observed sequence
- The user found the original project missing and recreated it for the same local repository folder.
- The replacement received a different project identifier; its persisted creation timestamp corresponds to 2026-11-07 06:04:40 UTC-03:00.
- Existing chats remained accessible, but many no longer belonged to the recreated project.
The exact steps that caused the original disappearance are unknown. An update or migration is a hypothesis, not a confirmed trigger.
Evidence from read-only inspection
A leftover global-state backup last modified on 2026-11-03 was compared with the current .codex-global-state.json, and the app's list_projects/list_threads results were inspected.
- The backup contains the original main project and 84 explicit chat assignments to it, including historical/archived chats.
- All 84 chat IDs are still present in the local session index. This establishes index retention, not a verification of every full conversation's contents.
- Of those original 84 chat IDs, 27 are now explicitly present in projectless-thread-ids.
- Current app listing shows numerous chats with the original repository cwd but projectId null.
- Three chats using managed worktrees are associated with the replacement project, while many chats using the main checkout are not.
- The persisted app-server-projects-migration-by-host entry reports projectsMigrated: true, threadAssignmentsMigrated: false, with 48 pendingThreadAssignmentIds at inspection time. The November 3 backup already reported an incomplete assignment migration (54 pending IDs), so the incomplete marker alone does not prove the date or cause of disappearance.
- Other previously registered projects are also absent from the current project inventory. One other project with the same display name as an older entry has a different identifier.
- The current renderer state contains explicit assignments for two newly created chats, while list_threads returned projectId null for those chats; the sidebar visibly groups them under the recreated project. This suggests an additional state-reconciliation discrepancy.
Expected behavior
Existing projects and chat memberships should survive application state migrations/restarts. Re-adding the same canonical repository folder should offer or perform recovery of prior memberships rather than leaving the chats detached. Renderer/sidebar state and app-server project membership should agree.
Actual impact
The user's project organization is broken across many ongoing chats despite retained session-index entries and unchanged repository paths. Recreating the missing project only partially restores grouping.
Requested investigation
Please investigate project registry migration, pending thread-assignment reconciliation, legacy-to-app-server project ID mapping, and recovery of memberships for recreated projects pointing at the same repository root. Provide a supported recovery path that preserves archived state, pinned state, worktree associations, and conversation history.
Privacy and additional note
No raw state files, conversation contents, project/chat identifiers, user-specific paths, credentials, or private attachments are included. No project memberships were modified by the investigation.
The built-in Help > Feedback action was also attempted twice; it dismissed the menu without displaying a feedback form or another visible window. This is why this report is being submitted here.
Activity
github-actions commentedon Nov 7, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
goodman-oai commentedon Nov 16, 2026
Re-adding the same Windows folder created a new project ID and left existing chats unassigned even though their working directories were preserved. The earlier Windows report in #53251 records the same re-registration and pending assignment migration.