[BUG] Exact-matching built-in command not prioritized over fuzzy match

Resolved 💬 3 comments Opened Jan 19, 2026 by ynatz Closed Jan 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When typing /clear completely, autocomplete highlights /cleaning-projects (custom skill) instead of the exact-matching built-in command.

What Should Happen?

Exact match for built-in commands should be prioritized over fuzzy matches.

Error Messages/Logs

Steps to Reproduce

  1. Create a skill at ~/.claude/skills/cleaning-projects/SKILL.md
  2. Restart Claude Code (exit and run claude again)
  3. Type /clear completely
  4. Press Enter without arrow keys

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Terminal/Shell details:
  • Windows Terminal (running WSL2 Ubuntu 24.04)
  • VS Code integrated terminal (WSL extension)
Screenshot:

<img width="1300" height="98" alt="Image" src="https://github.com/user-attachments/assets/4e9bd6ab-112c-43a0-93c6-b555763dc681" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗