Skip to content

Hide hooks and other slash commands for contributed sessions #299085

Merged
DonJayamanne merged 3 commits intomainfrom
don/devoted-ox
Mar 4, 2026
Merged

Hide hooks and other slash commands for contributed sessions #299085
DonJayamanne merged 3 commits intomainfrom
don/devoted-ox

Conversation

@DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Mar 3, 2026

Fixes #299091

Copilot AI review requested due to automatic review settings March 3, 2026 23:33
@DonJayamanne DonJayamanne self-assigned this Mar 3, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review March 3, 2026 23:36
@DonJayamanne DonJayamanne enabled auto-merge (squash) March 3, 2026 23:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates built-in chat slash command registrations to scope several commands to the VS Code target, with the intent of preventing them from showing up in background/locked-agent contexts.

Changes:

  • Add target: Target.VSCode to multiple built-in slash command descriptors (/hooks, /models, /plugins, /agents, /skills, /instructions, /prompts).
  • Adjust the affected command metadata objects accordingly (comma placement, etc.).

@vs-code-engineering vs-code-engineering bot added this to the 1.111.0 milestone Mar 3, 2026
dmitrivMS
dmitrivMS previously approved these changes Mar 3, 2026
@DonJayamanne DonJayamanne changed the title Disable slash commands for background Hide hooks and other slash commands for contributed sessions Mar 3, 2026
@DonJayamanne DonJayamanne merged commit fd97f69 into main Mar 4, 2026
20 checks passed
@DonJayamanne DonJayamanne deleted the don/devoted-ox branch March 4, 2026 00:53
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.

Disable /hooks, /skills, /models, and similar slash commands for background agents

4 participants