Skip to content

Slash-command picker does not open unless "/" is the first character of the composer, but the command still runs on submit #89398

Description

@AleksBiSonic

Environment

  • Claude Code desktop app, Windows 11 Home (10.0.26200)
  • Version: not exposed anywhere I could find on this surface (no claude --version on PATH, no version key in ~/.claude.json, no install dir under %LOCALAPPDATA%\Programs)

What happens

The slash-command autocomplete picker only opens when / is typed as the very first character of an empty composer. If any text already precedes it, the picker never appears, even when the command sits alone on its own new line.

The command is still recognised on submit. So the execution path and the autocomplete path disagree: the app will run a command it refused to help you find.

Steps to reproduce

  1. Open an empty composer. Type / — picker opens as expected.
  2. Clear it. Type any sentence, press Enter for a new line, then type /wr.
  3. No picker, no filtering, no list-select, no highlight.
  4. Submit. The command is picked up and runs.

Expected

The picker should open for a /command at the start of any line in the composer, not only at position 0 of the input. If the submit path recognises a command there, autocomplete should too.

Why it matters

Chaining commands in one message is a normal workflow (e.g. /startup plus a second command in the same send). Today only the first one gets autocomplete support. For any command whose exact slug you don't have memorised, you have to either send it alone first to look it up, or guess. Discovery and typo-checking are lost precisely where a user is least sure of the name.

Related but distinct: #78278 (wrong text inserted on selection), #17816 (wrong item highlighted). Those are about the picker misbehaving once open; this is about it not opening at all.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions