Skip to content

fix(app): navigate into directories in the open project dialog - #42357

Closed
BongHwi wants to merge 2 commits into
anomalyco:devfrom
BongHwi:picker-browse
Closed

BongHwi wants to merge 2 commits into
anomalyco:devfrom
BongHwi:picker-browse

Conversation

@BongHwi

@BongHwi BongHwi commented Aug 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #38338

Rebase of #38345 by @razzeee onto current dev, opened with their permission
(#38345 (comment)).
Original commit and authorship preserved.

Type of change

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

What does this PR do?

The Open Project dialog immediately resolved and closed when clicking a
suggestion or pressing Enter, making it impossible to navigate into a
subdirectory and continue. There was also no explicit confirm action.

  • Tab and Enter now navigate into the highlighted directory (appends / and
    refetches) instead of confirming
  • Clicking an item also navigates in rather than immediately opening the project
  • Added Cancel and Select Folder buttons in the footer
  • Ctrl/Cmd+Enter or the button confirms the current path
  • Enter with no item highlighted confirms the current filter path directly

This also fixes opencode web, not just desktop. Both go through the same
DialogSelectDirectory (directory-picker.tsx falls through to the legacy
picker for web), so before this change the only way to descend on web was the
undiscoverable Tab shortcut — and on touch devices there was no way at all
short of typing the full absolute path. The scope in the title is app rather
than desktop for that reason.

Rebase notes: the only conflict was the import hunk, resolved by keeping both
the Path type import and the expanded directory-picker-domain import.
onSelect had not changed upstream since the original branch point.

How did you verify your code works?

Tested locally on opencode web in a browser: clicked into nested directories,
navigated with Enter and Tab, went back up, confirmed with both the Select
Folder button and Ctrl+Enter. Verified backspace still works normally in the
input, and checked the footer at a narrow (mobile) viewport.

Screenshots / recordings

demo1.mp4
demo2.mp4

Checklist

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

@github-actions

Copy link
Copy Markdown
Contributor

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

The search found PR #38345, which is the original PR that this current PR (42357) is rebased from according to the description. That's not a duplicate—it's the source that was rebased with permission.

No duplicate PRs found

@BongHwi

BongHwi commented Aug 17, 2026

Copy link
Copy Markdown
Author

@Hona @Brendonovich Kind reminder.

1 similar comment
@BongHwi

BongHwi commented Aug 23, 2026

Copy link
Copy Markdown
Author

@Hona @Brendonovich Kind reminder.

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr thdxr closed this Oct 10, 2026
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 picker is hard to use

3 participants