@@ -19,12 +19,12 @@ import { Intent } from '../../common/constants';
1919import { IConversationStore } from '../../conversationStore/node/conversationStore' ;
2020import { findDiagnosticsTelemetry } from '../../inlineChat/node/diagnosticsTelemetry' ;
2121import { CopilotInteractiveEditorResponse , InteractionOutcome } from '../../inlineChat/node/promptCraftingTypes' ;
22- import { AgentParticipantId } from '../../intents/node/agentIntent' ;
2322import { EditCodeStepTurnMetaData } from '../../intents/node/editCodeStep' ;
2423import { Conversation , ICopilotChatResultIn } from '../../prompt/common/conversation' ;
2524import { IntentInvocationMetadata } from '../../prompt/node/conversation' ;
2625import { IFeedbackReporter } from '../../prompt/node/feedbackReporter' ;
2726import { sendUserActionTelemetry } from '../../prompt/node/telemetry' ;
27+ import { ParticipantIds , participantIdToName } from '../../intents/common/intents' ;
2828
2929export const IUserFeedbackService = createServiceIdentifier < IUserFeedbackService > ( 'IUserFeedbackService' ) ;
3030export interface IUserFeedbackService {
@@ -222,7 +222,7 @@ export class UserFeedbackService implements IUserFeedbackService {
222222 measurements = {
223223 totalCharacters : e . action . totalCharacters ,
224224 totalLines : e . action . totalLines ,
225- isAgent : agentId === AgentParticipantId ? 1 : 0 ,
225+ isAgent : agentId === ParticipantIds . Agent ? 1 : 0 ,
226226 } ;
227227
228228 // Copy actions have a copiedCharacters/Lines property since this includes manual copying which can be partial
@@ -255,7 +255,8 @@ export class UserFeedbackService implements IUserFeedbackService {
255255 participant : agentId ,
256256 languageId : e . action . languageId ?? '' ,
257257 modelId : e . action . modelId ?? '' ,
258- comp_type : compType
258+ comp_type : compType ,
259+ mode : participantIdToName ( agentId ) ,
259260 } ,
260261 measurements ,
261262 e . action . kind === 'copy' ? 'conversation.acceptedCopy' : 'conversation.acceptedInsert'
@@ -277,10 +278,11 @@ export class UserFeedbackService implements IUserFeedbackService {
277278 headerRequestId : result . metadata ?. responseId ?? '' ,
278279 participant : agentId ,
279280 languageId : e . languageId ?? '' ,
280- modelId : e . modelId
281+ modelId : e . modelId ,
282+ mode : participantIdToName ( agentId ) ,
281283 } ,
282284 {
283- isAgent : agentId === AgentParticipantId ? 1 : 0 ,
285+ isAgent : agentId === ParticipantIds . Agent ? 1 : 0 ,
284286 totalLines : e . totalLines ,
285287 } ,
286288 'conversation.appliedCodeblock'
0 commit comments