Skip to content

[REMOTE-1544] Apply slash command enablement checks on execution#10466

Open
bnavetta wants to merge 1 commit intomasterfrom
ben/cloud-mode-disable-local-slash-commands
Open

[REMOTE-1544] Apply slash command enablement checks on execution#10466
bnavetta wants to merge 1 commit intomasterfrom
ben/cloud-mode-disable-local-slash-commands

Conversation

@bnavetta
Copy link
Copy Markdown
Contributor

@bnavetta bnavetta commented May 8, 2026

Description

This fixes a bug where executing /agent <some query> in the Cloud Mode composer would result in a broken session.

The root issue was that we check slash command availability when constructing the menu, but not when actually executing a slash command. To fix this, we adjust SlashCommandDataSource to support checking if a specific command is available, and use this to gate execution in the Input view. This protects against a user typing or pasting /invalid-command and bypassing the menu.

For this fix to be effective, we also need to check against the proper set of slash commands - namely, the v2 Cloud Mode composer uses a separate data source, and we have to check against that data source rather than the generic one. The Input view now receives handles to both SlashCommandDataSources, and chooses the appropriate one based on its current state.

Linked Issue

https://linear.app/warpdotdev/issue/REMOTE-1544/sending-a-slash-command-skill-in-the-old-cloud-mode-ui-and-current-ui

Testing

  • Added unit tests for slash command enablement
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

https://www.loom.com/share/db71b808547149f8a2f0b2921d75c87d

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

@cla-bot cla-bot Bot added the cla-signed label May 8, 2026
@bnavetta bnavetta force-pushed the ben/cloud-mode-disable-local-slash-commands branch from 5588759 to 5ead67d Compare May 8, 2026 10:40
@bnavetta bnavetta force-pushed the ben/cloud-mode-disable-local-slash-commands branch from 5ead67d to a53b641 Compare May 8, 2026 10:41
@bnavetta bnavetta marked this pull request as ready for review May 8, 2026 10:41
@bnavetta bnavetta requested a review from abhishekp106 May 8, 2026 10:41
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 8, 2026

@bnavetta

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds runtime slash-command availability checks before menu selection and enter-key execution, wires the Cloud Mode v2 composer to its own data source, and updates tests around cloud-mode slash command handling.

Concerns

  • No blocking correctness or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@bnavetta bnavetta changed the title Apply slash command enablement checks on execution [REMOTE-1544] Apply slash command enablement checks on execution May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant