Skip to content

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

Open
lucaslopesx wants to merge 2 commits intoanomalyco:devfrom
lucaslopesx:fix/prompt-inline-slash
Open

fix(prompt): open slash menu when typing / anywhere#16836
lucaslopesx wants to merge 2 commits intoanomalyco:devfrom
lucaslopesx:fix/prompt-inline-slash

Conversation

@lucaslopesx
Copy link

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

@github-actions
Copy link
Contributor

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

Potential duplicate found:

I recommend checking PR #16263 to verify if it addresses the same issue or if the changes are complementary.

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.
@lucaslopesx lucaslopesx force-pushed the fix/prompt-inline-slash branch from d307b43 to 526ddd3 Compare March 10, 2026 16:13
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