Skip to content

[Bug]: "Add project starts in" accepts a relative path, then the picker shows no folders #37687

Closed

Description

@ChristianSosa22

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open Settings > New projects.
  2. Set "Add project starts in" to a path without ~/ or /, for example Desktop/dev.
  3. Open the Add Project picker.
  4. Type the name of a folder that exists in ~/Desktop/dev.

Expected behavior

The picker lists the folders in ~/Desktop/dev. If the app cannot use a relative value, the settings field rejects it or shows a warning.

Actual behavior

The picker opens on Desktop/dev/ and lists no folders. A search for a folder name finds nothing. The app shows no error, so it looks like the folders do not exist. Restarting the app does not help.

The settings field accepts the value as-is. getAddProjectInitialQuery (packages/client-runtime/src/operations/projects.ts) and the inline copy in CommandPalette.tsx turn it into the start query Desktop/dev/. isFilesystemBrowseQuery (packages/client-runtime/src/state/projects.ts) returns false for that query because it does not start with /, ~/, ./ or ../. So the palette never browses the filesystem.

Impact

Minor bug or occasional failure

Version or commit

Desktop 0.1.9 (stable). The same code is on main today.

Environment

macOS 26, T3 Code desktop app 0.1.9

Workaround

Set the field to ~/Desktop/dev (or a full absolute path), or clear it.


Found and written up with Claude Code (Claude Opus 5.5).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions