Skip to content

fix(app): allow selecting root in project picker#22140

Open
SubLoadedZA wants to merge 1 commit intoanomalyco:devfrom
SubLoadedZA:fix/root-workspace-picker
Open

fix(app): allow selecting root in project picker#22140
SubLoadedZA wants to merge 1 commit intoanomalyco:devfrom
SubLoadedZA:fix/root-workspace-picker

Conversation

@SubLoadedZA
Copy link
Copy Markdown

@SubLoadedZA SubLoadedZA commented Apr 12, 2026

Issue for this PR

Closes #21698

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When opening the project picker in the web UI and typing /, root was not reliably selectable as a workspace.

This change updates the directory suggestion base logic in packages/app/src/components/dialog-select-directory.tsx so the base directory is included for both:

  • ~ paths (existing behavior)
  • absolute-root paths like / (new behavior)

This works because the picker now keeps the scoped absolute root in the candidate set, so / itself appears as a selectable item instead of only its children.

How did you verify your code works?

  • Ran bun run typecheck in packages/app
  • Ran bun run test -- dialog-select-directory in packages/app
  • Browser-validated flow with Playwright: open project picker, type /, select root, confirm navigation to root workspace session

Screenshots / recordings

Not included.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Apr 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

In Web UI I cannot select / as a workspace, but many sessions were created there.

1 participant