Repository navigation
fix(app): wrap initial picker navigation - #44998
sdivyanshu90 wants to merge 1 commit into
Conversation
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Hi @Brendonovich, @Hona, could you please review this PR when you have a chance? |
1 similar comment
|
Hi @Brendonovich, @Hona, could you please review this PR when you have a chance? |
|
Hi @Hona @Brendonovich, could you please review this PR whenever you have some time. Thanks! |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
|
Hi @Hona, this fix remains relevant and the linked issue is still open. Could you please reopen and review this PR when you have time? Thanks! |
Issue for this PR
Closes #44960
Type of change
What does this PR do?
The directory picker uses
-1when no autocomplete suggestion is active. Applying the normal wraparound calculation to that sentinel made the first Up press select the penultimate result. This change handles the unselected state explicitly, so Down starts at the first suggestion and Up starts at the last, and adds a regression assertion for reverse navigation.How did you verify your code works?
From
packages/app:bun test src/components/directory-picker-domain.test.ts— 23 tests passedbun typecheck— passedScreenshots / recordings
Not applicable. This changes keyboard navigation logic without changing the rendered UI.
Checklist