anomalyco / anomalyco/opencode
Directory picker skips the last suggestion when Up is pressed initially
@Brendonovich is already working on this.
Since Aug 25, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In the directory picker autocomplete, pressing Up before any suggestion is active selects the penultimate result. This makes reverse keyboard navigation skip the last suggestion on the first key press.
Steps to reproduce
- Open the directory picker in the web or desktop app.
- Type a path or search term that produces at least three autocomplete suggestions.
- Leave the suggestions unselected.
- Press Up once.
Observed behavior
The penultimate suggestion becomes active.
Expected behavior
The last suggestion should become active so reverse navigation wraps from the unselected state to the end of the list.
Additional context
Down correctly starts at the first suggestion. Up should mirror that behavior from the opposite end. The issue is independent of the operating system and terminal because it occurs in the picker index calculation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.