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
Cannot create a local Work chat inside a ChatGPT Project (Windows Desktop App) #34499
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
What version of the Codex App are you using (From “About Codex” dialog)?
26.715.61943 (released July 21, 2026)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
When I try to create a Work chat inside an existing ChatGPT Project, I immediately receive errors such as:
"Could not sync ChatGPT project context"
"Could not use this project for a local chat"
The Work chat is not created.
What steps can reproduce the bug?
Feedback ID: 019f83d4-3c04-78a2-a4ce-3f1ff9273b23
What is the expected behavior?
A Work chat should be created inside the existing ChatGPT Project and retain access to the selected local folder. A Project should be able to contain one or more Work chats with access to local development folders.
Additional information
The problem occurs only when creating a local Work chat inside an existing Project.
Environment:
Windows Desktop App
ChatGPT Plus account
Codex App version 26.715.61943
Codex extension in VS Code works correctly
Local folder access works outside Projects
Could you please confirm whether this is a known issue or a bug? Screenshots showing the error can be attached.
Reacted by cata078, mnk12345, kav-welg-4, milordebulldog, Woondal Jeong, KIGI, Valentino Giardino, Kou Misaki, PapaSmurf1770, TheSakuMa and 6 more
I can reproduce the same issue on the Windows desktop app.
Reproduction:
Open an existing ChatGPT Project.
Choose New local chat.
Select On my computer.
Choose a local folder.
When prompted to use the Project context locally, click Add project.
The operation fails with either:
Could not sync ChatGPT project context
Could not use this project for a local chat
Restarting the app and repeating the flow does not help. A standalone local chat outside the ChatGPT Project works, so local folder access itself is not the problem.
This is particularly confusing because the UI explicitly offers New local chat inside the Project and walks the user through the Add project flow. The expected result is a chat that keeps the Project instructions/files while executing on the local computer. Instead, the chat is never created, which blocks local tasks such as SSH and terminal work that depend on the Project context.
Please prioritize this regression or provide a supported workaround that preserves the ChatGPT Project context.
Reacted by zakrzak93, Syntrix82, Jason Glynn, Swaroop Kamble, Tim Sliva and seasonsteven
Hi,
thanks for your message. I think I found the cause of the issue.
The problem does not seem to be the local folder itself, and Codex Work
also works in general. The issue seems to happen when a Work/local chat is
created from a ChatGPT Project without selecting the local working folder
during chat creation.
In my case, Work chats without the project worked fine. But Work chats from
the project failed with:
Could not sync ChatGPT project context
Could not use this project for a local chat
The fix was not just adding the folder path to the project instructions.
That only gives the model textual information; it does not grant technical
file access.
The important step is:
When creating the new Work/local chat, select or attach the local working
folder immediately during creation. After doing that, the same folder
access test worked.
So the practical rule seems to be:
When starting a Work/local chat from a ChatGPT Project, attach the local
folder right away during chat creation. Do not rely only on project
instructions that mention the path.
Best,
Paul
Am Mi., 22. Juli 2026 um 04:17 Uhr schrieb walter_paiva <
***@***.***>:
Thanks, this matches my experience exactly.
The confusing part is that standalone local chats work, and creating a new
local project with a folder selected immediately also works. The failure
happens when trying to create a new local chat from an existing ChatGPT
Project and then adding the project context locally.
I also have older project-related Work/local chats that can still access
local files after permission is granted, but I cannot reliably reproduce
that setup anymore. This makes it unclear whether the behavior changed in
the Desktop app or whether there are now two different project/local-chat
flows with different capabilities.
A supported workaround that preserves both ChatGPT Project context and
local folder access would be very helpful.
Am Mi., 22. Juli 2026 um 04:17 Uhr schrieb walter_paiva <
***@***.***>:
it is really strange. In the same projekt I could create a workchat. But
two minutes later it didn't work anymore. But there is a way around. Crate
a new project. *By creating it you should click on the folder you want to
use. It werks well. But i comes with problem that you can
notintroduce context for your project. *
Am Do., 23. Juli 2026 um 14:05 Uhr schrieb uooing ***@***.***
The issue affects multiple existing ChatGPT Projects, not only one project.
Existing conversations remain visible, but creating a new local Work chat inside any ChatGPT Project fails.
Exact errors:
Could not sync ChatGPT project context
Could not use this project for a local chat
Troubleshooting already completed:
Completely closed the application and verified in Task Manager that no processes remained
Restarted the application
Tested multiple ChatGPT Projects
Signed out and signed back in
Checked Microsoft Store for updates; none were available
Used the Windows Repair option for the application
Retested after Repair
The issue still persists.
In my case, the problem became apparent after the OpenAI service disruption on July 25, 2026. During that period, I was working on an existing project and also experienced a project conversation/task no longer appearing where expected.
In-app feedback was submitted with session logs.
Feedback ID: 019f9a91-3daf-7fc1-8a8e-1752353bc596
I can provide screenshots showing both errors if needed.
I can confirm this issue is still present on a newer desktop build and wanted to share some additional testing that may help narrow down the root cause.
Environment
OS: Windows 11
Plan: ChatGPT Plus
Desktop App: OpenAI.Codex 26.721.4979.0
Testing Performed
Test
Result
Create a Work chat outside a ChatGPT Project
✅ Works
Open an existing Project-backed Work chat
✅ Works
Create a new Work chat inside an existing Project
❌ Fails
Create a brand-new empty Project, then create a Work chat
❌ Fails
Sign out and back in
❌ No change
Restart desktop app / reboot Windows
❌ No change
Existing Project Work Chats Still Function
One important observation is that previously created Project-backed Work chats continue to function normally.
For example, an older Work chat is still rooted in:
This suggests the .chatgpt-projects mirror itself is healthy, since previously provisioned Work sessions continue to operate normally.
Summary
Based on testing, this does not appear to be a failure of Work mode itself because:
Standalone Work chats function correctly.
Existing Project-backed Work chats continue to function.
The failure occurs only when creating a new Work chat from a ChatGPT Project.
The failure occurs before the new Project-backed Work session is created.
From the observed behavior, it appears the failure occurs during the Project → Work context synchronization / provisioning stage rather than within the Work runtime itself.
If additional logs, diagnostics, or testing would be useful, I'm happy to provide them.
I can confirm that this issue is still present on Windows with desktop app version 26.721.4979.0.
It reproduces both with existing ChatGPT Projects and with a newly created empty Project. Existing Project-backed local chats continue to work, and standalone local Work tasks outside Projects can still be created.
Additional troubleshooting completed with no effect:
Windows Repair
Windows Reset
Sign out and sign back in
Full uninstall
Windows restart
Reinstall
Confirmed that Cloudflare WARP is disconnected
Confirmed that no Windows or WinHTTP proxy is configured
The desktop log still reports:
Could not sync ChatGPT project context
I submitted the affected session and diagnostic information through the desktop app.
I can reproduce this reliably on Windows, and I have narrowed it down to a per-project failure rather than a general Work-mode failure.
Current environment:
Windows 10 Pro
ChatGPT Windows app / Codex integration
Current installed package: OpenAI.Codex_26.803.8161.0
ChatGPT Plus
Failing project
Existing cloud project: My PC & Network
A fresh cloud chat created directly inside this project correctly identifies the project, but attempting to start a local Work session fails with:
Failed to create chat
Could not use this project for a local chat
I reproduced this through multiple launch paths, including:
the in-chat Continue with Work handoff
the chat menu Continue in work mode
Both fail.
An existing genuine Project-bound Work session in the same project still works and reports a local project mirror under:
C:\Users\<username>\.codex\.chatgpt-projects\...
However, no new Project-bound Work session can currently be created for this project.
Control tests
Work mode itself works normally:
A new projectless Work session can be created successfully.
I created a completely new cloud project, Testing Project, created a fresh cloud chat inside it, and successfully started a genuine Project-bound local Work session.
I then tested another long-established existing project, IoT Projects:
created a fresh cloud chat directly inside it;
started Work successfully;
the resulting Work session confirmed the correct project and a local mirror under C:\Users\<username>\.codex\.chatgpt-projects\....
Immediately afterwards, without restarting the app or changing account/network state, I returned to My PC & Network and retried the same operation. It again failed with:
Failed to create chat
Could not use this project for a local chat
So this is a same-session A/B result:
IoT Projects → Work succeeds
My PC & Network → Work fails
Additional observation
Moving an already-created projectless Work chat into My PC & Network makes it appear under the project in the sidebar, but does not convert it into a genuine Project-bound Work session.
The Work agent still reports it as a projectless/generated workspace, whereas genuine Project Work sessions report a .codex\.chatgpt-projects\... mirror and project metadata.
This suggests the failure may involve per-project local mirror / synchronization / project metadata state, rather than Work mode, the account, networking, or all existing projects generally.
The behaviour has also been intermittent: this project has previously been able to create Work sessions, then later stopped doing so.
An existing Work chat in the same project remains usable.
Starting a new Work chat from the same project fails immediately with: このプロジェクトをローカルチャットで使用できませんでした
(English equivalent: "Could not use this project for a local chat")
This is not a general Work failure: the existing Work chat is active and associated with the same project. The failure occurs only when creating an additional project-bound Work chat.
Expected behavior: create another Work chat under the same project and preserve the project context.
This suggests a per-project project-mirror/synchronization issue or a regression in new Work-chat creation, rather than an account-wide Work permission issue. Please investigate whether existing project-bound Work chats can remain usable while creation of new ones fails. I can provide a screenshot if needed.
I had this same error in ChatGPT Desktop on Windows:
Could not use this project for a local chat
ChatGPT project context sync failed — stage=filesystem
After investigating, I found that node_repl.exe and sometimes node.exe running artifact-template-picker/server.mjs were using this folder as their current working directory:
Windows then prevented ChatGPT from renaming or synchronizing the folder.
Stopping only the processes whose working directory matched the affected project immediately allowed me to create a local Work conversation again. Setting a fixed cwd outside .chatgpt-projects for node_repl also helped, but ChatGPT can regenerate the configuration, and the problem may return.
If you have the same issue, give this prompt to Codex:
Diagnose the Windows file lock causing ChatGPT project context sync failed with stage=filesystem. Identify the exact project mirror in %USERPROFILE%\.codex\.chatgpt-projects, find only the Codex node_repl.exe or artifact-template-picker processes locking that folder, back up any configuration before changing it, assign them a stable working directory outside .chatgpt-projects, stop only the confirmed locking processes, and retry without restarting ChatGPT. Do not delete anything or stop every Node process.
Additional Windows testing to investigate the project-context synchronization failure.
I performed a targeted process-working-directory workaround on an affected Project, then ran separate tests to observe when the helper processes start and stop. These were different tests.
Environment: Windows 10 Pro; OpenAI.Codex_26.803.8161.0; ChatGPT Plus.
Targeted workaround test:
I identified the exact affected Project mirror under:
%USERPROFILE%.codex.chatgpt-projects\g-p-...
I confirmed which processes had that mirror as their current working directory, limiting the check to the Codex node_repl.exe and the node.exe helper running artifact-template-picker/server.mjs.
I backed up the Codex configuration before changing it.
I set the global node_repl working directory to a stable location outside .chatgpt-projects.
I stopped only the confirmed mirror-bound helper processes, not every Node process.
Without restarting ChatGPT, I retried creating a new local Work chat in the affected Project.
Result: the error remained. Project-scoped launches later recreated helpers whose working directory was still the Project mirror. This indicates that the global node_repl cwd setting does not control these Project-scoped launches, and this workaround did not resolve the problem in this case.
Separate helper-behaviour monitoring:
I then opened four separate existing Projects and attempted to create a new local Work chat in each solely to observe what triggered the helpers. These were additional monitoring tests, not further executions of the workaround. Each attempt failed immediately with the same project-context/local-chat errors. Each attempt started a node_repl.exe process and an artifact-template-picker/server.mjs helper with the relevant Project mirror as the current working directory. Each helper pair disappeared approximately ten minutes later, without restarting ChatGPT.
Important qualification: I did not directly capture a failed rename. A Windows FileIO trace attempt produced only the trace header/profile markers and no usable filesystem events. The helper working-directory overlap is confirmed, but a root-directory rename or EBUSY/resource-busy failure remains a hypothesis, not a directly observed operation. The failure may occur earlier in provisioning, before any rename is attempted.
Please add diagnostic logging around stage=filesystem that records the exact operation, source/target path, and Windows error, distinguishing root rename, child replacement, lock checking, and earlier project provisioning. This would make it possible to determine whether a rename is actually attempted and why the operation fails. This may also be relevant to #34698.
i am having the same exact problem. once a session starts, delete all node related processes and it lets you start a local session, but to start a second one you need to, again, delete all node related processes. restarting etc. does not help.
Solution/Workaround: Terminate Associated Handles in Resource Monitor
EDIT:@fredtat-byte expanded on my workaround in the comment below this one, even providing a .bat script you can use to automate it, so he's the hero we don't deserve. (The only caveat is that his method is a bit more aggressive in the processes it terminates than mine is, so you might want to try mine to see if it works for you before using his, though unfortunately I don't know how to provide a .bat script to automate my method!)
I've found a way to fix this error — at least, on my machine — without even needing to restart the Desktop App. This method targets only those processes locking project folders, so it's a bit more surgical than terminating all Node processes from the Task Manager. ⚠️WARNING: This process does involve force-terminating processes, which is never entirely without risk, though I've never had any issues and I've been using this technique for about a week now.
Open Resource Monitor: When you encounter the error, don't close the conversation or the app. Instead, hit WIN+R, enter "resmon" into the box, hit Enter to open the Resource Monitor.
Search for Handles Associated with Project Work Folders: In the "CPU" tab, twirl down the "Associated Handles" section, and enter the name of your projects subfolder into the search bar (my projects are stored in C:\Users\Owner\.codex\.chatgpt-projects\**, so I search for ".chatgpt-projects" — unless you've changed the project folder location, try this as it's likely the same for you).
Force-Terminate Associated Node Handles: Select all node.exe and node_repl.exe entries in the search result, right-click, select "End Process" and confirm. (If you are trying to keep multiple local projects open simultaneously, you might want to only terminate those associated with the project you're trying to unlock, in which case look to the "Handle Name" column for the specific folder the handle is targeting).
Return to the App & Resend Your Prompt: The great part about this technique is that you don't need to restart the Desktop App – just go back in and resend your prompt. The error should be gone and you should be able to work locally.
I think we may have narrowed this issue down a little further.
Credit to the user above who discovered that terminating the Node processes associated with the .chatgpt-projects folder clears the error. That gave me the clue to dig into what ChatGPT Work was actually leaving running in the background.
On my Windows machine, I checked the active Node processes with PowerShell:
After running that command, I did not have to close ChatGPT, restart the Desktop App, or create a new conversation.
I simply went back to the existing conversation, resent the prompt, and Work/local mode started working again.
So the current workaround that is working reliably for me is:
Leave ChatGPT open when the "can't run in this chat" / local Work error occurs.
Open PowerShell.
Run:
Get-Process node,node_repl -ErrorAction SilentlyContinue | Stop-Process -Force
Return to the same ChatGPT conversation.
Resend the prompt.
That appears to force the local Work/Node environment to restart cleanly.
One important warning
This is the "chainsaw" version of the fix.
Other applications can also use Node.js. On my machine, for example, Adobe Creative Cloud had its own node.exe processes running.
So before running the command, save your work in Adobe apps, development tools, or anything else that may be using Node.
I also created a simple Windows batch file so I can reset it with one click:
echo ChatGPT Work Node processes have been reset.
echo Go back to ChatGPT and resend your prompt.
pause
I put that on my desktop as:
Reset ChatGPT Work.bat
Now when the issue happens, I save anything important, double-click the file, go back to ChatGPT, and resend.
Based on this behavior, my guess is that the issue is not actually the conversation becoming permanently incompatible with Work mode. It looks more like one or more background Node processes related to the local Work environment are getting stuck or holding stale state. Killing them allows ChatGPT to spawn a clean runtime and reconnect the existing conversation.
So the original handle-killing workaround was definitely pointing in the right direction. On my system, though, killing only the .chatgpt-projects processes wasn't enough...resetting all Node/Node REPL processes was what finally cleared it.
I have now reproduced and tested a narrower variant of the Node-runtime workaround on Windows, and it worked without restarting ChatGPT.
The useful distinction seems to be that it is not necessary to kill every node.exe on the machine. On my system the affected Work/Codex processes were all using OpenAI's bundled Node runtime under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\...
I first inspected the live process tree with Win32_Process. The failing state had 15 node.exe / node_repl.exe processes from that OpenAI runtime. They were parented directly or indirectly by OpenAI codex.exe under:
%LOCALAPPDATA%\OpenAI\Codex\bin\...
I then terminated only those OpenAI-owned Node runtime processes, leaving ChatGPT open and leaving unrelated Node processes alone (including a separate Node runtime being used by another application).
After the reset:
ChatGPT itself remained open.
The existing Project conversation remained intact.
A Work handoff from that same Project conversation succeeded immediately with no error.
I then tested creating a separate new Work chat inside Project scope and that also succeeded.
No app restart or Project reset was required.
So this is consistent with the theory from the comments above that stale local Work/Codex Node runtime state is involved, rather than the Project/conversation becoming permanently incompatible with Work.
A safer selection rule than taskkill /IM node.exe is therefore:
Enumerate node.exe and node_repl.exe.
Keep only processes whose ExecutablePath starts with %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node.
Optionally verify that their process ancestry reaches codex.exe under %LOCALAPPDATA%\OpenAI\Codex\bin.
Terminate only those PIDs.
The core PowerShell logic I tested was equivalent to:
This is still a force-termination workaround, so it should not be used while a local Work/Codex task is actively executing. But it is materially less destructive than killing all Node processes on Windows, and in my test it restored Project-scoped Work immediately.
Environment observed during this test included the Windows OpenAI Codex package 26.908.3777.0.
I have now reproduced this repeatedly on Windows using the affected Project's exact local mirror.
Reproduce "Could not use this project for a local chat" in a specific ChatGPT Project.
Identify the corresponding %USERPROFILE%\.codex\.chatgpt-projects\g-p-* mirror.
Confirm that node.exe / node_repl.exe processes hold handles to that exact mirror.
Terminate only those holder processes — not codex.exe, and not unrelated Node processes.
Retry Project → Work immediately in the same ChatGPT instance.
This targeted per-mirror technique was described by @Eunomiac. The Work session then starts successfully. Opening that replacement Work session itself respawns a new group of node.exe / node_repl.exe processes which again holds handles to that Project mirror. This explains why the targeted reset is a temporary recovery step rather than a lasting repair. I have repeated this across affected Projects.
This differs from the earlier global-CWD workaround: it is a targeted per-mirror reset, and it supports a stale helper/mirror-handle cycle as the practical cause of the failure. I have not needed to use the broader OpenAI-owned helper reset described by @andrewcdobbins: limiting termination to node.exe / node_repl.exe under the OpenAI CUA runtime that have a codex.exe ancestor.
I still have not captured the actual failing filesystem operation, so I would not yet assert that it is specifically a directory rename. Diagnostic logging of the exact operation, source/destination paths, native Windows error, and helper PID would be valuable.
Operationally, terminating these helpers may interrupt active Work activity, so save any active work first.
Update: I can now create and use new local Work chats inside the affected ChatGPT Project. Credit where it's due: GPT-6 Astra with Ultra reasoning diagnosed the issue, implemented a local workaround, and verified it on my machine. Pretty satisfying to have it fix the problem that was stopping me from using it!
For anyone investigating the same error, here's what we found on Windows x64 with installed package version 26.908.4834.0.
The failure happened during project-context sync, with stage=filesystem. The app stages a replacement for the local project mirror under:
Inspection of the installed sync code showed that it renames the existing mirror and swaps in the replacement. On my machine, draft helper processes—node_repl, cua_repl, and openai_artifact_template_picker—were using that mirror as their working directory. A controlled rename probe failed while those directory handles were present and passed after they were released.
This explains why stopping Node processes did not give me a lasting fix: stopping the identified helpers temporarily released the lock, but starting another draft recreated it.
Start those helpers from a stable directory outside the replaceable project mirror.
Keep the project-specific helper settings outside the mirror too, with the mirror's .codex directory implemented as a Windows directory junction pointing to that external settings folder.
That second part mattered. An earlier attempt using a normal project-local .codex\config.toml moved the helpers, but the core codex.exe configuration watcher then held the mirror's .codex directory open. Moving the settings behind the junction put that watcher handle outside the mirror as well. The installed sync implementation preserves the junction when it replaces the mirror.
For cua_repl, the launcher also preserves the complete current app-managed command, arguments, and environment by reading the installed plugin configuration at startup. A simplified override initially broke helper initialization; retaining the required environment, including current native-pipe information, was necessary.
Verification included all three helpers becoming ready, no remaining open handles in the mirror, and a successful mirror rename/restore while the backend and helpers were still running. Cached source-file hashes stayed unchanged. I then personally created a new local Work chat in the project and received a response.
This is a workaround verified on my installation; its helper paths and configuration are version-specific. An upstream fix should account for helper working directories and configuration watchers when replacing project mirrors on Windows.
One separate issue remains: I still see “4 project files could not be synced; the task may have incomplete context.” New chat creation now works, but this repair did not resolve the four project-file sync failures.
Installed Windows desktop package: OpenAI.Codex_26.917.9434.0_x64.
Desktop-managed Core: 0.155.0-alpha.16.4.
Native Windows desktop execution; no WSL involved in this investigation.
Symptom
Existing local tasks continued working. Creating a new local Work task in the same ChatGPT Project failed with “Could not use this project for a local chat.” Reselecting the project and restarting the app had not fixed it.
The affected mirror was under the generic location:
OpenAI-managed node.exe / node_repl.exe helpers were using that mirror as their working directory. We moved helper startup CWDs to an external stable directory and placed project-specific MCP settings outside the mirror, accessed through a .codex directory junction. The CUA launcher preserved the managed command, arguments and environment. Configuration merging and actual replacement-process CWDs were verified.
We stopped only three individually verified OpenAI helper processes holding the affected mirror. Unrelated Node processes, the desktop app and Core stayed running. A read-only directory-open probe requesting DELETE access with read/write/delete sharing changed from Windows error 32 to success.
New-task creation still failed. Helpers now started outside the mirror and reported ready, but the app still logged:
Read-only handle inspection found that Core still held four descendant-directory handles inside the mirror. Their paths matched four saved file-preview tabs in two older tasks. The configuration watcher had already moved outside the mirror.
The user closed those file tabs using their individual close buttons. Merely collapsing the side panel had left the saved tabs in place. The app logged successful fs/unwatch responses with errorCode=null, and all four descendant handles disappeared.
Without restarting the app or killing Core, two consecutive new local tasks in the original project then succeeded.
Why checking only the root directory can miss this
A separate disposable-directory experiment used directory handles with access 0x100081 and read/write/delete sharing:
Open handle
Parent directory rename
On the root directory itself
Succeeded
On a descendant directory
Failed with Windows error 5
Descendant handle closed
Succeeded
The test did not rename or modify the actual project mirror. We never forcibly closed another process's handles.
Read-only inspection of the installed application indicated that project sync renames/replaces the mirror, and file previews create and remove fs/watch / fs/unwatch subscriptions. Together with the before/after UI results, the evidence strongly supports retained descendant-directory watchers as the remaining blocker in this case. The app did not log its underlying native filesystem error or exact failing operation, so the isolated experiment's error 5 should not be mistaken for an error captured from the app itself.
Verification
Two new tasks were created through the original project UI.
Both executed (Get-Location).Path successfully, with exit code 0 and the original project's exact mirror path.
An older task also completed a fresh local directory-read test.
SHA-256 comparison against a pre-repair inventory found no changed or missing original files.
The mirror root's creation time changed during successful sync, while the external-settings junction survived.
No app-data reset, internal database edits, project-file deletion or blanket Node termination was performed.
This is a verified recovery on one installation, not a permanent upstream fix. Persistence across app updates/restarts has not been verified, and reopening mirror-resident previews could recreate the blocking handles. Helper/plugin paths in the workaround are version-dependent.
Suggested upstream investigation
Please include file-preview and configuration watchers, including retained tabs in older tasks, in the lifecycle of project-mirror replacement. Potential fixes should ensure helper CWDs are outside replaceable mirrors and release/re-establish application-owned descendant watches around replacement. Logging the actual filesystem operation and native error, with redacted paths, would make failures diagnosable.
A regression scenario should cover: an existing project with an open preview of a nested file; collapsed/retained preview tabs; starting successive local tasks; and helpers already configured outside the mirror.
Privacy: This report contains only generalized paths, software versions, sanitized diagnostic facts and verification results. No raw logs, configuration files, conversation exports, project names/IDs, task IDs, usernames, emails, credentials or business content are attached.
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Jul 21, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Yemvis commentedon Jul 22, 2026
I can reproduce the same issue on the Windows desktop app.
Reproduction:
Could not sync ChatGPT project contextCould not use this project for a local chatRestarting the app and repeating the flow does not help. A standalone local chat outside the ChatGPT Project works, so local folder access itself is not the problem.
This is particularly confusing because the UI explicitly offers New local chat inside the Project and walks the user through the Add project flow. The expected result is a chat that keeps the Project instructions/files while executing on the local computer. Instead, the chat is never created, which blocks local tasks such as SSH and terminal work that depend on the Project context.
Please prioritize this regression or provide a supported workaround that preserves the ChatGPT Project context.
Paul722 commentedon Jul 22, 2026
Paul722 commentedon Jul 22, 2026
uooing commentedon Jul 23, 2026
Same issue on a newer build — still reproducing as of 2026-07-23.
Environment:
Errors (identical, shown immediately, chat is not created):
(Korean UI string, equivalent of "Could not use this project for a local chat")
Repro:
Scope confirmed:
Tried with no effect: full reinstall, app reset, sign out/in, Windows Defender exclusion.
Feedback ID: no-active-thread-019f8ed6-2d1c-7180-abe0-ff5c98948fed
Paul722 commentedon Jul 23, 2026
SilentCogitator commentedon Jul 23, 2026
Same issue.
When I try to create a Work chat inside an existing ChatGPT Project, I immediately receive errors such as:
"Could not sync ChatGPT project context"
"Could not use this project for a local chat"
The Work chat is not created.
Fresh Windows 11 install.
Chat GPT:
Version 26.715.72359
Released 22 Jul 2026
cata078 commentedon Jul 25, 2026
I can confirm the same issue on Windows.
Environment:
26.721.4979.0Exact errors:
Could not sync ChatGPT project contextCould not use this project for a local chatTroubleshooting already completed:
The issue still persists.
In my case, the problem became apparent after the OpenAI service disruption on July 25, 2026. During that period, I was working on an existing project and also experienced a project conversation/task no longer appearing where expected.
In-app feedback was submitted with session logs.
Feedback ID:
019f9a91-3daf-7fc1-8a8e-1752353bc596I can provide screenshots showing both errors if needed.
Trippinlefty commentedon Jul 26, 2026
I can confirm this issue is still present on a newer desktop build and wanted to share some additional testing that may help narrow down the root cause.
Environment
Testing Performed
Existing Project Work Chats Still Function
One important observation is that previously created Project-backed Work chats continue to function normally.
For example, an older Work chat is still rooted in:
It can execute commands, access the mirrored project, and otherwise behaves normally.
The issue appears to affect only the creation of new Project-backed Work chats.
Desktop Log Evidence
The desktop logs consistently contain:
In one captured sequence, the application attempts to retrieve the Project and receives:
Immediately afterward, the logs report:
followed by:
Additional Investigation
To further isolate the issue, I verified the following:
This suggests the
.chatgpt-projectsmirror itself is healthy, since previously provisioned Work sessions continue to operate normally.Summary
Based on testing, this does not appear to be a failure of Work mode itself because:
From the observed behavior, it appears the failure occurs during the Project → Work context synchronization / provisioning stage rather than within the Work runtime itself.
If additional logs, diagnostics, or testing would be useful, I'm happy to provide them.
ftarari commentedon Jul 28, 2026
I can confirm that this issue is still present on Windows with desktop app version
26.721.4979.0.It reproduces both with existing ChatGPT Projects and with a newly created empty Project. Existing Project-backed local chats continue to work, and standalone local Work tasks outside Projects can still be created.
Additional troubleshooting completed with no effect:
The desktop log still reports:
Could not sync ChatGPT project contextI submitted the affected session and diagnostic information through the desktop app.
Feedback/session ID:
019fa5fc-71b2-7040-aeb1-3cea9f46e3cb6 remaining items
maddavo commentedon Aug 13, 2026
I can reproduce this reliably on Windows, and I have narrowed it down to a per-project failure rather than a general Work-mode failure.
Current environment:
OpenAI.Codex_26.803.8161.0Failing project
Existing cloud project: My PC & Network
A fresh cloud chat created directly inside this project correctly identifies the project, but attempting to start a local Work session fails with:
Failed to create chatCould not use this project for a local chatI reproduced this through multiple launch paths, including:
Both fail.
An existing genuine Project-bound Work session in the same project still works and reports a local project mirror under:
C:\Users\<username>\.codex\.chatgpt-projects\...However, no new Project-bound Work session can currently be created for this project.
Control tests
Work mode itself works normally:
A new projectless Work session can be created successfully.
I created a completely new cloud project, Testing Project, created a fresh cloud chat inside it, and successfully started a genuine Project-bound local Work session.
I then tested another long-established existing project, IoT Projects:
C:\Users\<username>\.codex\.chatgpt-projects\....Immediately afterwards, without restarting the app or changing account/network state, I returned to My PC & Network and retried the same operation. It again failed with:
Failed to create chatCould not use this project for a local chatSo this is a same-session A/B result:
Additional observation
Moving an already-created projectless Work chat into My PC & Network makes it appear under the project in the sidebar, but does not convert it into a genuine Project-bound Work session.
The Work agent still reports it as a projectless/generated workspace, whereas genuine Project Work sessions report a
.codex\.chatgpt-projects\...mirror and project metadata.This suggests the failure may involve per-project local mirror / synchronization / project metadata state, rather than Work mode, the account, networking, or all existing projects generally.
The behaviour has also been intermittent: this project has previously been able to create Work sessions, then later stopped doing so.
ajrobb commentedon Aug 21, 2026
Can confirm that this still is not working for the latest Windows Desktop App on a Pro subscription. Reverted to using web interface for now.
BarryK2026 commentedon Aug 30, 2026
I am having the exact same issue.
SwaroopKamble07 commentedon Aug 31, 2026
Still having the same issue on the latest version of the ChatGPT app on Windows 11 with a Plus subscription :/
ajrobb commentedon Sep 2, 2026
So is this ever going to get fixed?
shoishiwata-hdj commentedon Sep 3, 2026
I can reproduce this with a more specific state:
コペンハーゲン旅行このプロジェクトをローカルチャットで使用できませんでした(English equivalent: "Could not use this project for a local chat")
This is not a general Work failure: the existing Work chat is active and associated with the same project. The failure occurs only when creating an additional project-bound Work chat.
Expected behavior: create another Work chat under the same project and preserve the project context.
This suggests a per-project project-mirror/synchronization issue or a regression in new Work-chat creation, rather than an account-wide Work permission issue. Please investigate whether existing project-bound Work chats can remain usable while creation of new ones fails. I can provide a screenshot if needed.
EmT547 commentedon Sep 6, 2026
Temporary fix
I had this same error in ChatGPT Desktop on Windows:
After investigating, I found that
node_repl.exeand sometimesnode.exerunningartifact-template-picker/server.mjswere using this folder as their current working directory:%USERPROFILE%\.codex\.chatgpt-projects\<project-id>Windows then prevented ChatGPT from renaming or synchronizing the folder.
Stopping only the processes whose working directory matched the affected project immediately allowed me to create a local Work conversation again. Setting a fixed
cwdoutside.chatgpt-projectsfornode_replalso helped, but ChatGPT can regenerate the configuration, and the problem may return.If you have the same issue, give this prompt to Codex:
Similar report: [OpenAI Community](https://community.openai.com/t/codex-could-not-use-this-project-for-a-local-chat-repair/1392960)
A permanent fix would be for every bundled Node helper to start with a neutral working directory outside the project mirror.
maddavo commentedon Sep 7, 2026
Additional Windows testing to investigate the project-context synchronization failure.
I performed a targeted process-working-directory workaround on an affected Project, then ran separate tests to observe when the helper processes start and stop. These were different tests.
Environment: Windows 10 Pro; OpenAI.Codex_26.803.8161.0; ChatGPT Plus.
Targeted workaround test:
%USERPROFILE%.codex.chatgpt-projects\g-p-...
I confirmed which processes had that mirror as their current working directory, limiting the check to the Codex node_repl.exe and the node.exe helper running artifact-template-picker/server.mjs.
I backed up the Codex configuration before changing it.
I set the global node_repl working directory to a stable location outside .chatgpt-projects.
I stopped only the confirmed mirror-bound helper processes, not every Node process.
Without restarting ChatGPT, I retried creating a new local Work chat in the affected Project.
Result: the error remained. Project-scoped launches later recreated helpers whose working directory was still the Project mirror. This indicates that the global node_repl cwd setting does not control these Project-scoped launches, and this workaround did not resolve the problem in this case.
Separate helper-behaviour monitoring:
I then opened four separate existing Projects and attempted to create a new local Work chat in each solely to observe what triggered the helpers. These were additional monitoring tests, not further executions of the workaround. Each attempt failed immediately with the same project-context/local-chat errors. Each attempt started a node_repl.exe process and an artifact-template-picker/server.mjs helper with the relevant Project mirror as the current working directory. Each helper pair disappeared approximately ten minutes later, without restarting ChatGPT.
Important qualification: I did not directly capture a failed rename. A Windows FileIO trace attempt produced only the trace header/profile markers and no usable filesystem events. The helper working-directory overlap is confirmed, but a root-directory rename or EBUSY/resource-busy failure remains a hypothesis, not a directly observed operation. The failure may occur earlier in provisioning, before any rename is attempted.
Please add diagnostic logging around stage=filesystem that records the exact operation, source/target path, and Windows error, distinguishing root rename, child replacement, lock checking, and earlier project provisioning. This would make it possible to determine whether a rename is actually attempted and why the operation fails. This may also be relevant to #34698.
cemilselcuk commentedon Sep 11, 2026
i am having the same exact problem. once a session starts, delete all node related processes and it lets you start a local session, but to start a second one you need to, again, delete all node related processes. restarting etc. does not help.
Eunomiac commentedon Sep 11, 2026
Solution/Workaround: Terminate Associated Handles in Resource Monitor
I've found a way to fix this error — at least, on my machine — without even needing to restart the Desktop App. This method targets only those processes locking project folders, so it's a bit more surgical than terminating all Node processes from the Task Manager.⚠️ WARNING: This process does involve force-terminating processes, which is never entirely without risk, though I've never had any issues and I've been using this technique for about a week now.
WIN+R, enter "resmon" into the box, hitEnterto open the Resource Monitor.C:\Users\Owner\.codex\.chatgpt-projects\**, so I search for ".chatgpt-projects" — unless you've changed the project folder location, try this as it's likely the same for you).node.exeandnode_repl.exeentries in the search result, right-click, select "End Process" and confirm. (If you are trying to keep multiple local projects open simultaneously, you might want to only terminate those associated with the project you're trying to unlock, in which case look to the "Handle Name" column for the specific folder the handle is targeting).fredtat-byte commentedon Sep 11, 2026
I think we may have narrowed this issue down a little further.
Credit to the user above who discovered that terminating the Node processes associated with the .chatgpt-projects folder clears the error. That gave me the clue to dig into what ChatGPT Work was actually leaving running in the background.
On my Windows machine, I checked the active Node processes with PowerShell:
Get-CimInstance Win32_Process |
Where-Object {$_.Name -match "node"} |
Select-Object ProcessId, ParentProcessId, Name, CommandLine |
Format-List
That showed several ChatGPT/Codex-related node.exe and node_repl.exe processes, including processes whose working directory was inside:
C:\Users<username>.codex.chatgpt-projects\
At first, I tried the more surgical approach of terminating only the Node processes whose command line referenced .chatgpt-projects.
Interestingly, that did NOT fix the problem on my system.
What did work immediately was terminating all currently running node.exe and node_repl.exe processes:
Get-Process node,node_repl -ErrorAction SilentlyContinue | Stop-Process -Force
After running that command, I did not have to close ChatGPT, restart the Desktop App, or create a new conversation.
I simply went back to the existing conversation, resent the prompt, and Work/local mode started working again.
So the current workaround that is working reliably for me is:
Leave ChatGPT open when the "can't run in this chat" / local Work error occurs.
Open PowerShell.
Run:
Get-Process node,node_repl -ErrorAction SilentlyContinue | Stop-Process -Force
Return to the same ChatGPT conversation.
Resend the prompt.
That appears to force the local Work/Node environment to restart cleanly.
One important warning
This is the "chainsaw" version of the fix.
Other applications can also use Node.js. On my machine, for example, Adobe Creative Cloud had its own node.exe processes running.
So before running the command, save your work in Adobe apps, development tools, or anything else that may be using Node.
I also created a simple Windows batch file so I can reset it with one click:
@echo off
title Reset ChatGPT Work
taskkill /F /IM node.exe >nul 2>&1
taskkill /F /IM node_repl.exe >nul 2>&1
echo ChatGPT Work Node processes have been reset.
echo Go back to ChatGPT and resend your prompt.
pause
I put that on my desktop as:
Reset ChatGPT Work.bat
Now when the issue happens, I save anything important, double-click the file, go back to ChatGPT, and resend.
Based on this behavior, my guess is that the issue is not actually the conversation becoming permanently incompatible with Work mode. It looks more like one or more background Node processes related to the local Work environment are getting stuck or holding stale state. Killing them allows ChatGPT to spawn a clean runtime and reconnect the existing conversation.
So the original handle-killing workaround was definitely pointing in the right direction. On my system, though, killing only the .chatgpt-projects processes wasn't enough...resetting all Node/Node REPL processes was what finally cleared it.
andrewcdobbins commentedon Sep 11, 2026
I have now reproduced and tested a narrower variant of the Node-runtime workaround on Windows, and it worked without restarting ChatGPT.
The useful distinction seems to be that it is not necessary to kill every
node.exeon the machine. On my system the affected Work/Codex processes were all using OpenAI's bundled Node runtime under:I first inspected the live process tree with
Win32_Process. The failing state had 15node.exe/node_repl.exeprocesses from that OpenAI runtime. They were parented directly or indirectly by OpenAIcodex.exeunder:I then terminated only those OpenAI-owned Node runtime processes, leaving ChatGPT open and leaving unrelated Node processes alone (including a separate Node runtime being used by another application).
After the reset:
So this is consistent with the theory from the comments above that stale local Work/Codex Node runtime state is involved, rather than the Project/conversation becoming permanently incompatible with Work.
A safer selection rule than
taskkill /IM node.exeis therefore:node.exeandnode_repl.exe.ExecutablePathstarts with%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node.codex.exeunder%LOCALAPPDATA%\OpenAI\Codex\bin.The core PowerShell logic I tested was equivalent to:
This is still a force-termination workaround, so it should not be used while a local Work/Codex task is actively executing. But it is materially less destructive than killing all Node processes on Windows, and in my test it restored Project-scoped Work immediately.
Environment observed during this test included the Windows OpenAI Codex package
26.908.3777.0.maddavo commentedon Sep 11, 2026
I have now reproduced this repeatedly on Windows using the affected Project's exact local mirror.
%USERPROFILE%\.codex\.chatgpt-projects\g-p-*mirror.node.exe/node_repl.exeprocesses hold handles to that exact mirror.codex.exe, and not unrelated Node processes.This targeted per-mirror technique was described by @Eunomiac. The Work session then starts successfully. Opening that replacement Work session itself respawns a new group of
node.exe/node_repl.exeprocesses which again holds handles to that Project mirror. This explains why the targeted reset is a temporary recovery step rather than a lasting repair. I have repeated this across affected Projects.This differs from the earlier global-CWD workaround: it is a targeted per-mirror reset, and it supports a stale helper/mirror-handle cycle as the practical cause of the failure. I have not needed to use the broader OpenAI-owned helper reset described by @andrewcdobbins: limiting termination to
node.exe/node_repl.exeunder the OpenAI CUA runtime that have acodex.exeancestor.I made a small Windows PowerShell GUI for this test. It lists local Project mirrors by name, shows verified
node.exe/node_repl.exeholders for a selected mirror using Sysinternals Handle, and terminates only those selected holder PIDs. It does not rename or modify project-mirror files: https://gist.github.com/maddavo/c479dc37047362b803b7836b93e07b69I still have not captured the actual failing filesystem operation, so I would not yet assert that it is specifically a directory rename. Diagnostic logging of the exact operation, source/destination paths, native Windows error, and helper PID would be valuable.
Operationally, terminating these helpers may interrupt active Work activity, so save any active work first.
fluidcity commentedon Sep 12, 2026
Update: I can now create and use new local Work chats inside the affected ChatGPT Project. Credit where it's due: GPT-6 Astra with Ultra reasoning diagnosed the issue, implemented a local workaround, and verified it on my machine. Pretty satisfying to have it fix the problem that was stopping me from using it!
For anyone investigating the same error, here's what we found on Windows x64 with installed package version
26.908.4834.0.The failure happened during project-context sync, with
stage=filesystem. The app stages a replacement for the local project mirror under:Inspection of the installed sync code showed that it renames the existing mirror and swaps in the replacement. On my machine, draft helper processes—
node_repl,cua_repl, andopenai_artifact_template_picker—were using that mirror as their working directory. A controlled rename probe failed while those directory handles were present and passed after they were released.This explains why stopping Node processes did not give me a lasting fix: stopping the identified helpers temporarily released the lock, but starting another draft recreated it.
This is consistent with the directory-lock analysis earlier in this thread. The working repair on my machine had two parts:
.codexdirectory implemented as a Windows directory junction pointing to that external settings folder.That second part mattered. An earlier attempt using a normal project-local
.codex\config.tomlmoved the helpers, but the corecodex.execonfiguration watcher then held the mirror's.codexdirectory open. Moving the settings behind the junction put that watcher handle outside the mirror as well. The installed sync implementation preserves the junction when it replaces the mirror.The resulting layout is approximately:
For
cua_repl, the launcher also preserves the complete current app-managed command, arguments, and environment by reading the installed plugin configuration at startup. A simplified override initially broke helper initialization; retaining the required environment, including current native-pipe information, was necessary.Verification included all three helpers becoming ready, no remaining open handles in the mirror, and a successful mirror rename/restore while the backend and helpers were still running. Cached source-file hashes stayed unchanged. I then personally created a new local Work chat in the project and received a response.
This is a workaround verified on my installation; its helper paths and configuration are version-specific. An upstream fix should account for helper working directories and configuration watchers when replacing project mirrors on Windows.
One separate issue remains: I still see “4 project files could not be synced; the task may have incomplete context.” New chat creation now works, but this repair did not resolve the four project-file sync failures.
Lirius commentedon Sep 25, 2026
Additional verified Windows case: file-preview watchers remained a blocker after moving Node helpers out of the project mirror
This adds a file-preview watcher finding to the external helper/config directory workaround described above.
Environment
10.0.19045.0.OpenAI.Codex_26.917.9434.0_x64.0.155.0-alpha.16.4.Symptom
Existing local tasks continued working. Creating a new local Work task in the same ChatGPT Project failed with “Could not use this project for a local chat.” Reselecting the project and restarting the app had not fixed it.
The affected mirror was under the generic location:
Observed sequence
node.exe/node_repl.exehelpers were using that mirror as their working directory. We moved helper startup CWDs to an external stable directory and placed project-specific MCP settings outside the mirror, accessed through a.codexdirectory junction. The CUA launcher preserved the managed command, arguments and environment. Configuration merging and actual replacement-process CWDs were verified.fs/unwatchresponses witherrorCode=null, and all four descendant handles disappeared.Why checking only the root directory can miss this
A separate disposable-directory experiment used directory handles with access
0x100081and read/write/delete sharing:The test did not rename or modify the actual project mirror. We never forcibly closed another process's handles.
Read-only inspection of the installed application indicated that project sync renames/replaces the mirror, and file previews create and remove
fs/watch/fs/unwatchsubscriptions. Together with the before/after UI results, the evidence strongly supports retained descendant-directory watchers as the remaining blocker in this case. The app did not log its underlying native filesystem error or exact failing operation, so the isolated experiment's error 5 should not be mistaken for an error captured from the app itself.Verification
(Get-Location).Pathsuccessfully, with exit code 0 and the original project's exact mirror path.This is a verified recovery on one installation, not a permanent upstream fix. Persistence across app updates/restarts has not been verified, and reopening mirror-resident previews could recreate the blocking handles. Helper/plugin paths in the workaround are version-dependent.
Suggested upstream investigation
Please include file-preview and configuration watchers, including retained tabs in older tasks, in the lifecycle of project-mirror replacement. Potential fixes should ensure helper CWDs are outside replaceable mirrors and release/re-establish application-owned descendant watches around replacement. Logging the actual filesystem operation and native error, with redacted paths, would make failures diagnosable.
A regression scenario should cover: an existing project with an open preview of a nested file; collapsed/retained preview tabs; starting successive local tasks; and helpers already configured outside the mirror.
Privacy: This report contains only generalized paths, software versions, sanitized diagnostic facts and verification results. No raw logs, configuration files, conversation exports, project names/IDs, task IDs, usernames, emails, credentials or business content are attached.