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

Closed
opened 2026-02-16 17:35:57 -05:00 by yindo · 1 comment
Owner

Originally created by @veracioux on GitHub (Nov 2, 2025).

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

Originally created by @veracioux on GitHub (Nov 2, 2025). ### 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 <img width="1025" height="517" alt="Image" src="https://github.com/user-attachments/assets/f0ac9806-bb05-4e1a-bf78-ad735d1b111b" /> ### Operating System Arch btw ### Terminal Alacritty
yindo added the bug label 2026-02-16 17:35:57 -05:00
yindo closed this issue 2026-02-16 17:35:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2025):

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] commented on GitHub (Nov 2, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2495