Repository navigation
Description
Summary
After signing into a different ChatGPT account on the Codex desktop app, the entire local sidebar organization — custom sections, local projects, and thread→project assignments — disappears. The sidebar falls back to a flat, ungrouped thread list. The data is not lost: it is archived under electron-account-renderer-state-v1.inactive, but there is no migration or import path that lets a user carry their local organization to the account they are now using.
What happened (repro)
- Use the desktop app signed into account A. Build up local organization: ~30 local projects, ~260 thread→project assignments, 6 custom sidebar sections, pinned/expanded state.
- Update the desktop app (the unified-sidebar builds), then sign out of account A and into account B on the same machine.
- In account B the sidebar shows every thread flat.
Projectsrenders "No projects"; all custom sections are empty or absent. - Signing back into A restores everything — confirming the data survives but is sealed to the originating account.
Root cause (from the shipped bundle)
In the app's persisted state file (~/.codex/.codex-global-state.json), the account-scoped renderer state implements archive/restore on account switch — effectively selectRendererOwner(account):
- On switch, the current account's top-level globals (
local-projects,thread-project-assignments,project-order,projectless-thread-ids,thread-workspace-root-hints,thread-project-membership-host-ids, pinned/appearance/expanded keys…) are moved intoinactive[hash(accountA)]and the top-level globals are cleared. - If
inactive[hash(accountB)]does not exist, account B starts from empty globals — a blank sidebar.
This account-scoping is reasonable for cloud items, but these globals describe local-machine organization (local project registry, local thread assignments, local workspace-root hints). Sealing them to an account means a routine sign-in switch destroys the local workspace layout with no recovery path in the UI.
Secondary defect: project-assignment migration stalls on the account switch
app-server-projects-migration-by-hostshowsprojectsMigrated: truebutthreadAssignmentsMigrated: falsewith a non-emptypendingThreadAssignmentIdsqueue that never drains in the new session. The migration appears to have been interrupted by the sign-out/sign-in and never resumes.- When the app-server rebuilds
local_thread_catalog, every row is re-projected withproject_id = NULLeven thoughthread-project-assignmentsstill holds assignments — the catalog re-projection drops the project linkage.
Expected behavior
- Local organization survives an account switch on the same machine — either by remaining host-scoped (account-independent), or via an explicit "keep local projects and assignments for this account" migration during sign-in.
pendingThreadAssignmentIdsmigrates to completion on next launch; the catalog re-projection preservesproject_id.
Actual behavior
- New account renders a flat thread list with
No projects. - Migration stays incomplete; catalog rows lose project linkage on re-projection.
- The only recovery is manual: copying
inactive[accountA].globalsinto the live top-level globals for account B (which is what I did locally — the sidebar then rendered correctly, confirming the renderer itself is fine once globals are populated).
Environment
- Codex desktop app (ChatGPT.app)
26.1103.41825, macOS arm64 - Bundled framework
157.0.8103.39;codex-cli 0.167.0-alpha.3.2; managed app-server daemon0.167.0 - Reproducible across restarts; 100% deterministic after an account switch with no prior
inactivearchive for the target account
Suggested fix
During finishRendererAccountSwitch, when the target account has no archive and the host is the same machine, offer (or perform) a local-organization import from the most recent inactive archive — local projects/assignments are host data, not account secrets. At minimum, make the app-server assignment migration resumable so pendingThreadAssignmentIds drains after the interruption.
Activity
github-actions commentedon Nov 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
danielha commentedon Nov 9, 2026
Adding another macOS report with recovery evidence from November 6.
I use two ChatGPT accounts on the same Mac and expect both to access the same local Codex projects. After account switching, the local project organization disappeared from the active account even though the project folders and underlying records remained.
Read-only inspection found seven original projects and 1,187 saved thread-to-project associations retained in inactive account renderer state under
electron-account-renderer-state-v1. A backed-up, offline restoration recovered all seven original project IDs and all 1,187 associations. After restart, the native project/thread tools and UI showed the restored organization; comparison against the restoration source found no membership mismatches. No SQLite or transcript edits were needed.I also use liuzhao1225/codex-account-switcher v0.1.27. Separate tests of its unmodified switching core with synthetic credentials, copied settings and a simulated desktop lifecycle reproduced account-specific organization. An explicit offline synchronization prototype passed those isolated tests, but it is not deployed and has not been validated with a real account round trip. This does not establish that the switcher caused the original disappearance.
Related report in that project's tracker: liuzhao1225/codex-account-switcher#44
A supported, opt-in way to preserve or import local project organization across my accounts on the same trusted device would address this workflow, while keeping cloud data and credentials account-specific. Please preserve existing project IDs and chat associations in any recovery/migration path. Is this behavior intentional, and is a supported fix or migration planned?
Posted with my authorization by my AI assistant; account identifiers, project names, personal paths, and raw logs are omitted.
luluchu857 commentedon Nov 10, 2026
Another reproducible case on ChatGPT/Codex desktop 26.1103.60933 (build 25894), macOS 27.2. After updating, the Codex sidebar stopped showing 37 existing local projects. A newly created local project does appear, while the older 37 remain hidden. Updating again, restarting, and switching sidebar grouping did not restore them.
Read-only inspection shows
electron-account-renderer-state-v1.inactiveretains 37 olderlocal-projects, their 37-item order, and 110 thread-to-project assignments. The active renderer state has only the one new project and one assignment. All 38 project root directories exist; the local SQLite database passesquick_checkand still contains the older project records. The bundled app-serverproject/listsees the local project records, whereas the desktop project-list integration only exposes the new project.I cannot confirm whether an intentional account switch occurred, but the archived-versus-active state matches this issue's account-scoping failure mode. This is blocking normal use. Please provide a supported, safe way to restore the archived local projects and their original chat associations without recreating duplicate projects. I previously sent an in-app feedback report; no raw logs, account IDs, or personal paths are included here.
nghiatm79 commentedon Nov 10, 2026
Just ask Codex or ChatGPT itself to show you how to resolve. I did it and got all my old projects.
COOLak commentedon Nov 10, 2026
I'm seeing this on ChatGPT desktop 26.1103.60933 (build 25894), macOS 27.0.1.
Switching ChatGPT accounts leaves the Codex tab with no projects and local chats grouped outside their projects. The desktop updater currently reports this version as up to date.
Read-only inspection of this installation on November 10 found:
electron-account-renderer-state-v1retains 17local-projectsand 130thread-project-assignments. The active top-level globals have neither key.projectsMigrated=true,threadAssignmentsMigrated=false, and 91 pending assignment IDs. Of those, 82 threads still exist in the app-server database; all 82 have a nullproject_id.local_thread_catalogcontains 175 local threads, all with a nullproject_id.Copying every old assignment back would need conflict handling. Among the 122 saved local assignments whose threads still exist, 16 already match the mapped database project, 16 point to a different non-null database project, and 90 have no database project. These differences have not been classified as intentional moves or migration errors.
My desired behavior is one shared structure for local Codex projects across my ChatGPT accounts on this Mac. If account-specific organization is intentional, please provide an explicit option to share the local project catalog and assignments. Restoring an inactive account snapshot once would not establish that future account switches preserve this structure.
This report combines my observed symptom with AI-assisted read-only metadata inspection. It does not include a controlled account-switch reproduction, and no repair was applied. The update that first introduced the behavior is unknown.
Only aggregate metadata is included; project names, local paths, account identifiers, and chat contents are omitted.
eslamwael74 commentedon Nov 10, 2026
✅ Working Workaround: Restore Missing Codex Projects and Conversation History (macOS)
I encountered a very similar issue when switching between multiple ChatGPT accounts in the new Codex desktop application on macOS.
After switching accounts, all my existing Codex projects disappeared from the sidebar, along with their conversation groupings.
I investigated the local Codex state and found a workaround that successfully restored my projects and their associated conversations without recreating them.
🔍 Root Cause / Findings
Codex stores local project organization and conversation-to-project associations in:
~/.codex/.codex-global-state.jsonInside this file, the
electron-account-renderer-state-v1section contains account-specific state, including inactive account snapshots.When switching accounts, the previous account's project metadata can remain preserved in an inactive snapshot, while the active project list becomes empty.
The project metadata was not deleted — it was still available locally but was no longer being displayed.
This suggests a project-state restoration or account-context issue rather than actual project deletion.
🛠️ Solution: Automated Recovery Script
I've attached
restore_codex_projects.py, which contains a Python recovery script:restore_codex_projects.pyThe script:
🚀 How to Use (macOS)
1. Switch to the affected ChatGPT account where your Codex projects are missing.
2. Fully quit the ChatGPT/Codex desktop application using
Cmd + Q.3. Download the restore_codex_projects.py file.
4. Preview the recoverable projects:
This shows the available project snapshots and conversation assignment counts without modifying any files.
5. Restore the project organization:
If multiple snapshots are detected, you can explicitly select one using
--source-index N.6. Reopen ChatGPT → Codex → This computer → Projects.
Your original projects and conversation groupings should appear again if their metadata is recoverable.
✅ My Results
Tested successfully on my Mac.
After running the script:
This is an unofficial workaround, not a permanent fix.
.codex-global-state.json, as it may contain private workspace information.💡 Expected Behavior
Codex should preserve local project organization and conversation associations when switching accounts or inference providers, without requiring users to manually restore metadata.
Ideally, local project organization should remain independent of authentication context, while account-specific data and permissions remain properly isolated.
I hope this workaround helps other developers experiencing disappearing Codex projects until an official fix is released!
Attachment: restore_codex_projects.py
Environment: macOS / Unified ChatGPT-Codex Desktop App
Status: ✅ Workaround tested successfully for ChatGPT account switching.
pureakma commentedon Nov 11, 2026
[URGENT] Codex Desktop Account Switching Bug Has Blocked My Development for Two Days — Immediate Fix Required
I am extremely frustrated and disappointed with how OpenAI has handled this critical Codex Desktop issue.
I use two ChatGPT accounts for active software development. Previously, switching between accounts allowed me to access the same local projects and continue working seamlessly.
After a recent Codex Desktop update, this functionality suddenly stopped working.
My current situation:
This is not a minor UI inconvenience. It is a serious regression that has disrupted my actual development work.
Why the suggested workarounds are unacceptable
Manually reopening the same project directories under Account 2 is NOT a proper solution.
It may create separate project entries and conversation histories, potentially causing further inconsistencies when OpenAI eventually fixes the underlying bug.
As a developer managing multiple software projects, I cannot risk losing or fragmenting my existing project organization, development context, and conversation history.
I should not have to choose between continuing my development and preserving my existing development history.
OpenAI's response is inadequate
An OpenAI developer acknowledged this issue and indicated that a fix was expected in the Tuesday, November 10 release.
However, users have been left without sufficient information about the actual fix, its rollout status, and whether existing project associations will be restored safely.
This lack of clear communication is unacceptable for a tool that developers rely on for production work.
I expect OpenAI to address the following immediately:
Release an emergency hotfix that restores the previous cross-account local project behavior, or provide an official, safe workaround that does not create duplicate project registrations.
Guarantee preservation of existing project associations and conversation histories. Users should not lose development context because of an application update.
Provide a clear explanation of whether this behavior is an unintended regression or a deliberate policy change.
Publish a concrete fix status and expected release date, rather than leaving affected users waiting indefinitely.
Explain how existing projects will be reconciled after the fix, particularly if users have already attempted to reopen projects under another account.
Address the impact on paying subscribers whose development workflows have been disrupted for days.
This is seriously damaging trust in Codex
I use AI development tools to manage multiple active software projects. Reliability, continuity, and preservation of development context are essential.
A desktop application update should never suddenly make established development workflows unusable without warning, migration support, or a reliable recovery mechanism.
Two days of blocked development is already unacceptable.
I do not want another temporary workaround that introduces additional risks. I want the existing functionality restored, my project history preserved, and a clear official response from OpenAI.
Please treat this as a high-priority production-blocking regression and provide an immediate status update.
Affected environment: Codex Desktop on macOS, switching between two ChatGPT accounts.
OpenAI team: When exactly will this be fixed, and can you guarantee that existing projects and conversation histories will remain intact?