fuzzysort doesn't prioritize results/matches that start with the user input #3557

Closed
opened 2026-02-16 17:40:39 -05:00 by yindo · 2 comments
Owner

Originally created by @justfortheloveof on GitHub (Dec 15, 2025).

Description

The prompt fuzzysort/autocomplete results do not prioritize matches that start with the user input.

OpenCode version

1.0.153

Steps to reproduce

Create these 2 commands:

~/.config/opencode/command/plan-detailed

---
description: Create a detailed implementation plan based on the discussed requirements
subtask: false
---

Instructions...

$ARGUMENTS

and ~/.config/opencode/command/deep-plan.md

---
description: Use deep-plan agent to research and create detailed implementation plan
agent: deep-plan
---

$ARGUMENTS

Instructions...
  • Run opencode
  • type /plan
  • notice the (somewhat unexpected/annoying) sort order as per the screenshot below

Screenshot and/or share link

Image

Operating System

macOS 15.6.1

Terminal

Ghostty

Originally created by @justfortheloveof on GitHub (Dec 15, 2025). ### Description The prompt fuzzysort/autocomplete results do not prioritize matches that start with the user input. ### OpenCode version 1.0.153 ### Steps to reproduce Create these 2 commands: `~/.config/opencode/command/plan-detailed` ```md ~/.config/opencode/command/plan-detailed --- description: Create a detailed implementation plan based on the discussed requirements subtask: false --- Instructions... $ARGUMENTS ``` and `~/.config/opencode/command/deep-plan.md` ```md ~/.config/opencode/command/deep-plan.md --- description: Use deep-plan agent to research and create detailed implementation plan agent: deep-plan --- $ARGUMENTS Instructions... ``` - Run opencode - type /plan - notice the (somewhat unexpected/annoying) sort order as per the screenshot below ### Screenshot and/or share link <img width="1065" height="379" alt="Image" src="https://github.com/user-attachments/assets/924cace6-7114-4eed-b9d5-72a4882fdb60" /> ### Operating System macOS 15.6.1 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:40:39 -05:00
yindo closed this issue 2026-02-16 17:40:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2025):

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

  • #3771: Autocomplete does not prioritize exact /command matches (similar fuzzy sort prioritization issue)

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

@github-actions[bot] commented on GitHub (Dec 15, 2025): This issue might be a duplicate of existing issues. Please check: - #3771: Autocomplete does not prioritize exact /command matches (similar fuzzy sort prioritization issue) Feel free to ignore if none of these address your specific case.
Author
Owner

@justfortheloveof commented on GitHub (Dec 15, 2025):

Seems like the changes in #3760 / #3771 weren't enough to get the desired behavior.

@justfortheloveof commented on GitHub (Dec 15, 2025): Seems like the changes in #3760 / #3771 weren't enough to get the desired behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3557