Skip to content

Fix AI comments summary streaming

What does this MR do and why?

Fix AI comments summary streaming Use the new sendDuoChatCommand util in ai summary feature to fix loading and streaming. This is behind a FF summarize_notes_with_duo

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2024-07-23_at_12.43.31_PM Screen_Recording_2024-07-23_at_10.15.14_AM

How to set up and validate locally

  1. Setup AI features - https://docs.gitlab.com/ee/development/ai_features/
  2. Enable summarize_notes_with_duo feature flag
  3. Go to an Issue with comments
  4. Click "Summarize comments" button
  5. Result opens in duo drawer
  6. Notice the loading state works correctly
  7. Notice the answer is streaming
Edited by Frédéric Caplette

Merge request reports

Loading