Rely on duo chat message trimming from gitlab-ui
What does this MR do and why?
The code changes are related to the GitLab Duo Chat feature. The changes include:
- We revert the changes made in Add '/clear' to the list of commands to wipe Du... (!147380 - merged) regarding trimming of the prompt. The trimming has been introduced in the upstream package
- Abstracted repetitive computations into a new method,
isClearOrResetMessage,
, to check if a chat message is a clear or reset message. This resolves Follow-up from "Add '/clear' to the list of com... (#451756 - closed)
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
No visual changes
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Denys Mishunov