You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add UI support to relocate a project folder and move its threads #28749
appIssues related to the Codex desktop appenhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving
When a local project folder is moved or renamed, Codex keeps the old project entry in the sidebar and its previous chats/threads remain grouped under the old folder. There does not appear to be a simple UI action to relocate the project or move all existing threads to the new folder.
Example from my setup:
Old folder: C:\dev\.svelte\menu
New folder: C:\dev\.svelte\menu-app
After opening the new folder, the sidebar showed both projects. The new menu-app project appeared separately, while older threads still appeared under menu. Moving them required manually updating local Codex metadata, including thread cwd values and persisted sidebar/project state.
What would you like to happen?
Codex should provide a supported UI flow for this, such as:
Relocate project folder from the project menu
Move all threads to another project/folder
Automatic detection when a saved project path no longer exists and a likely replacement folder is opened
A confirmation dialog showing how many local threads will be moved
Why this matters
Moving or renaming project folders is common. Having the thread history split across stale and new project entries makes it hard to find prior work and makes the sidebar look inconsistent. Manual metadata edits are risky and should not be necessary for normal project maintenance.
Current workaround
Manually updating local Codex state can work, but it is unsupported and easy to miss cached sidebar/project entries. A first-class UI action would be safer and clearer.
Reacted by Mamat, Jiajun Sun, Erik Huizinga, Rocky Stefano, André Bastos Dias and Bo Lingen
One important case is when a user asks Codex itself to rename or move an already-open project directory. Codex can successfully rename the folder and then strand its own thread history because persisted cwd/project mappings still point at the old absolute path.
This should be one atomic built-in workflow: record the old and new roots, perform the rename, migrate all affected thread cwd/index/sidebar/project mappings and durable rollout metadata, verify that history remains visible, and roll back safely if any step fails. The agent-facing procedure should also ship as a built-in Skill, so Codex automatically follows it whenever it performs a project rename/move rather than requiring users to know about hidden SQLite/JSON state.
As of current main (58b4277228), I still do not see a supported atomic project-root migration/relink flow. thread/settings/update can update a loaded thread for subsequent turns, but it does not migrate every stored thread and Desktop project mapping under an old root.
I just hit this in a real migration and want to add one important detail: moving the folder is only part of the problem.
I had a long-running ChatGPT Work project under a OneDrive-backed Documents path and wanted to move it to a stable local path outside OneDrive. Copying the project files worked, and I could point Work at the new folder, but the historical chats remained associated with the old project/path. More importantly, local files referenced from those historical chats still point to the original absolute filesystem locations.
So a true Relocate project feature should ideally migrate the whole relationship graph, not just update the sidebar entry or thread cwd:
update the project’s local root
move/reassociate all threads
rewrite/relink historical local file references where they are project-relative
preserve chat history and project context
clearly warn about references that cannot be migrated
As a user, “move project” naturally means the project remains the same project at a new location. Today it behaves more like “open these same files from a different folder and start a new local project identity,” which is surprisingly destructive to continuity.
appIssues related to the Codex desktop appenhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving
Activity
github-actions commentedon Jun 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ryanfinken commentedon Jul 7, 2026
Noticed this after I sent feedback through the app. ID: no-active-thread-019f3e1e-6b08-74c3-a20d-8927f65ce884.
sunjiajunsunjiajun commentedon Jul 24, 2026
One important case is when a user asks Codex itself to rename or move an already-open project directory. Codex can successfully rename the folder and then strand its own thread history because persisted cwd/project mappings still point at the old absolute path.
This should be one atomic built-in workflow: record the old and new roots, perform the rename, migrate all affected thread cwd/index/sidebar/project mappings and durable rollout metadata, verify that history remains visible, and roll back safely if any step fails. The agent-facing procedure should also ship as a built-in Skill, so Codex automatically follows it whenever it performs a project rename/move rather than requiring users to know about hidden SQLite/JSON state.
As of current
main(58b4277228), I still do not see a supported atomic project-root migration/relink flow.thread/settings/updatecan update a loaded thread for subsequent turns, but it does not migrate every stored thread and Desktop project mapping under an old root.keen-romoya commentedon Sep 11, 2026
I just hit this in a real migration and want to add one important detail: moving the folder is only part of the problem.
I had a long-running ChatGPT Work project under a OneDrive-backed Documents path and wanted to move it to a stable local path outside OneDrive. Copying the project files worked, and I could point Work at the new folder, but the historical chats remained associated with the old project/path. More importantly, local files referenced from those historical chats still point to the original absolute filesystem locations.
So a true Relocate project feature should ideally migrate the whole relationship graph, not just update the sidebar entry or thread cwd:
As a user, “move project” naturally means the project remains the same project at a new location. Today it behaves more like “open these same files from a different folder and start a new local project identity,” which is surprisingly destructive to continuity.