Skip to content

remove proposedAPI check for chatAgent contributions#274758

Merged
aeschli merged 1 commit intomainfrom
aeschli/diplomatic-fly-624
Nov 3, 2025
Merged

remove proposedAPI check for chatAgent contributions#274758
aeschli merged 1 commit intomainfrom
aeschli/diplomatic-fly-624

Conversation

@aeschli
Copy link
Contributor

@aeschli aeschli commented Nov 3, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 3, 2025 14:06
@aeschli aeschli enabled auto-merge (squash) November 3, 2025 14:06
@aeschli aeschli self-assigned this Nov 3, 2025
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 removes the chatParticipantPrivate API proposal check for the chatAgents contribution point. The check was previously enforcing that extensions must have the chatParticipantPrivate API proposal enabled to contribute to the chatAgents extension point.

  • Removes the unused import of checkProposedApiEnabled function
  • Removes the conditional API proposal check for chatAgents contributions

Comment on lines 89 to 93
private handle(extensionPoint: extensionsRegistry.IExtensionPoint<IRawChatFileContribution[]>, contributionPoint: ChatContributionPoint) {
extensionPoint.setHandler((_extensions, delta) => {
for (const ext of delta.added) {
if (contributionPoint === 'chatAgents') {
checkProposedApiEnabled(ext.description, 'chatParticipantPrivate');
}
const type = pointToType(contributionPoint);
for (const raw of ext.value) {
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

The removal of the checkProposedApiEnabled(ext.description, 'chatParticipantPrivate') check for the chatAgents contribution point means that any extension can now contribute chat agents without requiring the chatParticipantPrivate proposed API to be enabled. This change should be verified against the intended security posture, as other parts of the codebase (e.g., languageModelToolsContribution.ts lines 228, 233) still enforce restrictions on copilot_ and vscode_ prefixes based on this API proposal. Ensure this relaxation is intentional and that appropriate validations exist elsewhere (e.g., name prefix restrictions) to prevent unauthorized extensions from registering privileged chat agents.

Copilot uses AI. Check for mistakes.
@aeschli aeschli merged commit b53bb8b into main Nov 3, 2025
33 of 34 checks passed
@aeschli aeschli deleted the aeschli/diplomatic-fly-624 branch November 3, 2025 14:34
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants