Skip to content

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

@justfortheloveof

Description

@justfortheloveof

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions