Skip to content

Clean up Duo Chat messages on /clean

Denys Mishunov requested to merge 432638-fe-support-for-clean into master

What does this MR do and why?

The MR implements the clean up of the Duo Chat messages when /clean prompt is received.

We re-fetch the getAiMessages query and allow setting messages as an empty Array when /clean is sent.

Screenshots or screen recordings

Before After
clean-before clean-after

How to set up and validate locally

  1. Set up GitLab Duo Chat
  2. Start the chat from the left-hand navigation panel in "Help -> GitLab Duo Chat"
  3. Ask a couple of questions
  4. Send /clean. The chat's reaction should be as shown in the "After" video above

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #432638

Edited by Denys Mishunov

Merge request reports