Repository navigation
Description
What version of the Codex App are you using (From "About Codex" dialog)?
ChatGPT/Codex desktop app 26.1007.9446.0 (Microsoft Store package OpenAI.Codex_26.1007.9446.0_x64__2p2nqsd0c76g0). Bundled CLI: codex-cli 0.162.1.
What subscription do you have?
Not included in this report.
What platform is your computer?
Windows 11 Pro, x64.
What issue are you seeing?
Session→project membership has two sources of truth, and the desktop's copy wins — so any project change made through the documented app-server API is invisible on the desktop, and can later be silently reverted by the desktop.
Concretely, after calling thread/metadata/update {threadId, projectId} (the same RPC the desktop itself sends when moving a thread):
state_5.sqlitethreads.project_idis updated (this column is documented as canonical —codex-rs/rollout/src/list.rscalls it "Canonical project assignment in SQLite-owned metadata"), andthread/listfiltered byprojectIdreturns the thread under the new project. Any non-desktop client sees the move.- The desktop sidebar keeps showing the thread under the old project, because the desktop reads its own persisted state in
$CODEX_HOME/.codex-global-state.jsoninstead of the app-server record:thread-project-assignments: threadId →{projectKind, projectId}keyed by the desktop's own legacy project UUIDssidebar-project-thread-orders: per-project thread ordering used to render the sidebarlocal-projects: the desktop's own project entities, mapped to app-server project ids only viaapp-server-project-id-by-legacy-project-id-by-host
- Worse: with
app-server-projects-migration-by-host.<host>.threadAssignmentsMigrated = false, the desktop queues thread ids inpendingThreadAssignmentIdsand pushes its (stale) local assignment back to the app-server during migration. A thread moved externally was reverted to its old project this way — the API change just disappears.
So a third-party client implementing the documented protocol cannot move a thread in a way the desktop honors. The only workarounds are writing the desktop's private state file out-of-band (lost within seconds while the app is running, since it rewrites the file from memory), or moving from the desktop UI.
Steps to reproduce
- On Windows with the desktop app installed, pick a thread that belongs to project A (visible in the desktop sidebar).
- Call
thread/metadata/updatewith{threadId, projectId: <project B>}against an app-server instance on the same$CODEX_HOME. thread/listwithprojectId: Bnow includes the thread; the desktop sidebar still shows it under A (verified after a full restart of the app).- Let the desktop app keep running; its
pendingThreadAssignmentIdsmigration eventually pushes A back, andthreads.project_idinstate_5.sqliteis reverted.
Also reproducible in the opposite direction: the desktop's own move (its local state + its own thread/metadata/update call) is invisible to other clients until its migration queue catches up, since the two stores only sync one way, on the desktop's schedule.
Expected behavior
One canonical store for thread→project membership. The app-server state (threads.project_id + the existing thread/project/updated notification) is already there and already published — the desktop should treat it as the source of truth (or at least subscribe to thread/project/updated and reconcile its local mirror), instead of maintaining a parallel assignment map that external changes cannot reach and that overwrites them.
Related reports that look like symptoms of the same split: #48728 (app-server-created tasks missing from their projects), #51477 (chats disappear from groups while saved assignments remain), #46987 / #47007 (global-state corruption loses project grouping while sessions survive — because grouping lives in this file rather than the DB), #48641.
Activity
github-actions commentedon Oct 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
SIONSOULSION commentedon Nov 9, 2026
I reproduced the desktop/App Server project membership mismatch after restarting the Windows desktop app on November 9, 2026. The Microsoft Store package is
26.1103.4239.0with bundled Codex CLI0.167.0-alpha.3.2.The desktop shows the correct saved projects for 24 unarchived local Codex chats. All 24 destinations resolve to existing App Server projects, and their App Server
projectIdfields are still blank. The migration checkpoint lists 27 entries, including two archived chats and one explicitly projectless chat.In-app Feedback ID
01a1bc4f-eb41-7673-a903-885050cc92a4.Please provide a supported reconciliation procedure or fixed build that backfills the 24 active assignments from their saved project mappings. Keep both archived chats archived, preserve the explicit projectless choice, and retain all chat IDs, transcripts, project relationships, and attribution records. Please clarify how the migration handles the archived and projectless entries.
SIONSOULSION commentedon Nov 9, 2026
A separate Windows reproduction affects nine active local Codex chats on desktop build
26.1103.4239.0with bundled Codex CLI0.167.0-alpha.3.2.Each chat has a saved assignment to the same registered local project, while its live App Server
projectIdis blank. All nine already use the project's primary working folder and are outside the pending project migration list. A one-chat pilot with the supportedmove_thread_to_projectaction returned “The task is not available in the sidebar.” Readback confirmed the saved assignment, original transcript, and folder access were preserved.In-app Feedback ID
no-active-thread-01a1c22e-8eda-7630-a95a-1a9f7eeb519d.Could you provide a supported reconciliation procedure or a fixed build for these nine assignments? The repair should preserve chat IDs and history, working folders and access, sidebar groupings, pins, archive states, explicit projectless choices, and attribution records.
SIONSOULSION commentedon Nov 9, 2026
Follow-up on the nine-chat Windows reproduction above. The live Codex desktop chat list and the saved assignments now agree for all nine active chats. Both show the same registered local project. The App Server
projectIdis still null for all nine.None of the nine appears in
pendingThreadAssignmentIds. The host still reportsthreadAssignmentsMigrated: falseand 27 pending entries outside this group.Could you confirm whether this state is expected and provide a supported reconciliation path if needed? A repair should preserve chat history, archive state, pins, explicit projectless choices, and attribution.
SIONSOULSION commentedon Nov 10, 2026
November 10 follow-up on the nine-chat Windows reproduction. On running desktop build
26.1103.7773.0, two reads of the live Codex chat list returnedprojectId: nullfor all nine active chats. On November 9, the live list showed the intended local project for all nine.All nine saved assignments still point to the same registered local project, and all nine App Server
projectIdfields remain null. None of the nine is inpendingThreadAssignmentIds. The host still reportsthreadAssignmentsMigrated: falseand 27 pending entries outside this group.Could you confirm the expected behavior for existing saved assignments outside the pending list and identify a supported reconciliation procedure or a fixed Windows build? The repair should preserve chat IDs and history, folder access, sidebar groupings, pins, archive state, explicit projectless choices, and attribution.