Skip to content

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Sep 19, 2025

Some improvements to the sources of entry points sent with feedback and when confirming.

@gagik gagik requested a review from a team as a code owner September 19, 2025 08:31
@gagik gagik requested review from Copilot and nbbeeken and removed request for Copilot September 19, 2025 08:31
@gagik gagik added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Sep 19, 2025
*/
isPermanent?: boolean;
/** The source of the message (i.e. the entry point used) */
source?: 'explain plan' | 'performance insights' | 'connection error';
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if we should treat normal typed prompts as an "entry point" and then this becomes required and we can easily segment all messages. Like I'm worried about the "ergonomics" of filtering by no source and the ambiguity introduced by a field that's not there. Maybe a question for the analytics team?

Copy link
Contributor

Choose a reason for hiding this comment

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

Similar question for spaces in the value. Wondering if that's going to be annoying to filter on in their interface. But that's a super minor nit.

@Copilot Copilot AI review requested due to automatic review settings September 19, 2025 12:07
Copy link
Contributor

@Copilot 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 adds telemetry tracking for assistant entry point sources and confirmation interactions. The changes enhance the tracking of user interactions with the AI assistant by recording where users enter the assistant (entry point sources) and their responses to confirmation prompts.

  • Adds new telemetry event types for tracking assistant entry points and confirmation submissions
  • Updates feedback tracking to include source information indicating how the user accessed the assistant
  • Adds comprehensive test coverage for the new telemetry tracking functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/compass-telemetry/src/telemetry-events.ts Defines new telemetry events for entry point usage and confirmation submissions, updates feedback event to include source
packages/compass-assistant/src/components/assistant-chat.tsx Implements telemetry tracking for feedback and confirmation interactions with source information
packages/compass-assistant/src/components/assistant-chat.spec.tsx Adds test cases for telemetry tracking with source information and fallback scenarios
packages/compass-assistant/src/compass-assistant-provider.tsx Updates message metadata to include entry point source information

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gagik gagik merged commit 6fa086d into main Sep 19, 2025
57 of 58 checks passed
@gagik gagik deleted the gagik/track-confirm branch September 19, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants