Skip to content

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

Closed
ghaif wants to merge 5 commits into
anomalyco:devfrom
ghaif:dev
Closed

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

Conversation

@ghaif

@ghaif ghaif commented Mar 10, 2026

Copy link
Copy Markdown

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
Copy Markdown
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
@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 10, 2026
@rostikowb

Copy link
Copy Markdown

That's a really useful feature; I miss it

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

2 participants