opencode
opencode copied to clipboard
opentui: bug: Autocomplete does not prioritize exact /command matches
Note to self
When fixed enable test in https://github.com/sst/opencode/pull/3789 (currently marked todo).
Description
I have a custom command /e, and when I type it into the prompt box, I have to scroll to select it because /exit takes precedence.
I have a fix ready here: https://github.com/sst/opencode/pull/3760
OpenCode version
1.0
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Arch btw
Terminal
Alacritty
This issue might be a duplicate of existing issues. Please check:
- #3482: Command autocomplete matching issue where partial matches like
/sesbrought up wrong commands (e.g.,/newinstead of/sessions) due to category-level matching instead of specific command matching
Feel free to ignore if none of these address your specific case.