[Bug]: Windows folder picker fails when selecting the currently opened directory
Before you submit
- I searched existing issues and confirmed this is not a duplicate.
- I replaced the example text with the real behavior, reproduction steps, expected result, and version from the app's About menu or
od --version.
What happened?
On Windows, selecting a project folder from the folder picker works only when I stay in the parent directory and highlight the target folder.
If I navigate inside the target folder first and then click "Select Folder", OpenDesign fails with:
Couldn't open the folder picker (desktop auth handshake with the daemon failed; please retry). Please update OpenDesign and try again.
Example target directory:
C:\Users\gabriel.medeiros\Documents\projects\gestao-financeira-workspace
This works:
- Navigate to: C:\Users\gabriel.medeiros\Documents\projects
- Highlight
gestao-financeira-workspace - Click "Select Folder"
This fails:
- Navigate inside: C:\Users\gabriel\Documents\projects\gestao-financeira-workspace
- Click "Select Folder"
The folder itself is valid and accessible. The behavior depends only on whether the target folder is selected from its parent directory or is the currently opened directory in the native Windows picker.
Steps to reproduce
Open OpenDesign on Windows.
Open the folder picker for selecting a working directory.
Navigate to a directory that contains the desired project folder.
Enter the desired project folder itself.
Click "Select Folder".
Observe the error:
Couldn't open the folder picker (desktop auth handshake with the daemon failed; please retry). Please update OpenDesign and try again.
Open the picker again.
This time, remain in the parent directory.
Highlight the same target folder without entering it.
Click "Select Folder".
Observe that the folder is selected successfully.
Expected behavior
The currently opened directory in the native Windows folder picker should be selectable.
Selecting:
C:\Users\gabriel.medeiros\Documents\projects\gestao-financeira-workspace
should behave the same whether:
- the folder is highlighted from its parent directory, or
- the user navigates inside the folder and clicks "Select Folder".
Both flows should return the same directory to OpenDesign and should not trigger a desktop-auth handshake error.
OpenDesign version
0.24.1
Platform
Windows
Logs (optional)
The daemon is healthy and responds normally over HTTP:
GET http://127.0.0.1:52790/api/health
HTTP/1.1 200 OK
{"ok":true,"version":"0.24.1",...}
With OD_JSON_IPC_TRACE=1 enabled, the initial desktop-auth registration succeeds:
[open-design sidecar] json ipc trace {
event: 'client.connect_start',
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
},
timeoutMs: 800
}
[open-design sidecar] json ipc trace {
event: 'client.response_success',
durationMs: 154,
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
}
}
When reproducing the folder-picker failure, the re-registration connects to the same daemon pipe and successfully writes the request, but times out waiting for the response:
[open-design sidecar] json ipc trace {
event: 'client.connect_start',
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
},
timeoutMs: 800
}
[open-design sidecar] json ipc trace {
event: 'client.connected',
durationMs: 43,
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
}
}
[open-design sidecar] json ipc trace {
event: 'client.write_callback',
durationMs: 130,
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
}
}
[open-design sidecar] json ipc trace {
event: 'client.timeout',
durationMs: 851,
message: {
type: 'sidecar:invoke',
hasInput: true,
inputKeys: ['secret']
},
timeoutMs: 800
}Screenshots (optional)
Working:
Not Working:
Additional context
I verified that this does not appear to be a missing daemon or broken local installation:
- OpenDesign daemon
/api/healthreturns HTTP 200. - The daemon, web and desktop sidecars are all running.
- The Windows named pipes for all three sidecars exist.
- Selecting the same directory from its parent folder works correctly.
- The failure is reproducible specifically when the target directory is the currently opened directory in the Windows folder picker.
I also searched existing issues. The closest reports I found were #7643 and #1977, but they describe different problems related to existing working directories rather than this folder-picker selection behavior.
Source: nexu-io/open-design