Skip to content

Windows build 13901: all 14 local projects vanish from sidebar while SQLite records survive; offline cache restoration recovers them #53092

Open

Description

@daleel-center

Summary

All 14 local projects disappeared from the Windows desktop app's Projects sidebar on October 11, 2026. Restarting the app did not restore them. Existing chats and source folders remained available.

This report is filed at the affected user's explicit request. It adds observations from build 13901 and a successful recovery to the similar open report #42739. Please consolidate with that report if appropriate.

Environment

  • Windows desktop app, installed package observed during diagnosis: OpenAI.Codex_26.1007.2314.0_x64.
  • Desktop client version observed in logs: 26.1007.21434.
  • Build: 13901.
  • Build commit: 615adb2c04224ce3b678e72cd9e6927ce72331f5.
  • Observed date: October 11, 2026.
  • Exact trigger and clean-profile reproduction steps are unknown; an update-triggered regression is not established.

Actual behavior and local evidence

  1. The Projects section was empty; the built-in list_projects tool returned {"schemaVersion":2,"projects":[]}.
  2. The built-in list_threads still returned existing local chats, with null project IDs in the inspected entries.
  3. A local snapshot of state_5.sqlite contained 14 rows in projects, with corresponding roots in project_roots. All project membership counts were zero when joining threads.project_id against those projects in that snapshot.
  4. .codex-global-state.json contained local-projects: {} and an empty sidebar-project-thread-orders. The local migration checkpoint had projectsMigrated: true, threadAssignmentsMigrated: false.
  5. Desktop startup logged successful project migration with the same count, despite the empty sidebar:
2026-10-11T10:17:30.762Z info [host-app-server-projects] Local app-server project migration completed projectCount=14
  1. Reconstructing the global-state project cache while Desktop remained open was immediately overwritten: a subsequent read again found zero cached projects.
  2. Restarting Desktop alone did not fix the missing projects.

Recovery performed

After preserving settings and a database snapshot, a local helper was prepared to restore the global-state project cache while Desktop was fully closed. It reconstructed project names, IDs, roots, ordering and available appearance metadata from the existing SQLite records; merged thread assignments for exact normalized working-directory matches while excluding explicitly projectless chats; and reset the thread-assignment migration checkpoints. It did not recreate project source folders or directly modify the live SQLite database.

The user ran the helper with Desktop closed, reopened the app, and confirmed that the projects returned. Because multiple cache/membership fields were restored together, this does not isolate which individual field is necessary for recovery. Durability across future updates or repeated restarts has not been established.

Expected behavior / investigation request

Existing local projects and their organization should remain visible across launches. If the desktop cache is empty while app-server still has project records, the app should reconcile the cache or expose an actionable recovery state.

Please investigate the project registry/cache reconciliation and incomplete thread-assignment migration. The observed cache/database mismatch is established; the exact root cause remains a hypothesis.

No private project names, user paths, account or thread identifiers, credentials, raw database files, or full session transcripts are attached.

Activity

  1. added
    bug
    app
    windows-os
    session
    on Oct 11, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor
  3. drakunov commented on Oct 15, 2026

    @drakunov

    Additional report: #53305. This has now happened twice on my Windows machine following unexpected power-loss reboots. Project entries disappeared from the sidebar again after the second incident.

    During the latest recovery, the SQLite integrity check passed and local chat metadata remained intact. The project catalog in .codex-global-state.json was missing, and its .bak did not contain the catalog either. Restoring only the project catalog and chat assignments from a known-good metadata backup restored the structure without replacing the SQLite database or rolling back conversations.

    This is a repeated observation after unexpected shutdowns, not a controlled reproduction. Happy to provide sanitized diagnostics if useful.

    Update, October 15: the same incident also cleared Settings → Connections → Control other devices. Two previously configured devices are no longer listed; the UI now shows the initial “Set up” prompt. Local diagnostics show two remote-control connections before the incident, then global-state JSON parse errors involving null characters, followed by zero connections. The electron-remote-control-client-enrollments entry is now absent from both the current global-state file and its .bak.

    This loss preceded the project-only recovery, which modified only project-related fields. Restoring the project structure did not restore these connections. This suggests the state-loss issue can affect remote-control client enrollment data as well as the project catalog; it does not establish that the remote machines themselves were unregistered or offline.

  4. Samare19 commented on Oct 16, 2026

    @Samare19

    Додатковий випадок, 16.10.2026: втрата каталогу локальних проєктів після зникнення електроенергії під час роботи Codex.

    Користувач повідомляє, що проблема повторюється після раптового відключення живлення із запущеним застосунком. Контрольоване відтворення зі штучним аварійним вимкненням не проводилося.

    Середовище:

    • Windows NT 10.0.19045.0, x64.
    • Встановлений пакет OpenAI.Codex: 26.1013.3656.0 (версія пакета, не з діалогу About).
    • Локальний codex-cli: 0.163.0-alpha.10.2.

    Перевірені локальні спостереження:

    • Поточний list_projects повертає {"schemaVersion":2,"projects":[]}.
    • list_threads продовжує повертати 12 звичайних чатів Codex; у них projectId=null. Робочі папки цих чатів існують.
    • У state_5.sqlite збереглися 5 рядків projects на 4 різні робочі корені: чотири попередні проєкти та один пізніший запис із тим самим коренем.
    • Таблиця project_roots зберегла відповідні шляхи.
    • PRAGMA quick_check повертає ok.
    • У .codex-global-state.json значення local-projects дорівнює {}, project-order і thread-project-assignments відсутні.
    • Для локального checkpoint міграції збереглося projectsMigrated=true і threadAssignmentsMigrated=false.
    • Поточний .codex-global-state.json та його .bak мають однаковий SHA-256. Обидва вже містять порожній каталог, тож .bak не зберіг придатну копію попередньої організації.
    • На початку діагностики список показував один пізніший проєкт; під час наступної перевірки в цій самій розмові він уже був порожнім. Жодних записів у конфігурацію або SQLite під час діагностики агент не виконував. Точну подію переходу між цими станами не зафіксовано; причинний зв’язок цього переходу з відключенням живлення окремо не встановлено.

    Очікувана поведінка: раптове завершення роботи не повинно безповоротно очищувати реєстр проєктів і прив’язки чатів. Якщо desktop-кеш порожній, а app-server/SQLite зберіг проєкти, потрібне узгодження станів або явний засіб відновлення. Записи резервних копій мають зберігати попередню придатну версію після помилки читання/запису.

    Зібрано локальну резервну копію налаштувань та snapshot SQLite. Відновлення на момент цього повідомлення ще не підтверджене; його результат можна додати окремо.

    Це повідомлення надіслано за прямим дорученням користувача. Приватні назви проєктів, шляхи, ID чатів, токени, повні журнали та файли виробництва не публікуються.

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

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions