Skip to content

fix(app): fix directory picker ArrowUp, trailing spaces and Windows Tab completion - #67701

Draft
neriousy wants to merge 1 commit into
devfrom
directory-picker-fixes
Draft

neriousy wants to merge 1 commit into
devfrom
directory-picker-fixes

Conversation

@neriousy

@neriousy neriousy commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Issue for this PR

Fixes #44960
Fixes #60294
Fixes #54663

Type of change

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

What does this PR do?

three small bugs in the directory picker selection logic (packages/app/src/workspaces/selection):

the suggestion rows mentioned in #54663 don't append a separator anymore on dev, so only Tab and the root comparison needed fixing

no flag, it's a fix

How did you verify your code works?

added tests that failed before the fix:

  • domain.test.ts: ArrowUp from no selection picks the last item, resolvePickerTarget keeps a trailing space
  • combobox-machine.test.ts: ArrowUp from ~/ highlights the last suggestion, Tab on a Windows folder ends in \, a Windows input equal to the root with a trailing \ doesn't search, clicking a foo suggestion keeps the space

ran from packages/app:

  • bun test --conditions=browser --isolate --preload ../ui/test/solid-jsx.ts --preload ./happydom.ts ./src/workspaces: 211 pass, 0 fail
  • bun typecheck: clean
  • oxlint + prettier on the changed files: clean

didn't run it on real Windows, the Windows cases are covered by the machine tests

Screenshots / recordings

n/a, logic only

Checklist

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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

1 participant