TUI search results lose proper sorting mid-typing #7247

Closed
opened 2026-02-16 18:06:34 -05:00 by yindo · 1 comment
Owner

Originally created by @IdrisGit on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When using the search feature in the TUI command pallete, search results don't maintain proper prioritization as more characters are typed. This is most noticeable when searching for items containing "session".

Plugins

No response

OpenCode version

1.1.32

Steps to reproduce

  1. Open any session in the TUI and open command palette.
  2. Start typing "se" in the search - notice options with "session" in their title correctly appear at the top.
  3. Type "ses" - session options still at top.
  4. Type "sess" - watch "share session" option suddenly drops almost to the bottom of the list.
  5. Type "sessi" - notice options like "fork from message" and "undo previous message" incorrectly appear in top positions (2 and 4), while options like "share session" and "switch session" move almost to the end.

Screenshot and/or share link

here is a screen recording of the issue.

https://github.com/user-attachments/assets/864e2e69-fd3b-451a-8081-722a00379661

Operating System

Omarchy

Terminal

Ghostty

Originally created by @IdrisGit on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When using the search feature in the TUI command pallete, search results don't maintain proper prioritization as more characters are typed. This is most noticeable when searching for items containing **"session"**. ### Plugins _No response_ ### OpenCode version 1.1.32 ### Steps to reproduce 1. Open any session in the TUI and open command palette. 2. Start typing "se" in the search - notice options with "session" in their title correctly appear at the top. 3. Type "ses" - session options still at top. 4. Type "sess" - watch "share session" option suddenly drops almost to the bottom of the list. 5. Type "sessi" - notice options like "fork from message" and "undo previous message" incorrectly appear in top positions (2 and 4), while options like "share session" and "switch session" move almost to the end. ### Screenshot and/or share link here is a screen recording of the issue. https://github.com/user-attachments/assets/864e2e69-fd3b-451a-8081-722a00379661 ### Operating System Omarchy ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:06:34 -05:00
yindo closed this issue 2026-02-16 18:06:34 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

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

  • #9471: /rename command unreachable - fuzzy search does not filter command list - reports similar fuzzy search sorting problems in the command palette where results don't maintain proper prioritization as text is typed.

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #9471: /rename command unreachable - fuzzy search does not filter command list - reports similar fuzzy search sorting problems in the command palette where results don't maintain proper prioritization as text is typed. Feel free to ignore if this doesn't 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#7247