Windows desktop Remote: new projectless chat fails with “Unable to resolve projectless chat folder”
Summary
Creating a new projectless chat from a Windows laptop on a connected Windows desktop host fails before the first prompt is submitted:
Error submitting message
Unable to resolve projectless chat folder
Existing remote chats continue to work. Creating a new chat from the host side in an existing project also works, providing a verified workaround.
Environment
- Date observed: 2026-10-12
- Both client and host: Windows
- Windows app package version on both machines:
26.1007.2314.0 - Host internal app version:
26.1007.21434 - Host bundled session service version reported during diagnosis:
0.162.0-alpha.17.2 - Connection: Settings → Connections → Control other devices (Remote Control), not SSH
- Host shows connected with a green indicator.
- Host update check reported no eligible update on its configured channel.
Reproduction
- Pair/connect the Windows laptop to a Windows desktop through Control other devices.
- Switch the app surface to Codex.
- Start a new chat; select Remote and the connected desktop host.
- Leave Choose project unset.
- Enter a prompt and submit.
Expected
A working directory is resolved/created on the remote host and the new chat starts.
Actual
Submission fails with the error above. Restarting the laptop app does not resolve it. Opening and continuing an existing remote chat succeeds.
Client log excerpt (identifiers and unrelated data omitted):
Error creating local task errorMessage="Unable to resolve projectless chat folder"
[Composer] submit failed cwd=~ errorMessage="Unable to resolve projectless chat folder" followUp=none mode=local
The log's mode=local label is included verbatim; the UI was set to Remote.
Read-only investigation
Inspection of the installed app's projectless-directory resolution code found the error is thrown after canonical path resolution returns no value or a non-absolute path. A read-only reproduction on the Windows host using the generated PowerShell path-resolution command failed with an unexpected-token syntax error involving the directory argument (anonymized example: C:\Users\<user>\Documents\Codex). This points to argument quoting/construction in the remote Windows path-resolution command. This is our diagnosis, not an upstream-confirmed root cause.
Both the default directory and the host's custom task directory exist. Inspection also indicated that the remote projectless branch uses the remote user's default directory rather than the host desktop's customized projectless directory, so changing that setting is not a demonstrated workaround.
Verified workaround
From a working existing chat on the desktop host, use the app's create_thread tool targeting an existing local project and its local environment. One new chat was successfully created, opened from the laptop, and confirmed its working directory and machine name on the desktop host. No project was re-added and no project files were modified.
Related UX observation (may be separate)
The laptop's Choose project menu displays its own saved projects and New remote project, but does not display the host desktop's existing saved projects even after selecting the remote host. The host-side list_projects tool can enumerate those existing projects. Please clarify whether reuse/discovery of host-saved projects is supported; we are not asserting this observation has the same root cause as the submission failure.
No installation files, configuration, databases, or migration flags were modified during diagnosis. Full logs and private conversation links are intentionally omitted.
Additional read-only diagnostic evidence (2026-10-13):
Windows-to-Windows Remote Control, MSIX 26.1007.2314.0, internal desktop version 26.1007.21434.
During a real failed attempt, the host app-server logged:
powershell.exe -NoProfile -NonInteractive -Command <resolver script> <folder>
The folder was the existing, ordinary directory:
<USERPROFILE>\Documents\Codex
Replaying the exact logged argv under the host's actual user with Windows PowerShell 5.1 returned exit code 1 in 248 ms, empty stdout, and ParserError / UnexpectedToken. The folder argument was appended after [Console]::Out.Write($currentPath).
The original remote logs recorded outputDelta and exited events, but did not preserve their payloads. The exit code and stderr above are from the local replay, not the original remote result.
A second defect was independently reproduced: ordinary directories have a non-null empty Target collection (Count=0), so while ($null -ne $item.Target) incorrectly enters link resolution. Correcting argument construction alone therefore remains insufficient.
No installed application files or settings were modified.
Follow-up evidence for Windows desktop projectless Remote Control chats (2026-10-16)
The affected desktop was updated to MSIX 26.1007.9446.0 (internal version 26.1007.71326, build 20398). The same error still occurred on 2026-10-15 after that update.
The user also confirmed a useful comparison: a phone can create a new projectless Codex chat on the very same connected Windows host, while Windows desktop cannot. This narrows the observed failure to the desktop initiation path; it does not establish that every remote submission route is affected.
Read-only static comparison found the relevant remote Windows resolver section in 26.1007.2314.0 and 26.1007.9446.0 to be identical (1,496 characters; SHA-256 99a8f80f920eb319a2ba05a7d57c6e11c1eabc1b78d30cd56e26a4763da0cc83). The desktop still passes the multiline resolver script and folder as separate arguments after powershell.exe -Command, and still tests a link target with "$null -ne $item.Target".
Independent, bounded helper controls on Windows PowerShell 5.1 succeeded after these changes:
- Pass the script and safely quoted folder through an encoded command, instead of appending a folder token after the script.
- Treat an empty Target collection as having no link target.
- Set UTF-8 output encoding inside the spawned PowerShell process, since the desktop decodes stdout as UTF-8. Without this third correction, a folder containing Chinese characters was returned with corrupted encoding on the tested system.
The corrected helper returned the exact canonical directory for both an ordinary folder and a folder containing spaces, an apostrophe and Chinese characters. These are helper-level controls, not a successful repair of the installed desktop application.
No installed app binaries, integrity checks, Windows security settings, global PATH or execution policy were changed. No raw logs, screenshots, machine names, user paths, account identifiers or credentials are included here.
Please fix the desktop remote Windows canonicalization path, or move this operation behind a supported host-side path resolution method. The currently available signed desktop package still contains the faulty implementation.
Follow-up diagnosis and helper-level fix verification (2026-10-23)
The same new-projectless-chat submission error was observed again with a connected Windows host.
Inspected desktop client
- Internal version:
26.1016.62342, build21477. - Windows package version:
26.1016.8622.0. - The client's configured updater reported
up_to_date. This does not establish the remote host's version or availability on other release channels.
Sanitized client log evidence:
Error creating local task errorMessage="Unable to resolve projectless chat folder"
[Composer] submit failed cwd=~ ... followUp=none mode=local
submissionKind=new_thread ... outcome=failure reason=submit_failed
The UI was targeting a remote host; mode=local is the log's label.
Diagnosis
Read-only inspection of this installed client still found both defects described above:
- The remote Windows resolver passes the multiline script and directory as separate arguments after PowerShell
-Command. A local replay of that invocation returned exit code 1, empty stdout, andParserError / UnexpectedToken: the directory was appended as source after[Console]::Out.Write($currentPath). - An ordinary directory's
Targetproperty was a non-null empty collection (Count=0), sowhile ($null -ne $item.Target)incorrectly enters link resolution.
Resolver failures are caught and omitted from the result map. The caller then raises the generic projectless-folder error when no resolved absolute path is available.
Suggested correction
The following is an illustrative command-construction change, not a patch against published desktop sources:
const quotedPath = "'" + path.replaceAll("'", "''") + "'";
const command =
"[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)\n" +
"& {\n" + resolverScript + "\n} " + quotedPath;
const args = [
powershellExe, "-NoProfile", "-NonInteractive", "-Command", command
];
Inside the resolver, replace the link-loop condition with:
while (@($item.Target).Count -gt 0) {
# Existing link-resolution body
}
Local helper test results
Using the corrected command construction and loop condition:
| Directory case | Without explicit UTF-8 | With explicit UTF-8 |
|---|---|---|
| Existing ordinary directory | Exact UTF-8 match | Exact UTF-8 match |
| Spaces and Chinese characters | Output was not valid UTF-8 | Exact UTF-8 match |
| Apostrophe and a space | Exact UTF-8 match | Exact UTF-8 match |
All six corrected-helper executions exited 0 with empty stderr. Results were checked against the exact expected path using strict UTF-8 decoding, without a system-code-page fallback. This independently confirms the encoding concern raised in the previous comment.
These are local helper controls. The fix has not been installed in the desktop client, and a successful remote projectless-chat submission has not been demonstrated. Junctions, symlink chains, and other Windows configurations were not covered by these controls.
No installed application files or settings were modified. Personal paths, hostnames, account/device/conversation identifiers, credentials, and full logs are omitted.
Following up as an affected Windows-to-Windows Remote Control user. Thanks to everyone for the detailed investigation and helper-level verification.
As of the latest report on 2026-10-23 (desktop internal 26.1016.62342, MSIX 26.1016.8622.0), new projectless remote chats still fail with Unable to resolve projectless chat folder. Existing remote chats and the documented host-side workaround remain distinct from a successful desktop-initiated fix. The resolver's PowerShell command construction, empty Target collection check, and UTF-8 output handling have already been isolated in the comments above; we are not claiming an installed-client fix.
Could a maintainer please clarify:
- Has this been reproduced or accepted for triage on the Windows desktop Remote Control path?
- Is a fix planned, and which release/build or changelog should affected users watch? An ETA is not required if one is not available.
- Is there a supported workaround for initiating new remote projectless chats from Windows desktop, beyond creating them from the host or continuing existing threads?
Happy to provide further sanitized, targeted diagnostics if helpful. Thanks!
I can confirm the same issue when using macOS → Windows 11 over SSH. This suggests the bug may also affect SSH remote connections, not just Windows-to-Windows Remote Control.
Environment
- Client: ChatGPT desktop app on macOS (MacBook Air M2)
- Remote host: Windows 11 Pro, connected via OpenSSH
- Remote account:
redacted - Remote Codex CLI: Installed and working
- Configured projectless workspace:
C:\DefaultWorkspace - Fallback directory:
C:\Users\redacted\Documents\Codex - Client app build:
20398(from logs)
Steps to reproduce
- Configure a remote SSH connection from the macOS ChatGPT desktop app to a Windows 11 host running Codex CLI.
- Connect to the remote host successfully.
- Start a new chat without selecting a project (projectless chat).
- Submit any prompt.
Actual result:
The chat fails immediately, before Codex can execute the prompt:
Error submitting message
Unable to resolve projectless chat folder
Expected result:
The app should resolve the configured projectless workspace (C:\DefaultWorkspace) on the remote Windows host and start the conversation there.
Diagnostics
I verified the following:
- SSH connectivity and authentication work correctly.
- Remote Codex CLI works normally.
- Chats with explicitly selected remote projects work flawlessly, including command execution and file creation.
- The configured workspace
C:\DefaultWorkspaceexists on the remote host. - The fallback workspace
C:\Users\redacted\Documents\Codexalso exists. - From the macOS terminal, SSH commands can successfully resolve the Windows home directory, Documents directory, and working directory.
- The error occurs during chat initialization, independently of the prompt content or its intended file destination.
Relevant log entries
The macOS desktop application's codex.log contains:
Error creating local task
errorMessage="Unable to resolve projectless chat folder"
[Composer] submit failed
cwd=~
errorMessage="Unable to resolve projectless chat folder"
Additionally, the log repeatedly reports:
Failed to resolve git root and common dir:
Invalid request: AbsolutePathBuf deserialized without a base path
The remote connection reaches the connected state before the projectless chat fails.
Observations
The failed submission logs cwd=~ instead of a resolved Windows workspace path. This may be intentional placeholder behavior, but it suggests the projectless workspace resolution step is failing.
Given that explicitly selected remote projects work and the workspace directories exist, the issue appears specific to the application's remote projectless-chat initialization or Windows path-resolution handling.
I haven't confirmed whether this is the exact same underlying PowerShell quoting/symlink detection bug discussed above, but the symptoms match closely.
Workaround
Adding C:\DefaultWorkspace as an explicit remote project allows chats to work normally. Only projectless chats fail.
It would be helpful to know whether the Windows path resolver fixes discussed in this issue are expected to cover macOS → Windows SSH connections as well.
Remote Windows projectless creation still fails in 26.1027; exact-runtime controls isolate the Desktop resolver
Additional evidence for #53264, collected October 29, 2026.
Observed behavior
A connected Windows SSH destination fails to start a new chat when no project is selected. The original packaged Desktop logs Unable to resolve projectless chat folder before the first turn starts. A chat targeting an explicitly selected existing remote project can start successfully.
Environment:
- Windows x64, OS build 26300.
- Desktop package:
26.1027.3384.0. - Desktop internal version:
26.1027.30824, build22943. - Desktop-bundled CLI:
0.166.0-alpha.5.1. - Remote CLI:
0.166.0. - The Desktop updater displayed that the app was up to date.
Reproduction
- Start a new Codex chat in Desktop.
- Choose Remote, then a connected Windows SSH host.
- Leave Choose project unset.
- Enter and submit a prompt.
Expected: Desktop resolves or creates the remote working directory and starts the chat.
Actual: submission fails with Unable to resolve projectless chat folder.
Isolated failure
Read-only inspection of the original installed client shows that remote Windows canonicalization launches Windows PowerShell with this argument structure:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-NoProfile -NonInteractive -Command <multiline resolver script> <directory>
The resolver expects the directory in $args[0]. This invocation instead appends it to the command source. Its final expression is effectively:
[Console]::Out.Write($currentPath) C:\Windows
A replay returns exit code 1, empty stdout and ParserError / UnexpectedToken before filesystem traversal begins. The Desktop helper omits unsuccessful resolutions; the projectless caller then raises the generic folder-resolution error.
The script also contains the previously reported second defect: Windows PowerShell 5.1 can return an empty, non-null Target collection for an ordinary directory. Testing only $null -ne $item.Target therefore incorrectly enters link resolution. Correcting argument construction alone is insufficient.
Discriminating controls
The unchanged installed resolver was extracted and replayed through the native command-execution API under four independent Windows user accounts. This was a helper-level control, not four successful Desktop chat creations.
- The ordinary directory
C:\Windowsfailed with the parser error under all four accounts. - Each account's existing projectless root failed identically.
- These failures occurred with remote CLI
0.166.0. - Repeating the controls with the exact Desktop-bundled CLI,
0.166.0-alpha.5.1, produced the same failures under all four accounts. - Permission-catalog requests succeeded in those native controls.
The C:\Windows control removes user-profile mounts and junctions from the initial parser failure. The exact-binary control rules out the CLI build difference as an explanation for that helper failure. Neither control establishes the cause of a separate intermittent permission-discovery problem.
Requested repair and acceptance
Please repair the Desktop remote Windows canonicalization owner. Prefer a native host canonicalization operation if available. If PowerShell remains necessary, construct a valid script invocation, explicitly preserve UTF-8 output, and handle empty link-target collections and volume/junction semantics correctly.
Acceptance should include ordinary paths, spaces, apostrophes, Unicode, directory junctions and mounted-volume paths, followed by a real Desktop-initiated remote projectless chat. Selecting a project, moving profiles, changing ACLs, or changing the integrated-terminal preference would not repair this resolver.
The original installed Desktop package was not modified for these controls. No installed-client repair is claimed.
Additional affected configuration and independent reproduction — 2026-11-01
This also reproduces with macOS → Windows 10 via Settings → Connections → Control other devices.
- Mac desktop client: 26.1021.31345, build 21828.
- Remote host: Windows 10 Pro, build 19045.
- Remote Codex CLI: 0.166.0-alpha.5.1, authenticated with ChatGPT.
The Windows host is connected and existing remote chats can execute requests. Submitting a new chat fails with Unable to resolve projectless chat folder. The user also tried creating a project and still encountered the same error; we have not established that the failed submission had an explicit remote project attached. An independent SSH invocation of Codex succeeded. The intended working directory is an existing ordinary NTFS directory under the remote user's Documents folder, and its read/write access was verified.
Sanitized client log evidence:
Error creating local task errorMessage="Unable to resolve projectless chat folder"
[Composer] submit failed cwd=~ ... followUp=none mode=local
Failed to resolve git root and common dir: Invalid request: AbsolutePathBuf deserialized without a base path
Read-only inspection of this installed Mac client and an independent Node spawnSync replay on the Windows host confirmed the same two helper-level defects described above:
- Passing the multiline resolver script and directory as separate arguments after PowerShell
-Commandproduced exit code 1, empty stdout, andParserError / UnexpectedToken. The directory was appended after[Console]::Out.Write($currentPath). This happened with both the intended ordinary directory and a drive-root control. - The ordinary directory's
Targetwas a non-null empty array (Count=0), making$null -ne $item.TargetTrue and incorrectly entering link resolution.
An independent control using an explicit script-block parameter and a nonempty Target guard returned the expected absolute directory. This is a diagnostic helper result, not a repair of the desktop app or a successful new-chat submission. No installed application files, system PowerShell files, or chat databases were modified. Full logs, personal paths, hostnames, private IPs, credentials and conversation contents are omitted.
Please include the Mac-client → Windows-host Remote Control path in the fix and acceptance testing. Could the team confirm triage status and identify a fixed build or supported workaround when available?
Reproduced on 2026-11-03 with a Windows desktop client connecting to a Windows host through Remote Control (Control other devices), rather than SSH. The client log reports desktop build 22943.
I tested the following against the same connected host:
| Action | Result |
|---|---|
| Continue an existing remote chat | Works |
| Start a new remote chat without selecting a project | Fails with Unable to resolve projectless chat folder |
| Create an explicit remote project linked to an existing folder on that host, then start a chat in it | Works; the chat remains available |
Reproduction for the failing case:
- Start a new chat in the Windows desktop app.
- Select Remote and the connected Windows host (green connection indicator).
- Leave Choose project unset.
- Enter a prompt and submit.
Expected: a working folder is resolved or created on the selected remote host and the chat starts. Actual: submission fails with the folder-resolution error before the first response.
The explicit remote-project test provides a verified workaround for this Remote Control configuration, in addition to the SSH workaround reported above. I have not independently verified the PowerShell resolver diagnosis or applied a client-side fix.
Project/folder names, hostnames, personal paths, and conversation identifiers are omitted for privacy.
I can reproduce this in ChatGPT Work mode on Windows, using the desktop app’s built-in Remote Control to connect to another Windows PC. With the remote PC selected and no project selected, I can’t start a new Work chat. I can open an existing chat on the same remote PC and send follow-up messages successfully.
I saw the same error with Windows package 26.1117.4957.0. The default Documents\Codex folder exists, and Node.js resolves its real path locally. Running the bundled remote Windows path-resolution command separately against that folder reproduced a PowerShell ParserError (UnexpectedToken): Windows PowerShell parsed the folder path as part of the -Command text and exited with code 1. This was a standalone reproduction of the helper. The desktop log did not capture the underlying exception for the original UI failure.
Additional reproduction / UI blocker (2026-11-23):
- Windows desktop app, using its built-in Remote Control to target a connected Windows PC (not SSH).
- The remote PC appears connected (green status indicator).
- In a new Codex chat with that remote PC selected and no project selected, submitting the first message fails with:
Error submitting message: Unable to resolve projectless chat folder. - I also cannot select a project for this remote PC using the
Choose projectcontrol. This means the often-suggested workaround of selecting an explicit remote project is not usable in my current UI.
I am reporting the project-picker problem as a separate observation, not claiming that it shares the PowerShell resolver root cause. I have not collected client/host build numbers or logs for this reproduction, and have not verified whether existing chats work in this specific setup.
Could the team also check the Windows Remote Control project-selection flow, so the remote project workaround is actually available while the projectless-chat resolver is being fixed?