[Bug]: Windows folder picker fails when selecting the currently opened directory

Author: gabrielhmsantosCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

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:

  1. Navigate to: C:\Users\gabriel.medeiros\Documents\projects
  2. Highlight gestao-financeira-workspace
  3. Click "Select Folder"

This fails:

  1. Navigate inside: C:\Users\gabriel\Documents\projects\gestao-financeira-workspace
  2. 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

  1. Open OpenDesign on Windows.

  2. Open the folder picker for selecting a working directory.

  3. Navigate to a directory that contains the desired project folder.

  4. Enter the desired project folder itself.

  5. Click "Select Folder".

  6. Observe the error:

    Couldn't open the folder picker (desktop auth handshake with the daemon failed; please retry). Please update OpenDesign and try again.

  7. Open the picker again.

  8. This time, remain in the parent directory.

  9. Highlight the same target folder without entering it.

  10. Click "Select Folder".

  11. 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)

bash
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: Image Not Working: Image

Additional context

I verified that this does not appear to be a missing daemon or broken local installation:

  • OpenDesign daemon /api/health returns 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.