[Bug] `/clear` command matches wrong terminal option instead of exact match

Resolved 💬 4 comments Opened Jan 19, 2026 by lonestarsky Closed Jan 19, 2026

Title

/clear command selects wrong terminal option (prefers /code-refactor over exact match) since ~2 releases ago

Summary

In the Claude Code terminal (within VS Code on macOS), typing /clear incorrectly selects a different command/skill option (e.g., /code-refactor) even though /clear is an exact match. This regression began approximately two updates ago.

Expected Behavior

When the user types /clear, the command palette/autocomplete should select /clear as the top/active option because it is an exact match.

Actual Behavior

Typing /clear results in a different option being selected (observed: /code-refactor skill). The exact-match /clear is not prioritized.

Regression

  • This behavior started roughly two updates ago (prior versions matched /clear correctly).

Steps to Reproduce

  1. Open VS Code on macOS (darwin).
  2. Open the Claude Code terminal.
  3. Type /clear.
  4. Observe the selected command/option in the UI (it selects something other than /clear, e.g., /code-refactor).

Environment

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.12
  • Feedback ID: 8b3adec3-1a0b-4f25-bce6-c74329ee0973

<img width="1393" height="220" alt="Image" src="https://github.com/user-attachments/assets/45523e53-c51e-4c09-af1d-deb4335b192f" />

View original on GitHub ↗

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