Skip to content

Cannot create a local Work chat inside a ChatGPT Project (Windows Desktop App) #34499

Open

Description

@Paul722

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.

Activity

  1. added
    app
    on Jul 21, 2026
  2. added
    bug
    windows-os
    session
    on Jul 21, 2026
  3. github-actions commented on Jul 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. Yemvis commented on Jul 22, 2026

    @Yemvis

    I can reproduce the same issue on the Windows desktop app.

    Reproduction:

    1. Open an existing ChatGPT Project.
    2. Choose New local chat.
    3. Select On my computer.
    4. Choose a local folder.
    5. When prompted to use the Project context locally, click Add project.
    6. 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.

  5. Paul722 commented on Jul 22, 2026

    @Paul722
    Author
  6. Paul722 commented on Jul 22, 2026

    @Paul722
    Author
  7. uooing commented on Jul 23, 2026

    @uooing

    Same issue on a newer build — still reproducing as of 2026-07-23.

    Environment:

    • App build: 26.715.72359 (released 2026-07-22) — newer than the 26.715.61943 in the original report
    • Store package version: 26.715.10079.0
    • Platform: Windows, Korean UI
    • Plan: ChatGPT Plus

    Errors (identical, shown immediately, chat is not created):

    • "Could not sync ChatGPT project context"
    • "이 프로젝트를 로컬 작업에 사용할 수 없습니다"
      (Korean UI string, equivalent of "Could not use this project for a local chat")

    Repro:

    1. Open a Project in the Windows desktop app
    2. New Task inside the Project
    3. Set mode to Work
    4. Both errors appear instantly

    Scope confirmed:

    • Fails ONLY inside a Project. Work mode works normally in a chat outside Projects.
    • Same account works correctly on chatgpt.com (web).

    Tried with no effect: full reinstall, app reset, sign out/in, Windows Defender exclusion.

    Feedback ID: no-active-thread-019f8ed6-2d1c-7180-abe0-ff5c98948fed

  8. Paul722 commented on Jul 23, 2026

    @Paul722
    Author
  9. SilentCogitator commented on Jul 23, 2026

    @SilentCogitator

    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

  10. cata078 commented on Jul 25, 2026

    @cata078

    I can confirm the same issue on Windows.

    Environment:

    • Codex App version: 26.721.4979.0
    • Windows desktop application
    • 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.

  11. Trippinlefty commented on Jul 26, 2026

    @Trippinlefty

    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:

    C:\Users\<username>\.codex\.chatgpt-projects\g-p-...
    

    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:

    Could not sync ChatGPT project context
    

    In one captured sequence, the application attempts to retrieve the Project and receives:

    GET /gizmos/g-p-...
    
    404
    "This project can't be found. Check the link and try again."
    

    Immediately afterward, the logs report:

    Could not sync ChatGPT project context
    

    followed by:

    Could not use this project for a local chat
    

    Additional Investigation

    To further isolate the issue, I verified the following:

    • Existing Project-backed Work chats continue to function correctly.
    • Standalone (non-Project) Work chats can still be created successfully.
    • The problem reproduces across multiple existing Projects.
    • The problem also reproduces in newly created empty Projects.
    • Existing Project-backed Work chats remain rooted in:
    C:\Users\<username>\.codex\.chatgpt-projects\g-p-...
    

    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.

  12. ftarari commented on Jul 28, 2026

    @ftarari

    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.

    Feedback/session ID: 019fa5fc-71b2-7040-aeb1-3cea9f46e3cb

  13. 6 remaining items

  14. maddavo commented on Aug 13, 2026

    @maddavo

    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:

    1. A new projectless Work session can be created successfully.

    2. 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.

    3. 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\....
    4. 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.

  15. ajrobb commented on Aug 21, 2026

    @ajrobb

    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.

  16. BarryK2026 commented on Aug 30, 2026

    @BarryK2026

    I am having the exact same issue.

  17. SwaroopKamble07 commented on Aug 31, 2026

    @SwaroopKamble07

    Still having the same issue on the latest version of the ChatGPT app on Windows 11 with a Plus subscription :/

  18. ajrobb commented on Sep 2, 2026

    @ajrobb

    So is this ever going to get fixed?

  19. shoishiwata-hdj commented on Sep 3, 2026

    @shoishiwata-hdj

    I can reproduce this with a more specific state:

    • Windows desktop app
    • Existing ChatGPT Project: コペンハーゲン旅行
    • 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.

  20. EmT547 commented on Sep 6, 2026

    @EmT547

    Temporary fix

    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:

    %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 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.

    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.

  21. maddavo commented on Sep 7, 2026

    @maddavo

    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:

    1. I identified the exact affected Project mirror under:

    %USERPROFILE%.codex.chatgpt-projects\g-p-...

    1. 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.

    2. I backed up the Codex configuration before changing it.

    3. I set the global node_repl working directory to a stable location outside .chatgpt-projects.

    4. I stopped only the confirmed mirror-bound helper processes, not every Node process.

    5. 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.

  22. cemilselcuk commented on Sep 11, 2026

    @cemilselcuk

    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.

  23. Eunomiac commented on Sep 11, 2026

    @Eunomiac

    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.

    1. 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.
    2. 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).
    3. 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).
    4. 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.
  24. fredtat-byte commented on Sep 11, 2026

    @fredtat-byte

    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.

  25. andrewcdobbins commented on Sep 11, 2026

    @andrewcdobbins

    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:

    1. Enumerate node.exe and node_repl.exe.
    2. Keep only processes whose ExecutablePath starts with %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node.
    3. Optionally verify that their process ancestry reaches codex.exe under %LOCALAPPDATA%\OpenAI\Codex\bin.
    4. Terminate only those PIDs.

    The core PowerShell logic I tested was equivalent to:

    $runtimeRoot = Join-Path $env:LOCALAPPDATA 'OpenAI\Codex\runtimes\cua_node'
    $codexBinRoot = Join-Path $env:LOCALAPPDATA 'OpenAI\Codex\bin'
    
    $processes = Get-CimInstance Win32_Process |
        Select-Object ProcessId, ParentProcessId, Name, ExecutablePath, CommandLine
    
    $map = @{}
    foreach ($p in $processes) { $map[[int]$p.ProcessId] = $p }
    
    function Test-CodexAncestor {
        param([int]$StartPid)
        $current = $StartPid
        for ($i = 0; $i -lt 12; $i++) {
            $p = $map[$current]
            if (-not $p) { return $false }
            if ($p.Name -ieq 'codex.exe' -and $p.ExecutablePath -and
                $p.ExecutablePath.StartsWith($codexBinRoot, [System.StringComparison]::OrdinalIgnoreCase)) {
                return $true
            }
            if (-not $p.ParentProcessId -or $p.ParentProcessId -eq $current) { return $false }
            $current = [int]$p.ParentProcessId
        }
        return $false
    }
    
    $targets = @($processes | Where-Object {
        ($_.Name -ieq 'node.exe' -or $_.Name -ieq 'node_repl.exe') -and
        $_.ExecutablePath -and
        $_.ExecutablePath.StartsWith($runtimeRoot, [System.StringComparison]::OrdinalIgnoreCase) -and
        (Test-CodexAncestor ([int]$_.ProcessId))
    })
    
    $targets | ForEach-Object {
        Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue
    }

    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.

  26. maddavo commented on Sep 11, 2026

    @maddavo

    I have now reproduced this repeatedly on Windows using the affected Project's exact local mirror.

    1. Reproduce "Could not use this project for a local chat" in a specific ChatGPT Project.
    2. Identify the corresponding %USERPROFILE%\.codex\.chatgpt-projects\g-p-* mirror.
    3. Confirm that node.exe / node_repl.exe processes hold handles to that exact mirror.
    4. Terminate only those holder processes — not codex.exe, and not unrelated Node processes.
    5. 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 made a small Windows PowerShell GUI for this test. It lists local Project mirrors by name, shows verified node.exe / node_repl.exe holders 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/c479dc37047362b803b7836b93e07b69

    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.

  27. fluidcity commented on Sep 12, 2026

    @fluidcity

    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:

    %USERPROFILE%\.codex\.chatgpt-projects\<project-id>
    

    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.

    This is consistent with the directory-lock analysis earlier in this thread. The working repair on my machine had two parts:

    1. Start those helpers from a stable directory outside the replaceable project mirror.
    2. 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.

    The resulting layout is approximately:

    <stable-helper-folder>/
      settings/config.toml
      browser-helper-launcher.cjs
    
    <project-mirror>/
      .codex -> <stable-helper-folder>/settings  [directory junction]
      AGENTS.md
      sources/
    

    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.

  28. Lirius commented on Sep 25, 2026

    @Lirius

    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

    • Windows x64, OS version 10.0.19045.0.
    • 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:

    %USERPROFILE%\.codex\.chatgpt-projects\<project-id>
    

    Observed sequence

    1. 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.
    2. 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.
    3. New-task creation still failed. Helpers now started outside the mirror and reported ready, but the app still logged:
    ChatGPT project context sync failed ... stage=filesystem
    
    1. 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.
    2. 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.
    3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions