Add `outcome` to comment autocompletion context

Release-Notes: skip
Change-Id: I300ba5a9baa7f8f05aa59f9496a47a9b43582da6
diff --git a/polygerrit-ui/app/api/suggestions.ts b/polygerrit-ui/app/api/suggestions.ts
index b952180..1aa4ebe 100644
--- a/polygerrit-ui/app/api/suggestions.ts
+++ b/polygerrit-ui/app/api/suggestions.ts
@@ -73,6 +73,7 @@
   responseCode: ResponseCode;
   completion?: string;
   modelVersion?: string;
+  outcome?: number;
 }
 
 export declare interface SuggestCodeResponse {
diff --git a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
index 6f7e151..e73aad2 100644
--- a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
+++ b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
@@ -1480,6 +1480,7 @@
       isFullCommentPrediction: draftContent.length === 0,
       draftInSyncWithSuggestionLength: 0,
       modelVersion: response.modelVersion ?? '',
+      outcome: response.outcome,
       requestDurationMs,
     };
   }
diff --git a/polygerrit-ui/app/utils/autocomplete-cache.ts b/polygerrit-ui/app/utils/autocomplete-cache.ts
index b1dba44..b880ccd 100644
--- a/polygerrit-ui/app/utils/autocomplete-cache.ts
+++ b/polygerrit-ui/app/utils/autocomplete-cache.ts
@@ -12,6 +12,7 @@
   isFullCommentPrediction?: boolean;
   draftInSyncWithSuggestionLength?: number;
   modelVersion?: string;
+  outcome?: number;
   requestDurationMs?: number;
 
   commentId?: string;