Skip to content

Conversation

@tisDDM
Copy link

@tisDDM tisDDM commented Jan 21, 2026

Summary

Fixes #9795

Allows the "Open project" dialog to browse and search directories
outside the user's home folder.

Changes

Server endpoint (file.ts)

  • Added directory parameter to /find/file endpoint

File search (index.ts)

  • File.search() now accepts an optional directory parameter
  • Scans the specified directory directly when provided

Dialog component (dialog-select-directory.tsx)

  • Parses absolute paths from user input
  • Trailing slash (/develop/) shows directory contents
  • Without trailing slash (/develop) searches parent for match
  • Shows full path for directories outside home, ~ prefix for home paths

Testing

  • /develop/ → lists folders in /develop/
  • /develop/s → filters to folders starting with "s"
  • d → searches home directory as before

- Add directory parameter to /find/file endpoint
- Extend File.search() to scan arbitrary directories
- Parse absolute paths in dialog-select-directory component

Fixes anomalyco#9795
@tisDDM tisDDM requested a review from adamdotdevin as a code owner January 21, 2026 08:34
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicates Found

  1. fix(app): allow browsing absolute paths on Windows (fix(app): allow browsing absolute paths on Windows #6624)

  2. feat: improve directory search with path completion and subdirectory listing (feat: improve directory search with path completion and subdirectory listing #6940)

These PRs appear to address overlapping or related functionality around path browsing and directory selection in the Open Project dialog.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open Project dialog cannot access directories outside home

1 participant