Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.908.9136.0
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
A ChatGPT project in Work can successfully create and run one local conversation, but creating another conversation in the same project subsequently fails with:
Could not use this project for a local chat
What steps can reproduce the bug?
- Open an existing ChatGPT project in Work.
- Immediately submit
test. - A local Work conversation is successfully created and completes normally.
- Without restarting the Codex App, create another new Work chat in the same project.
- The second attempt fails with
Could not use this project for a local chat.
Investigation
I performed a read-only investigation of the Desktop logs, app-server logs, project mirrors, running helper processes, Windows directory handles, and the installed application code.
The evidence strongly indicates a Windows directory-sharing conflict:
- Project synchronization successfully replaces the local project mirror.
- Work/prewarming then starts helper processes that use that mirror directory as their working directory.
- A subsequent project synchronization attempts to replace the same mirror.
- The helpers still occupy the directory.
- A handle-only rename-access probe on the affected mirror returns Windows error 32 (
sharing violation). - Desktop then logs project synchronization failure at
stage=filesystem. - The user-visible error is
Could not use this project for a local chat.
A Windows reboot does not permanently resolve the issue because Desktop can recreate the locking condition during the fresh session.
The affected project itself does not appear corrupt: its mirror, metadata, permissions and mappings are valid, and it successfully created and completed a Work conversation during the controlled test.
The exact failing filesystem syscall is inferred rather than directly logged because the original native filesystem exception is not preserved in the Desktop log.
I have a sanitized diagnostic package containing the full technical report, reproduction steps, evidence index, and minimal relevant log extracts.
What is the expected behavior?
Should be able to start a new chat
Activity
github-actions commentedon Sep 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
jaywking commentedon Sep 22, 2026
Independent reproduction on the current Windows desktop build confirms the same app-created helper/CWD sequence.
Environment
26.915.4065.09922, commit0242453bc53bf3fc686ef2bc0f8365b71d9d39000.155.0-alpha.9.226200.9457, x64Clean-start reproduction
.codex\.chatgpt-projects.2026-09-22T00:08:45Z, Desktop recreated the affected project mirror and started these helpers with their working directory set to that mirror:node.exerunning@oai/cua-replnode_repl.exechild of the app servernode_repl.exechild of the CUA Node process2026-09-22T00:08:51.794Z ChatGPT project context sync failed sourceCount=0 syncFileCount=0 projectSaveCount=0 stage=filesystem status=nullIt repeated at
00:08:58.734Z, followed bysubmissionKind=new_thread outcome=failure reason=submit_failed. The UI displayed “Could not sync ChatGPT project context” and “Could not use this project for a local chat.”Additional checks
Unknown local project, prewarm failure,fileDownloadRequest, or context-download error was present.This appears to confirm that a full restart is not a durable workaround: a clean Project → Local Work attempt can recreate the mirror-bound helpers before synchronization completes, reintroducing the locking/race condition itself. No configuration, mirror, or Project files were modified during this diagnosis.
s1nack commentedon Sep 23, 2026
Independent reproduction on a newer Windows build, with a minimal workaround that immediately restores the failing flow.
Environment
OpenAI.Codex_26.917.6896.0_x64__2p2nqsd0c76g026.917.51856104920.155.0-alpha.16Reproduction
Relevant logs
Immediately before failure, the local Work thread starts successfully and
node_replreaches ready:Then the Project-context sync fails:
The submission then ends with:
There are also repeated filesystem metadata failures in the same session:
Workaround that fixes it immediately
Without changing the Project, memory settings, or app configuration, run:
Then immediately retry creating the Work/local chat in the same ChatGPT Project.
Result: it works.
This strongly supports the same Windows helper / project-mirror locking mechanism described in this issue. In this reproduction, the Project itself is valid, memory mode is Open, and
node_replis healthy enough to start and reportready; terminating the already-runningnode_repl.exeprocesses is sufficient to unblock the next Project-context sync.I can provide additional sanitized log excerpts if useful.
moonligtsakura-del commentedon Sep 23, 2026
Additional reproduction / workaround data from Windows Desktop.
I encountered the same “Could not use this project for a local chat” behavior and found a different Project setup that appears to bypass the failing path.
What did NOT work
Simply creating another Local Work inside my existing ChatGPT Project did not reliably provide the expected local project access.
In another test, ChatGPT created a separate Work directory under:
C:\Users\<username>\Documents\Codex\...rather than using the Windows folder I intended as the shared project root.
What worked
I created a completely new Project and configured it as follows:
C:\Users\<username>\Documents\MY_PROJECT_FOLDERVerification
I tested two independent Local Works using the same Project and Source folder.
Verified behavior:
The resulting workflow was effectively:
Local Work A -> shared Windows Source folder -> Local Work BImportant limitation
I am not claiming that this repairs the affected existing Project, or that it fixes the underlying bug.
The successful test required creating a new Project with the Source folder attached and trusted during Project creation.
This makes me wonder whether there are two meaningfully different paths here:
If so, the second path may avoid at least part of the project-mirror synchronization failure described in this issue.
Tested on ChatGPT Desktop for Windows on September 22, 2026.
hawkeyeomi commentedon Sep 24, 2026
Reproducible Windows ChatGPT Work issue: second local handoff in same Project fails after first task
I can reproduce this consistently in the ChatGPT Windows desktop app when using local Work inside the same ChatGPT Project.
Steps to reproduce
Process Explorer findings
After the first Work task completed, I searched the affected project mirror with Microsoft Process Explorer:
C:\Users<username>.codex.chatgpt-projects<project-id>
I found multiple node_repl.exe processes holding handles inside that project directory. In one reproduction there were also node.exe and codex.exe processes attached to the project mirror.
I tested killing only the stale project-specific node_repl.exe processes after confirming no Work task was running.
In one case, clearing those processes allowed another Work handoff to succeed without restarting ChatGPT.
In another case, after killing the node_repl.exe processes, only codex.exe remained attached to the project directory and the second handoff still failed. Restarting the ChatGPT desktop app then restored the handoff.
I reproduced the sequence multiple times:
restart app → first Work handoff succeeds → task completes → second handoff fails
The local helper processes appear to remain associated with the Project after task completion.
Expected behavior
Once a Work task finishes, its local runtime/helper processes should release the Project mirror so another Work handoff can start immediately.
Observed workaround
Possible failure mode
This looks consistent with a stale local runtime/project-mirror state on Windows. A completed Work task appears to leave handles open under .codex.chatgpt-projects<project-id>, and the next local-chat initialization/sync then fails.
I have Process Explorer screenshots showing the relevant node_repl.exe, node.exe, and codex.exe handles and can provide them if useful.
In-app Feedback ID: no-active-thread-01a0d568-3c21-7f13-b8b9-23a8a670617f
funahashiyuji0331-sketch commentedon Sep 25, 2026
Additional recurrence on 2026-09-25 with the Windows ARM64 desktop package OpenAI.Codex 26.917.9434.0. This is a follow-up to the September 24 evidence already posted in this issue. The affected user authorized this sanitized update; no project names, user paths, conversation content, IDs, or credentials are included.
node_repl.exechild of the desktop app-server had an open directory handle on that mirror root. It started during the short interval after the app created the new root and before a local protective workaround could relocate it. After confirming that helper had no child process or new Work task attached, stopping only that identified helper allowed the root to be protected and the user's retry succeeded. This is diagnostic evidence, not a recommendation to terminate allnode_repl.exeprocesses or active tasks.node_repllaunch configuration with a versioned direct runtime path, undoing the previous local launch-path workaround. A later successful Work submission started another directnode_repl.exefrom the still-running app-server. Local configuration repair therefore cannot be treated as a product fix; its effect after a safe app restart remains unverified.The same user's send eventually succeeded after local recovery, but repeated success on retry is not resolution of this bug.
drivxthru-debug commentedon Sep 25, 2026
Independent reproduction on Windows x64 with the Microsoft Store desktop package
OpenAI.Codex_26.917.9434.0_x64__2p2nqsd0c76g0(observed internal release26.917.71314). The affected user authorized this sanitized report. No project names/IDs, user paths, conversation content, or full logs are included.ChatGPT project context sync failed ... stage=filesystem. I saw this for a Project withsourceCount=1and another withsourceCount=0.This is consistent with the active mirror directory being held open while desktop context sync tries to replace it. I did not identify the exact holder on this machine. Please account for repeated entry into a Project when fixing the sync/handle lifecycle.
AdekWhat261 commentedon Sep 26, 2026
Additional Windows reproduction on a newer desktop build, focused on resuming a local task in a ChatGPT project. This filesystem failure can also prevent moving an existing projectless local chat into a project.
Environment: OpenAI.Codex 26.924.2738.0, desktop build 11645. At 2026-09-26 20:10:05 UTC, Desktop logged a project context sync failure at stage=filesystem with sourceCount=0, syncFileCount=0, and projectSaveCount=0.
At the time, eight idle app helper processes had the affected project mirror as their working directory. A read-only Windows handle probe requesting DELETE access on that directory failed with WinError 32 (ERROR_SHARING_VIOLATION). After those idle helpers were stopped, the same probe succeeded with WinError 0. Reopening the project can start helpers again, so this only releases the lock temporarily.
The exact failing filesystem syscall is not recorded in the Desktop log. The sharing violation is strong supporting evidence, rather than a directly traced syscall. It is consistent with sync replacing or renaming the project mirror root while helpers still use it.
Please keep the mirror root stable while helpers may use it, and persist chat-to-project membership independently of context sync so a transient filesystem error does not reject the move. Logging the failed filesystem operation and native error code would make future reports conclusive. No project or chat IDs, user paths, chat contents, or full logs are included.
exarkun4 commentedon Sep 27, 2026
Additional reproduction on Windows Store package OpenAI.Codex 26.924.2738.0. The “Could not use this project for a local chat” toast has affected two existing ChatGPT Projects. Their current mirrors contain 3 and 10 source files. Desktop logs record
ChatGPT project context sync failed,stage=filesystem, andprojectSaveCount=0for both source counts. The direct live lock probe below was performed on the 3-source Project.Read-only inspection of the installed build shows context sync staging a replacement directory and renaming the live Project mirror root. On one affected mirror, a non-mutating DELETE-access probe of the root returned Win32 32 (
ERROR_SHARING_VIOLATION), while its source directory and generated instructions file remained readable. Task-related processes held root handles, andcodex.exeheld output-folder handles beneath it. The desktop log omits the native filesystem operation, so the exact syscall in the live failure remains an inference.In isolated Windows fixtures, the unmodified installed sync function failed at the root rename with
EBUSYfor 0, 3, and 10 synthetic sources when a live process used the root as its working directory and an output watcher was active. User-output sentinels survived. A root junction permitted only one sync before the app replaced it with a real directory; the next failed withEPERM. Moving only output watches outside the root did not resolve the root working-directory lock. Neither original Project was changed. An uninstalled in-place managed-file prototype passed 14 fixture checks, including repeated sync, changes/removals, rollback, interruption recovery, filename case changes, and zero sources. It has not been validated in the product UI.Please keep the Project mirror root stable while tasks or helpers use it, and update app-managed context without disturbing user work. If refresh fails, preserve the selected Project association and saved state, then retry or show an actionable error; do not silently create a projectless chat. Log the failed filesystem operation and native error. Regression coverage should create successive local chats through the normal composer in multiple existing Projects with active tasks and preview watchers, then repeat after restart and update.
torreherrerabrostania commentedon Sep 27, 2026
También me ocurre este problema al crear nuevos Work dentro de proyectos en Windows, incluso cuando no hay tareas activas. Ya actualicé y reinicié la aplicación y el fallo continúa.
Versión: 26.924.22138, build 11645.
Uso Windows nativo, no WSL.
Ya envié el diagnóstico desde «Opinión» en la app. Mi ID de feedback es:
01a0cc98-859b-76a3-81d4-f0a3a40da0ec
Por favor, relacionen mi reporte con esta incidencia.
exarkun4 commentedon Sep 30, 2026
Still reproducible on the updated production Windows desktop build on 30 September 2026:
up_to_date.The desktop main-process logs contain the same failure at 2026-09-30T17:49:09.539Z and 2026-09-30T17:57:45.336Z:
Read-only inspection of this build's
.vite/build/main-DkWgQSQe.jsconfirms that the mirror-based Project-context sync path still stages a replacement directory, renames the live mirror to a previous-directory sibling, swaps staging into the live path, then restores user work. The relevant mirror-sync module and function are unchanged from the previously reported 26.924 build apart from minified identifier names. Current sync-function SHA-256:ea2e2f168b409b839db479c5d21c263d3ff87c35c5b638ac86a00c6575cbd80f.The unmodified current sync service and shipped dependencies were extracted read-only and exercised in isolated Windows fixtures:
renamewithEBUSYfor 0, 3, and 10 synthetic sources.EBUSY; an output-folder watcher alone producesEPERMat the same root rename.EBUSYfailures with three sources and confirmed recovery after releasing the synthetic locks.The live desktop log still omits the native filesystem operation/error. The exact live failing syscall remains an inference; the failing root rename is directly observed in the isolated current-code fixtures. No original Project mirror, source, app profile, installed application, or active task was modified for these tests.
This build also contains a gated unified-Projects path that can bypass mirror sync for eligible Projects. The account's gate value and Project eligibility were not established in this investigation; the live errors above show that the mirror path is still being used. Please confirm whether a supported rollout or migration can resolve this for existing Projects while preserving their identity, history, sources, and memory settings.
Please also fix the remaining mirror path: keep its root stable while tasks, helpers, or preview watches use it, and update managed context safely in place. Preserve Project membership and saved state if a refresh fails, and retain the native filesystem operation/error in diagnostics. Acceptance should create successive local chats through the normal composer in multiple existing Projects with active tasks and preview watches, preserve their history/sources/user work, then repeat after restart and update.
xiaoxueni27-png commentedon Sep 30, 2026
Additional reproduction on 2026-10-01, covering three existing ChatGPT Projects on the current Windows build. Posting with the affected user's authorization; project names/IDs, personal paths, account details, transcripts, source contents and full logs are omitted.
Environment
OpenAI.Codex 26.928.2636.0, x64.0.159.2; Windows build:10.0.26200.0(64-bit).Verified live sequence
Could not use this project for a local chat(Chinese:无法将此项目用于本地聊天). Desktop logsChatGPT project context sync failed,stage=filesystem.cua_nodehelper processes (nodeandnode_repl) with the affected mirror root as their cwd and open directory handles on that root. A non-mutating replacement-access probe returned Win32 32 (sharing violation).Isolated current-code reproduction
The unmodified sync function
DC, freshly extracted from the installedmain-DkWgQSQe.js, was exercised in a scratch fixture. A child Node process withcwd = projectRootmakes sync fail at the rootrename, withcode=EBUSY,syscall=rename,stage=filesystem. After the fixture child exits, the same sync succeeds and the original output sentinel is preserved. No installation or production Project files were changed by this test.Module SHA-256:
febce65087ab1c20c53e6da4c1f17baf720a57e8fa5cedc9b9b84fc82223e811.The live Desktop log does not retain the native syscall/error, so the exact live failing operation is still an inference supported by the sharing-violation probe and isolated reproduction. Terminating helpers is temporary recovery, not resolution of the defect.
Please coordinate helper lifecycle with mirror refresh, or keep the working root stable while safely updating app-managed context. Preserve existing Project identity, history, sources, user-created outputs and memory settings. Acceptance should repeatedly create local Work chats in multiple existing Projects, including project-only memory and zero-source Projects, while earlier chats and helpers remain present; then repeat after restart/update. Please also retain the failed native filesystem operation/error in diagnostics.
exarkun4 commentedon Oct 5, 2026
Still reproducible on the current Windows Store build, plus a local trigger others may be hitting.
Build: OpenAI.Codex 26.930.3930.0 (desktop build 12947, app-server 0.160.0), Windows 11 10.0.26300, native execution.
ChatGPT project context sync failed … stage=filesystementries logged since Oct 1 UTC across builds 12404–12947, including two on the current build (2026-10-03 05:39 UTC in a 5-source Project; 2026-10-05 02:46 UTC in a 10-source Project)..chatgpt-projects\<id>folder to.<id>-previous-<uuid>, then renames staging into place. The native error is attached ascauseon the thrown error but is not logged, so the log only ever saysstage=filesystem.Local trigger worth checking: custom MCP servers without
cwd. A stdio MCP server defined in~/.codex/config.tomlwithoutcwdis started in the thread's working directory, which for a ChatGPT Project chat is the mirror root. I found six such processes (three custom servers × two chats) holding one Project's mirror as their current directory, which is enough to make the next new chat's root rename fail. Built-in plugin servers launched from their plugin cache directories were not affected.Workaround that worked here: add
cwd = '<a folder outside .chatgpt-projects>'to each custom[mcp_servers.*]table. Afterwards, two successive new local Work chats in the same original Project were created and completed through the normal composer, with the first chat's helpers still running, and no sync error. This does not cover shell commands running in the Project root or open file-preview watchers, so it is a mitigation, not a fix.Gotcha: a Project-layer
[mcp_servers.openai_artifact_template_picker]table containing onlycwdis rejected (invalid configuration: invalid transport) and blocks local task creation; it needscommand/argsas well, and those paths are version-specific.Suggested product fixes: start MCP servers/helpers in a neutral working directory instead of the Project mirror; update managed files in place instead of renaming the live root; log the native error code (EBUSY/EPERM) and path.
Question for maintainers: the bundle contains the
codex_unified_projectsroute, which pairs a ChatGPT Project with a separate local work folder instead of running tasks in the mirror. Is there a supported way to opt in for existing Projects, and does it keep existing Project IDs, chat history, sources, and memory settings?jaywking commentedon Oct 6, 2026
Independent confirmation of the
node_replworkaround on Windows, with a repeatable fail → recover → fail → recover sequence.Test
With the ChatGPT Windows desktop app open:
node_replprocesses:There were 13
node_replprocesses running.Result: success.
I then immediately tested the sequence again:
node_repltermination command.Result: success again.
So on this installation the sequence is repeatable:
New Project → Local Work chat → FAIL
Terminate
node_repl→ retry → SUCCESSCreate another new Project → Local Work chat → FAIL
Terminate
node_repl→ retry → SUCCESSNo ChatGPT restart, Project recreation,
.codexmodification, cache deletion, configuration change, or other process termination was performed.This appears consistent with
node_replbeing relaunched after the successful Local Work session and subsequently recreating the condition that prevents the next Project-context synchronization.exarkun4 commentedon Oct 7, 2026
Another holder on recent Windows builds (since about Oct 5; current Store package OpenAI.Codex 26.1002.7124.0): the bundled
unified-computer-useplugin.Its
.mcp.json(plugin 26.1002.52244) declares thecua_replstdio server without acwd, while the other bundled/curated plugins here (code-review, rosalind, codex-app-tools) set one ("cwd": "."). Without it,cua_repl(node … @oai/cua-repl/bin/cua-repl.mjs) starts in the thread's working directory, which for a ChatGPT Project chat is the.chatgpt-projects\<id>mirror, and thenode_repl.exeit launches inherits that directory. I found exactly that pair holding a Project mirror after the update, andcua_replwas among the servers started in the minutes before each of the threeChatGPT project context sync failed … stage=filesystementries I logged after Oct 5.That may also be part of why stopping
node_repl(comment above) restores new chats: on these builds anode_replholding the mirror can be thecua_replchild, not only the configurednode_replserver.Local mitigation that worked here: add
"cwd": "<a folder outside .chatgpt-projects>"tomcpServers.cua_replin%USERPROFILE%\.codex\plugins\cache\openai-bundled\unified-computer-use\<version>\.mcp.json.codex mcp list --jsonthen reports the new cwd, the running app used it for new threads without a restart, and a new local Work chat in the affected Project was created with no sync error and none of its helpers inside the mirror. Each new plugin version ships without the field, so it has to be reapplied.Suggested fix: give
cua_replacwdlike the other bundled plugins, and more generally start MCP servers and helpers outside the Project mirror.marukorono commentedon Nov 22, 2026
Additional Windows evidence on desktop package 26.1117.4957.0 (x64), checked on 2026-11-22.
I observed a repeatable directory-lock sequence, including child workers whose parent already uses a neutral working directory:
The probe opens a directory handle with DELETE access, read/write/delete sharing, OPEN_EXISTING and FILE_FLAG_BACKUP_SEMANTICS, then closes it. It performs no rename or deletion. A separate control directory and the sources child directory returned 0.
A separate persistence check also failed: a backed-up, CLI-validated cwd setting for the existing node_repl server was absent after a normal desktop restart. I did not expand trusted roots or patch plugin bundles to compensate.
Context-sync status remains unresolved: the original Project has seven accessible source files, while the existing local mirror still contains three older files and older instructions. I found no direct context-sync failure log line for this attempt, so the directory probe does not establish the exact failed synchronization syscall. Existing-chat reopening is also not proof that the normal new-chat sync path was exercised.
Is there a supported per-project workaround that covers these child workers and survives desktop startup without expanding trusted roots or pinning version-specific launcher paths?
This report intentionally omits project names, local user paths, chat IDs, process IDs, source contents, account data, and raw logs.