Skip to content

Enhance Copilot command handling: log unhandled command result kinds and refine trigger characters#323384

Merged
DonJayamanne merged 1 commit into
mainfrom
don/active-hedgehog
Jun 29, 2026
Merged

Enhance Copilot command handling: log unhandled command result kinds and refine trigger characters#323384
DonJayamanne merged 1 commit into
mainfrom
don/active-hedgehog

Conversation

@DonJayamanne

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 29, 2026 02:32
@DonJayamanne DonJayamanne self-assigned this Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 tightens agent-host slash completion triggering and improves observability for forward-compatible Copilot slash command execution by logging unknown runtime result kinds.

Changes:

  • Stop advertising ' ' (space) as a completion trigger for Copilot slash command completions, reducing unnecessary completion requests after the command token ends.
  • Fix a local variable typo (aliassesaliases) in the Copilot slash command completion provider.
  • Add a default case to the Copilot runtime slash-command result handler to warn-log unrecognized result.kind values.
Show a summary per file
File Description
src/vs/platform/agentHost/node/copilot/copilotSlashCommandCompletionProvider.ts Removes space as a trigger character (aligning with extractLeadingSlashToken behavior) and fixes a local variable name.
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts Adds warning telemetry via logs for unhandled slash command result kinds to aid diagnosis when runtime SDK returns newer variants.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Low

@DonJayamanne DonJayamanne marked this pull request as ready for review June 29, 2026 03:25
@DonJayamanne DonJayamanne enabled auto-merge (squash) June 29, 2026 03:25
@DonJayamanne DonJayamanne merged commit 0546679 into main Jun 29, 2026
30 checks passed
@DonJayamanne DonJayamanne deleted the don/active-hedgehog branch June 29, 2026 05:06
@vs-code-engineering vs-code-engineering Bot added this to the 1.128.0 milestone Jun 29, 2026
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.

3 participants