Skip to content

feat: support chaining multiple slash commands in a single prompt#16917

Open
ghaif wants to merge 5 commits intoanomalyco:devfrom
ghaif:dev
Open

feat: support chaining multiple slash commands in a single prompt#16917
ghaif wants to merge 5 commits intoanomalyco:devfrom
ghaif:dev

Conversation

@ghaif
Copy link

@ghaif ghaif commented Mar 10, 2026

Issue for this PR

Closes #16915

Type of change

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

What does this PR do?

Right now you can only use one slash command per prompt. If you type /command1 /command2, only the first one runs.

This adds support for chaining them. The input is split on / boundaries, each segment is parsed as its own command, and all the resulting template parts are merged into a single LLM turn. A new server endpoint handles the multi-command case; the single-command path is unchanged. The autocomplete also now reopens after a completed command so typing the next / feels natural.

How did you verify your code works?

Typed /init and /rmslop in a single prompt in both the TUI and web UI. Both commands ran in one turn. Also tested single commands still work as before.

Screenshots / recordings

image image image

Checklist

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

@ghaif ghaif requested a review from adamdotdevin as a code owner March 10, 2026 17:06
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 10, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@ghaif ghaif force-pushed the dev branch 3 times, most recently from 8883648 to ee6930b Compare March 10, 2026 21:31
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.

[FEATURE]: Support chaining multiple slash commands in a single prompt

1 participant