Skip to content

Slash-command popup lost fuzzy/substring matching in 0.89.0 (now prefix-only) — please add fuzzy fallback or config toggle #9741

@IvanLi-CN

Description

@IvanLi-CN

What version of Codex is running?

codex-cli 0.89.0 (tag: rust-v0.89.0)

What subscription do you have?

N/A (this is a local TUI behavior; occurs before any model call)

Which model were you using?

N/A (not model-dependent)

What platform is your computer?

macOS 15.6.1 (Darwin 24.6.0, arm64)

What terminal emulator and version are you using (if applicable)?

Ghostty 1.2.3 (zsh)

What issue are you seeing?

After upgrading to 0.89.0, the slash-command autocomplete/popup appears to no longer support fuzzy/substring (subsequence) matching.
It now behaves like exact/prefix-only filtering, which makes it hard to discover/trigger commands unless you remember the exact prefix.

Example:

  • Typing /ac used to show /compact (because "ac" is a subsequence / substring match), but now it shows no results.

This looks related to openai/codex#9629 (“better sorting of shell commands”), but the current behavior feels more strict than “exact/prefix first, then
fuzzy”: fuzzy seems removed entirely.

What steps can reproduce the bug?

  1. Install/upgrade to codex-cli 0.89.0.
  2. Start an interactive Codex session.
  3. Type /ac in the composer so the slash-command popup is active.
  4. Observe the suggestions list.

What is the expected behavior?

Either:

  • Keep fuzzy matches as a fallback (e.g. exact > prefix > fuzzy), OR
  • If fuzzy matches are considered too noisy, only show fuzzy results when there are no exact/prefix matches, OR
  • Provide a config option to choose behavior, e.g.:
    • slash_command_matcher = "prefix" (current)
    • slash_command_matcher = "exact_prefix_fuzzy" (previous/desired)

So that /ac can still surface /compact without breaking the “prefix should win” goal.

What do you see instead?

No suggestions for inputs that rely on fuzzy/substring matching (e.g. /ac does not include /compact).

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions