MoonshotAI / MoonshotAI/kimi-cli

Slash command completion menu should appear for exact match (e.g. /editor)

Open
#1,752 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

Description

When typing a slash command that exactly matches a registered command name (e.g. /editor), the completion menu does not appear. Pressing the ↓ arrow key has no effect.

However, when typing a partial match (e.g. /edit), the completion menu correctly appears with /editor as a candidate, and pressing ↓ selects and fills it into the input.

Steps to Reproduce

  1. Start kimi: uv run kimi
  2. Type /editor (exact match) → no completion menu appears
  3. Press ↓ → nothing happens
  4. Clear input, type /edit (partial match) → completion menu appears showing /editor
  5. Press ↓ → input is filled with /editor, menu item shows selection indicator

Expected Behavior

The completion menu should also appear when the input exactly matches a command name. The user may want to:

  • Confirm the command exists by seeing it in the menu
  • Read the description before pressing Enter
  • Navigate to other similar commands

Actual Behavior

Exact match suppresses the completion menu entirely. Only partial/fuzzy matches trigger it.

Environment

  • kimi-cli version: 1.30.0
  • OS: macOS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with uv run kimi, comparing /editor with /edit and the ↓ key behavior. Trace the slash-command completion handling; done means the menu appears for an exact command match, shows its description, and supports navigation and selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.