Repository navigation
Description
Summary
On macOS, desktop project membership, working-directory state, legacy project registrations, and the visible sidebar disagreed during a Work/Codex continuation and subsequent project move.
The user started local work from a conversation already in a ChatGPT project. A local project registration with the same display name and a cloud backing link existed alongside the cloud project. After the user moved the local workflow chat to another project, membership changed, but the chat's working directory and multiple saved workspace references still pointed at the original folder.
Later, the sidebar showed Projects → No projects, while list_projects continued to return the old local registration. Repair required the bundled app-server API plus reconciliation of the legacy desktop settings and a full app restart.
The initial creation/continuation trigger was not independently reproduced. This report documents the state inconsistencies and verified recovery, not a confirmed root cause. A linked local registration may be intentional; the problem is the inconsistent identity/path state and lack of a usable visible cleanup path.
Environment
- ChatGPT/Codex macOS desktop: 26.1016.62342, bundle build 21477
- Bundle identifier:
com.openai.codex - Bundled CLI: 0.163.0-alpha.11.2
- macOS 27.0.1, build 26A434, Apple Silicon
- Observed and repaired October 22, 2026
- Sidebar grouping: project
Observed sequence
- The user launched local workflow work from a chat in an existing cloud project. Local work accumulated in a folder associated with that project's local backing registration.
list_projectsreturned separatelocalandchatgptentries with the same display name. The local record had achatGptBackinglink to the cloud project.move_thread_to_projectreturned success for a move to the cloud project. Subsequentlist_threadsstill reported the original local project ID. This did not establish that the move had persisted.- The user moved the workflow chat through the UI to a different existing project.
list_threadsthen reflected the destination's local project ID, but the chat'scwdremained the original folder. - The destination local project's roots included both its own folder and the old folder. Saved
thread-workspace-state-v1:<thread>contained an old applied cwd/root and a different pending workspace. - A later screenshot in the Codex surface showed Projects → No projects. Nevertheless,
list_projectsand legacy saved state still contained the unwanted old local registration. - An attempt to isolate the old local registration in a custom sidebar section via
move_project_to_sidebar_sectionreturned the requested local ID, but readback placed its linked cloud project in the section instead. This was immediately reversed; no project was deleted through that tool.
The user-visible names and placement did not provide a reliable way to identify which entry could be safely removed.
Impact
- Moving the chat did not by itself verify or change its working directory.
- Tool success acknowledgements could disagree with readback.
- A local registration could remain in records without appearing as a removable sidebar entry.
- Installed local tools depended on files in the old workspace, so removing the folder before relocating those dependencies could break the workflow.
- A missing old folder remained referenced by the chat, risking failures on subsequent file operations.
- The user had to reconcile project membership, folder location, and multiple internal state representations manually.
Expected behavior
- Make the relationship between a cloud project and its local backing registration explicit.
- Make local folder context and the effective working directory inspectable.
- When moving a chat, explicitly preserve or offer to change folder context, and reconcile applied/pending workspace state consistently.
- Make successful mutations observable in readback, or clearly signal asynchronous completion.
- Provide a safe way to remove a local registration even when the sidebar does not display it, preserving cloud projects, conversations, and original files.
- Avoid targeting a linked cloud project when an action was addressed to a distinct local registration, or document that aliasing explicitly.
Recovery performed and verified
All local files were preserved before registry changes; backups of the affected settings, thread rollout and SQLite state were retained.
- Copied the entire 85-file workspace to a permanent folder and verified every file hash. Retained the original workspace as a backup.
- Updated the dependent local MCP application's launcher path. Restarted its connection and verified tool discovery, model-file checks, a local API connection, a reference crop, and a real image upscale.
- Used the installed bundled app-server schema, not guessed RPC parameters:
project/update: replace the stale folder in the destination local project's roots;thread/resumewith explicitcwdandruntimeWorkspaceRoots: update the affected workflow chat without starting a generation;thread/read: verify the new cwd;project/delete: remove only the old local database project registration.
- The live desktop tools still reported the old legacy registration after the app-server database removal. Backed up and narrowly reconciled
local-projects, the legacy-to-app-server ID mapping, old default selection, and affected saved workspace entries in.codex-global-state.json. - Reapplied the legacy reconciliation after normal desktop shutdown to guard against cached state being written back, then restarted the app.
Post-restart verification:
- The old local registration was absent from
list_projects, the SQLiteprojectstable, and legacy saved settings. - The cloud project remained present and pinned; its original cloud conversation retained its project membership.
- The moved workflow chat retained its new project membership and permanent cwd.
- Applied workspace roots and destination project roots referenced the permanent folder; no pending stale workspace remained.
- All 85 preserved files still matched their hashes.
This is an account of a recovery, not a recommendation that users edit app databases/settings manually.
Related reports
- [Codex App] Project membership differs between sidebar and list_threads; move_thread_to_project success not reflected in readback #53486 — sidebar/project membership disagreement and successful move not reflected in readback.
- macOS desktop: unable to remove local projects after project UI change (26.917.71314) #49699 — missing local-project removal control after project UI changes.
No private conversation contents, screenshots, account identifiers, project/thread identifiers, original project names, personal paths, or raw logs are included.
Activity
github-actions commentedon Oct 23, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
elvisizer commentedon Oct 26, 2026
Reviewed the suggested duplicates; they overlap with parts of this report, but neither documents the full state inconsistency/recovery sequence.
The separately actionable observations here are:
project/deleteremoved the old local database registration, live desktop inventory still returned its legacy registration. Recovery additionally required narrowly reconciling backed-up desktop settings after shutdown and restarting.The original limitations remain: the initial creation/continuation trigger was not independently reproduced; linked local registrations may be intentional; no shared root cause is established. Recovery is evidence, not a recommendation to edit databases/settings manually.
Post-restart checks documented in the report confirmed removal from database, legacy settings and inventory; correct moved-thread membership/cwd and roots with no stale pending workspace; preservation of the pinned cloud project and its original conversation membership; and matching hashes for all 85 preserved workspace files.
Keeping this open for the workspace-state and local-registration cleanup/targeting observations; the sidebar/migration symptoms may share an underlying cause with the related reports.
williamsmtw commentedon Oct 27, 2026
Additional macOS occurrence: a long-running research chat intended for one local project was found to be using a different working directory. Because the current desktop UI no longer persistently displays the effective project folder or full working-directory path, the mismatch was not visible in the chat or sidebar and was only discovered after explicitly asking the agent. The user reports that a previous version displayed the active folder more clearly.
Please restore a persistent display of the effective working directory or primary project root in each local chat, and warn users when project membership and the chat’s saved working directory differ. This is especially important for workflows involving multiple local research projects, where an unnoticed mismatch can result in reading or editing files in the wrong project.