Windows: local projects disappear after app update and switching back to personal account
What version of the Codex App are you using?
Windows package OpenAI.Codex 26.1103.3517.0, as reported by Get-AppxPackage after the incident. The version before the update was not recorded.
What platform is your computer?
Windows, Codex desktop app.
What issue are you seeing?
All previously visible local Codex projects disappeared from the Projects list after switching back from an enterprise account to the personal account. Individual chats remain visible, but are no longer grouped under their projects. The local project folders still exist. Restarting the app did not restore the projects.
Observed sequence
This is the observed sequence, not a controlled reproduction:
- Before November 6, 2026, switching between the personal and enterprise accounts did not remove the local projects; they were accessible under either account. The user also switched accounts on November 5 without losing them.
- On November 6, the user switched from personal to enterprise and the projects remained available. They did some minor work in those projects.
- The user updated the desktop app while using the enterprise account.
- The user signed out of enterprise and back into personal. The local projects were no longer listed, although their individual chats remained visible.
- Restarting the app did not restore the project list.
The update occurred between the successful switch and the failed switch, but this observation does not establish whether the update or account switching caused the problem.
Expected behavior
Local projects and their chat groupings should remain accessible as they were before, including after account switches and app updates. At minimum, returning to the original account should restore its existing project list and associations, or the app should provide a clear, safe recovery path.
Additional investigation
Read-only local inspection found 30 project records in the local Codex state database. The saved inactive account state contains 30 local project entries and 466 saved thread-to-project assignments. At inspection time the database reported no threads with a non-null project ID, and the app's project listing returned no local projects. Local folders and individual chats were still present. These observations indicate retained metadata but do not establish the cause or prove that every saved association is current.
A recovery copy of the state was made; project records and associations were not modified. Please investigate the account-state transition and project migration/reconciliation, and provide a supported recovery method that preserves the existing project IDs, folder roots, and chat assignments.
Possibly related: #54155 (project grouping unavailable after account switching) and #39095 (remote tasks remain visible while projects disappear). This report concerns local projects on Windows and adds the observed update between the successful and unsuccessful switches; a common cause is not established.
Submitted by an AI assistant at the user's request. Account identifiers, personal paths, project names, chat contents, and raw logs are omitted.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #58754
Powered by Codex Action
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
My report is somewhat different, in that it was observed after restart due to account switching. The app has been updated earlied today, but the projects remained after update, and only dissapeared after account-switch related restart. An account-switch performed earlier that day (prior to app update) went fine, projects were visible.
Same bug here, with a workaround and local evidence pointing to a startup race.
Environment
- Package: OpenAI.Codex 26.1103.3517.0 x64
- App: 26.1103.31037, build 25241, commit 507dd5ed9e0ccf068f674a30577e75da1a92300b
- Bundled CLI: 0.167.0-alpha.3.2
- OS: Windows 11 Pro 10.0.26300.9711
- 3 ChatGPT accounts used on this machine
Symptom After signing out and signing in, the Codex sidebar shows "No projects" and chats appear only under Recents.
Workaround that worked for me Fully quit the app from File > Quit ChatGPT, then reopen it while already signed in. All projects and their chat grouping came back, with no change to any data. Closing the window with X is not enough, because the processes stay alive in the tray.
Evidence: same account, same data, two launches
| Launch A, sidebar empty | Launch B, sidebar correct | |
|---|---|---|
| Started | 15:57:33Z | 16:16:34Z |
| Account at startup | hasAccount=false until 15:57:50Z, sign-in completed during the session |
hasAccount=true from the first log line |
electron-account-renderer-state-v1.owner |
active account | same |
local-projects / project-order / thread-project-assignments |
19 / 19 / 94 | 19 / 19 / 94 |
SQLite projects |
19 | 19 |
migration completed projectCount |
19 | 19 |
During launch A the file held all 19 projects while the UI showed none, until the app was fully quit. Switching the top-left selector from Codex to ChatGPT and back did not refresh it.
Suspected cause (not proven)
The window initializes before an authenticated principal exists, gets an empty project state, and does not refresh after sign-in completes. In app.asar, the persisted atom sync sets the state to {} when getRequestAuthenticatedPrincipal() returns null. I did not trace the exact path that feeds the sidebar project list. I have one bad launch and one good launch compared, so this is not a repeated test.
Second, separate problem: project state is per account
Project state is stashed under electron-account-renderer-state-v1.inactive[hash]. An account with no stash starts with no projects, and a full quit does not help there, even though local folders and the SQLite catalog belong to the machine. On this machine one of the other accounts has no project state at all, and another has projects but no ordering or chat grouping.
Possibly related
app-server-projects-migration-by-host has two host keys for the same folder, local:C:\Users\<user>\.codex and the CODEX_HOME path, because ~/.codex is a junction. The older key has threadAssignmentsMigrated: false with pending thread ids.
Expected
- The sidebar refreshes when sign-in completes, without a full quit.
- Local projects stay available across accounts on the same machine, or the app says clearly that they are per account.
I can provide redacted copies of the state keys if useful.
Confirmed reproduction and successful recovery on macOS
I encountered what appears to be the same issue on November 6, 2026, using the macOS ChatGPT desktop app in Codex mode. I was able to diagnose the underlying state inconsistency and successfully restore all missing projects and their conversation associations without modifying the SQLite database.
1. Steps leading to the issue
I routinely switch between two ChatGPT accounts (personal and work) within the same macOS desktop application. Historically, both accounts displayed the same collection of local Codex projects.
On November 6:
Logged out of my personal account and signed into my work account.
Unexpectedly received the first-time-user onboarding flow, including questions about my profession and introductory guidance.
After completing onboarding, the Codex sidebar displayed "No projects".
Previously associated conversations remained accessible under Recents, but were no longer grouped by project.
ChatGPT-mode (cloud) Projects were unaffected.
Fully quitting and reopening the application did not resolve the problem. Switching back to my personal account and subsequently returning to my work account also failed to restore the projects. Both accounts now displayed an empty Codex project list.
2. Local data integrity and persistence
Inspection of ~/.codex/state_5.sqlite confirmed that the underlying project data had not been deleted or corrupted.
Importantly, the zero non-null threads.project_id values did not indicate that conversation associations were irrecoverable.
The global-state JSON also retained the complete project catalog and explicit conversation associations:
local-projects: 14 entriesproject-order: 13 entriesthread-project-assignments: 416 entriesapp-server-project-id-by-legacy-project-id-by-host: presentthread-workspace-root-hints: presentsidebar-project-thread-orders: present
Both .codex-global-state.json and .codex-global-state.json.bak contained this data and were byte-identical.
3. Identified state inconsistency
The key finding was the structure of ~/.codex/.codex-global-state.json.
The project-related state existed only inside an inactive account-specific renderer snapshot:
electron-account-renderer-state-v1
├── owner: <account identifier>
└── inactive
└── <different account identifier>
└── <saved renderer state>
├── local-projects: 14
├── project-order: 13
├── thread-project-assignments: 416
├── app-server-project-id-by-legacy-project-id-by-host
├── thread-workspace-root-hints
└── sidebar-project-thread-ordersThe equivalent project-related keys were absent from the top level of the global-state JSON.
This suggests that during an account-switching or onboarding-related state transition, the application preserved the existing project catalog within an inactive renderer snapshot but failed to restore or hydrate that catalog into the active renderer state.
The exact trigger is not yet established.
4. Successful recovery procedure
With the desktop application fully quit and backups preserved:
Loaded
.codex-global-state.json.Located the preserved project catalog inside
electron-account-renderer-state-v1.inactive.Created a recovery candidate by copying the following six fields from that nested snapshot to the JSON document's top level:
local-projectsproject-orderthread-project-assignmentsapp-server-project-id-by-legacy-project-id-by-hostthread-workspace-root-hintssidebar-project-thread-orders
Preserved all other JSON state, including the inactive snapshot and account-related metadata.
Atomically replaced the global-state JSON with the recovery candidate.
Relaunched the macOS desktop application while signed into my work account.
Result: Complete recovery.
All 14 Codex projects immediately reappeared in the sidebar.
Conversations were correctly nested under their original projects.
Previously associated conversations opened normally.
Filesystem working directories were correctly preserved.
No SQLite modifications, project recreation, or manual conversation reassignment were necessary.
This recovery was verified immediately after relaunch. Persistence through subsequent account switches has not yet been verified.
5. Suspected root cause
The evidence points to a desktop renderer-state ownership/hydration regression associated with account switching, rather than underlying data loss.
The application appears to have retained the complete project catalog and its conversation associations in an inactive account snapshot while initializing the active renderer with no project catalog.
The unexpected first-time onboarding flow may be related to the same state-transition failure.
Notably, my local Codex projects had historically been shared across both personal and work account logins, so the inactive catalog was not inherently exclusive to one account.
6. Suggested areas for investigation
Account-switching logic associated with
electron-account-renderer-state-v1, particularly transitions between active and inactive snapshots.Whether first-time onboarding or account initialization can leave the active renderer without project metadata even when valid data exists in an inactive snapshot.
Restoration/migration of legacy local project state across account identities.
Whether the application should detect and recover a missing active project catalog when SQLite still contains valid project records and the original JSON catalog remains available.
Conclusion: This is a reproducible data-visibility/state-restoration failure with a confirmed macOS recovery path. All project definitions, filesystem roots, and conversation associations survived; restoring the preserved project metadata to the active global-state location resolved the issue without altering the underlying database.
My GOD, i lose all projects every open Codex!
Experiencing a very similar issue on Windows after a recent app update and switching ChatGPT accounts using CC Switch. Projects disappeared from the new account's sidebar while the local folders and individual chats remained accessible in Recents. Switching back to the original account made the projects visible again. Re-adding two existing folders to the new account did not automatically restore their historical chat grouping.
Read-only inspection found the previous account's project metadata and explicit thread-to-project assignments retained in an inactive account state. The exact cause is not confirmed, and we have not yet verified a full recovery. We will report back if we find a reliable fix.
Posted with the affected user's permission; no private paths, account identifiers, or chat contents are included.
Update to my earlier report: we recovered the project sidebar on this Windows installation with a profile-specific, unsupported offline metadata merge. The user confirms the projects are usable again after reopening the app. This is a single local recovery, not an official fix or proof that switching accounts will remain safe.
What we observed
- After a recent update and switching accounts via CC Switch, the new account had no project list, while individual local chats remained in Recents. The original account still showed its projects when switched back to it.
- The inactive account's renderer state retained 35 local project entries and 66 explicit historical thread-to-project assignments. All 35 saved project-to-database mappings matched the corresponding project roots in the local database. The current account had two projects manually re-added with new IDs; re-adding the folders had not automatically restored their historical chat grouping.
Recovery used for this installation
- We first prepared and inspected a preview on a copy. We matched projects by their existing root paths, checked the historical legacy-to-database mappings against the local database, and preserved the two already re-added projects rather than creating duplicates.
- The user fully exited the desktop application. The recovery script checked for the relevant app processes, saved a copy of the current global-state JSON, and made a consistent SQLite backup using SQLite's backup API and
quick_check. - It merged only validated entries into the active account's
local-projects,project-order,app-server-project-id-by-legacy-project-id-by-host, andthread-project-assignments. Historical project IDs were translated to current IDs for the two existing projects. Existing active entries and assignments were preserved. The script skipped assignments where the thread record was absent or a current projectless entry conflicted; it did not infer membership solely from folder paths. - After checking that the state file had not changed during backup, it replaced that JSON atomically. It did not modify the live SQLite database, auth credentials, the inactive account snapshot, or migration flags.
The preview contained 35 projects and added 58 historical assignments to the two assignments already present; six historical assignments were skipped. After reopening, the supported project listing currently reports 34 projects and 60 assignments targeting listed projects. The user reports that the restored projects work. We have not established why one of the 35 original project entries is not currently listed, independently checked every historical chat, or tested whether the recovery persists through subsequent account switches.
The script was tailored to this profile, its account snapshot and existing duplicate projects, so I am not posting it as a general-purpose repair. Different installations can have different state, host mappings, missing records, or conflicts. A full quit and reopen may be worth testing first, as noted above; please provide a supported recovery path that preserves project identity and memberships without manual state editing.
Posted with the affected user's permission; no personal paths, account IDs, project names, conversation contents, credentials, or raw state files are included.
I'm running into the same since the last update, every time I log out and switch between work and personal accounts all of my projects and sidebar groupings disappear.
This issue is very frustrating, I thought it was because I recently switched the startup of the chatgpt service that launches codex sandbox, but seeing all of these reports I think its unrelated, I have uninstalled, removed all temp files (ALL configs etc) from my machine, re-installed using Install_ChatGPT_No_MSStore.ps1 because my windows 11 ltsc iot doesnt come with microslop store baked in, and i dont want it. Made a project, used it, switched accounts, then boom its gone on both accounts ;(
Same here, hope to get it fixed soon
补充一个 Windows 桌面版的用户实测案例,现象与本议题接近。
观察日期为 2026 年 11 月 7 日。用户在同一台电脑、同一 Windows 用户下切换两个 ChatGPT Plus 账号。过去两个账号均能看到同一套本地 Codex 项目,最近切换账号后侧栏反复显示「没有项目」,原有聊天仍在最近列表。
本次现场核对与恢复结果
- 在侧栏显示「没有项目」时,Codex 应用的 list_projects 接口仍返回 18 个本地项目。
- 当时读取的全局状态中,生效项目登记与非活动账号缓存均保留 18 条项目登记及 147 条聊天归属记录。这些计数不能单独证明每条聊天均已迁移或正确显示。
- 使用应用接口切换「合并显示 → 分项目显示」后,用户曾确认项目重新显示,但后续切换账号仍复发,用户手动切换显示方式也未稳定解决。
- 用户多次确认,完成账号登录后,从任务栏彻底退出 Codex,再重新打开,项目恢复显示。后续切换账号还可能再次出现空白。
历史背景
这台电脑此前曾做过项目登记恢复,因此不能把以上现象当作未经修改配置上的干净复现。最近几次通过彻底退出重开恢复时,没有再执行离线项目登记合并。当前准确应用版本尚未核实,近期更新是否直接导致问题也未确认。
请调查账号切换或登录完成后,项目列表的加载与侧栏刷新是否遗漏,以及为何已可被应用项目接口枚举的本地项目仍显示为空。用户希望同一台电脑上的这套本地项目在账号切换后继续可见,并保留原有聊天分组。希望提供官方修复或受支持的诊断方法。
本评论由助手根据受影响用户的截图、用户实测和只读检查整理,经用户要求提交。
is there already a fix for this? My project is due for tomorrow, hope this bug will be fixed
Update: Possible Workaround — Recreating an Existing Project Restored All Missing Projects
I found a possible workaround that restored all of my previously missing local projects.
Steps I took:
- After switching between two Plus accounts, all of my existing local projects disappeared from the sidebar.
- I attempted to create a new local project using the exact same project name and local folder path as one of my previously existing projects.
- After creating this project, all of my previously missing local projects suddenly reappeared in the sidebar, including the original project I had just recreated.
- At this point, there were two projects with the same name and folder path:
- Original project: Reappeared with its previous conversation history.
- Newly created project: Had no conversation history.
- I deleted the newly created duplicate project and kept the original one.
Result:
- All previously missing local projects reappeared.
- The original project and its conversation history were restored to the sidebar.
- The newly created duplicate project was successfully removed.
- I did not need to manually recreate all my missing projects.
Important note:
I specifically recreated a project using the same name and folder path as an existing project that had disappeared. I have not tested whether creating a completely new project with a different name or folder would have the same effect.
This behavior may suggest an issue with how the desktop application loads or refreshes its local project list after switching accounts, rather than permanent loss of project data.
I hope these reproduction and recovery details help identify the underlying issue.
I encountered the same issue on Windows on November 7, 2026.
Environment
- OS: Windows
- Desktop app: ChatGPT / Codex (Powered by Codex & OWL)
- Desktop app version: 26.1103.32239
- Desktop app release date: November 6, 2026
- Codex CLI version: 0.164.0
- Subscriptions: Two separate personal ChatGPT Plus accounts
Steps to Reproduce
- Signed in to Plus Account A, which had several existing local Codex projects with conversation histories.
- Switched from Plus Account A to Plus Account B.
- Switched back to Plus Account A.
- All previously listed local Codex projects disappeared from the sidebar.
Actual Behavior
- All previously added local projects disappeared from the project list.
- Existing conversations were still accessible under "Recents", but were no longer grouped under their original projects.
- Cloud-based ChatGPT projects remained visible.
- Local source code directories were unaffected.
Expected Behavior
- Local projects and their conversation associations should be preserved when switching between accounts.
- Switching back to the original account should restore the original project list and conversation grouping.
Additional Information
Unlike the original report, both of my accounts are personal ChatGPT Plus accounts, not Enterprise accounts.
This suggests that the issue can also occur when switching between two personal Plus accounts.
I plan to manually re-add the affected projects, but I hope this account-switching issue can be fixed in a future update.
Additional Windows diagnostic evidence (November 7, 2026)
I encountered the same symptom after switching between separate ChatGPT accounts / Personal and Business workspaces: local projects disappeared from the Codex sidebar, while individual historical conversations remained accessible. Fully quitting and restarting the app did not restore the project grouping.
Environment
- Windows 10 x64
- Codex Windows package:
26.1103.4239.0
Read-only observations from the inspected account state
state_5.sqlite: 15 project records, 15 project-root records, and 356 thread records.threads.project_id: 0 non-null values among those 356 threads.- Local global-state JSON: 15 retained
local-projectsentries and 66 explicitthread-project-assignments. app-server-projects-migration-by-hostindicatesprojectsMigrated: trueandthreadAssignmentsMigrated: false, with 59 pending thread-assignment IDs.- The active JSON project cache remained populated across inspection and a full app restart.
The zero non-null SQLite project_id values do not, by themselves, prove data loss or identify the cause. These observations suggest a project-sidebar/account-state reconciliation or unfinished migration issue, but this is not a confirmed root cause. Counts reflect the specific local account state inspected, not necessarily the union of all accounts.
Please investigate why retained project records/associations do not reappear in the sidebar after account switching, and provide an officially supported, non-destructive recovery procedure.
The state was backed up before investigation. No live database records, account credentials, project mappings, or historical associations were modified during this diagnostic inspection.
Posted by an AI assistant at the affected user's request. Email addresses, usernames, paths, project names, raw thread/project IDs, logs, and conversation content are intentionally omitted.
Additional Windows reproduction: projects disappear after logout/login and after fully closing and reopening the app.
Environment
- Windows desktop package: OpenAI.Codex 26.1103.4239.0.
- Observed November 7, 2026.
- Sidebar grouping set to Projects. Observed behavior The sidebar shows no projects, while existing conversations remain accessible. Calling the app’s list_projects tool has repeatedly been followed by the projects becoming visible again. However, the problem returns after another restart. This is a temporary workaround, not a durable recovery.
Checks performed while the sidebar was empty
- .codex-global-state.json and its .bak are valid JSON, without NUL bytes or duplicate keys.
- The active profile and both inactive account snapshots retain 61 local projects.
- SQLite contains the same 61 projects, with valid profile-to-database mappings.
- SQLite PRAGMA quick_check returns ok.
- Startup logs report: Local app-server project migration completed projectCount=61. Recovery history This profile previously underwent local metadata recovery. Nine additional database project records overlapped existing project folders and had no directly assigned conversations. After backups and with the app fully closed, those records were removed, preserving all 1,020 conversation records. The sidebar still became empty after reopening, despite the database and profile catalogs both containing 61 projects.
Other logged errors
- Repeated ResizeObserver loop completed with undelivered notifications.
- A transient EPERM while replacing executor-plugins/codex-app-tools/.mcp.json. The local executor recovered five seconds later and remained connected, so this does not establish the cause. Potential investigation area Static inspection of the installed renderer bundle shows that local projects are filtered out while the LOCAL_PROJECTS query is marked isLoading. That query reads through projectCatalog.readLocalProjects().
We have not verified that flag at runtime, so this is only a hypothesis. Could account restoration or startup leave the renderer query pending or fail to refresh the restored catalog? Could calling list_projects trigger initialization that the sidebar otherwise misses?
Please investigate a durable fix that preserves project visibility and conversation grouping across logout/login and full application restarts. Rebuilding the saved catalog does not resolve the recurring visibility problem on this installation.
I just encountered the exact same problem. Windows 11 and ChatGPT desktop app version 26.1103.32239. This was the first sign-in with the other account since I upgraded the app earlier today. The problem persists after restarting the app or switching between the accounts back and forth.
Got the same thing after app update
Got the same thing after app update
The same problem with the macOS app. I thought it was a bug after the update, so I waited for the new version, but it still doesn't fix it. The current version of the app is 26.1103.41825, and it's the newest one.
Please fix this.
If OpenAI enforces this mechanism when a project belongs to a particular account, please communicate it clearly. In this case, please also provide official guidelines for working with multiple accounts (I have a work and a personal account) and guidance on how to migrate projects between accounts, if applicable.
For now, all the projects are randomly "attached" to one of two accounts, the one that was active during the routine update. This is suboptimal.
Same issue here on Windows, OpenAI.Codex 26.1103.4239.0 (updated 2026-11-06).
I use three ChatGPT Plus accounts in the desktop app. After the update, switching accounts emptied the Codex Projects list (chats stayed in Recents, folders and project records were still on disk). Only one account still had the project list saved.
Workaround that worked for me: with the app fully quit, I copied the project-related settings (local-projects, project-order, thread-project-assignments, etc.) from that account's saved state in .codex-global-state.json to the other accounts. After a restart, the projects show on all three accounts. A restart still seems to be needed after each account switch.
Remaining problem: the project list and chat-to-project grouping are now stored separately for each account, so new chats don't stay grouped across accounts. Please share local Codex projects across all accounts on the same computer, as before.