opencode icon indicating copy to clipboard operation
opencode copied to clipboard

opentui: bug: Autocomplete does not prioritize exact /command matches

Open veracioux opened this issue 2 months ago • 1 comments

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

Image

Operating System

Arch btw

Terminal

Alacritty

veracioux avatar Nov 02 '25 18:11 veracioux

This issue might be a duplicate of existing issues. Please check:

  • #3482: Command autocomplete matching issue where partial matches like /ses brought up wrong commands (e.g., /new instead of /sessions) due to category-level matching instead of specific command matching

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 02 '25 18:11 github-actions[bot]