@@ -38,7 +38,7 @@ export const createMynahUI = (
3838 // eslint-disable-next-line prefer-const
3939 let connector : Connector
4040 //Store the mapping between messageId and messageUserIntent for amazonq_interactWithMessage telemetry
41- const messageUserIntentMap = new Map < string , string [ ] > ( )
41+ const responseMetadata = new Map < string , string [ ] > ( )
4242
4343 window . addEventListener ( 'error' , ( e ) => {
4444 const { error, message } = e
@@ -257,7 +257,7 @@ export const createMynahUI = (
257257 item . userIntent !== undefined &&
258258 item . codeBlockLanguage !== undefined
259259 ) {
260- messageUserIntentMap . set ( item . messageId , [ item . userIntent , item . codeBlockLanguage ] )
260+ responseMetadata . set ( item . messageId , [ item . userIntent , item . codeBlockLanguage ] )
261261 }
262262 ideApi . postMessage ( {
263263 command : 'update-chat-message-telemetry' ,
@@ -519,8 +519,8 @@ export const createMynahUI = (
519519 eventId ,
520520 codeBlockIndex ,
521521 totalCodeBlocks ,
522- messageUserIntentMap . get ( messageId ) ?. [ 0 ] ?? undefined ,
523- messageUserIntentMap . get ( messageId ) ?. [ 1 ] ?? undefined
522+ responseMetadata . get ( messageId ) ?. [ 0 ] ?? undefined ,
523+ responseMetadata . get ( messageId ) ?. [ 1 ] ?? undefined
524524 )
525525 } ,
526526 onCodeBlockActionClicked : (
@@ -587,8 +587,8 @@ export const createMynahUI = (
587587 eventId ,
588588 codeBlockIndex ,
589589 totalCodeBlocks ,
590- messageUserIntentMap . get ( messageId ) ?. [ 0 ] ?? undefined ,
591- messageUserIntentMap . get ( messageId ) ?. [ 1 ] ?? undefined
590+ responseMetadata . get ( messageId ) ?. [ 0 ] ?? undefined ,
591+ responseMetadata . get ( messageId ) ?. [ 1 ] ?? undefined
592592 )
593593 mynahUI . notify ( {
594594 type : NotificationType . SUCCESS ,
0 commit comments