Skip to content

fix(prompt): open slash menu when typing / anywhere#16832

Closed
lucaslopesx wants to merge 3 commits intoanomalyco:devfrom
lucaslopesx:dev
Closed

fix(prompt): open slash menu when typing / anywhere#16832
lucaslopesx wants to merge 3 commits intoanomalyco:devfrom
lucaslopesx:dev

Conversation

@lucaslopesx
Copy link
Copy Markdown

@lucaslopesx lucaslopesx commented Mar 10, 2026

Issue for this PR

Closes #16826

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The slash command menu only opened when / was typed as the first character in the prompt. Changed the slash detection to scan text before the cursor position instead of only checking if / is at index 0, allowing the menu to open anywhere in the prompt.

How did you verify your code works?

  1. Open the prompt
  2. Type hello
  3. Type / the slash command menu now appears at the cursor

Screenshots / recordings

Screen Recording 2026-03-09 at 23 13 06

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Allow slash autocomplete to follow the token at the caret and keep prompt parts aligned when prepending slash commands, so skills and inline command edits do not drop existing content.
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a potentially related PR:

Related PR:

These PRs likely address the same feature/bug area. You may want to verify if #16263 is already merged or if it's been superseded by this new fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slash command menu only opens at the beginning of the prompt

1 participant