Skip to content

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

Closed
lucaslopesx wants to merge 2 commits into
anomalyco:devfrom
lucaslopesx:fix/prompt-inline-slash
Closed

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

Conversation

@lucaslopesx

Copy link
Copy Markdown

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
Copy Markdown
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.
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 12, 2026
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