DuoChat: Implement Abort Functionality in GitLab to Handle Duo Chat Prompt Aborts
Objective
Enhance the GitLab Monolith to handle abort events from the Duo Chat UI component. This will allow the system to terminate ongoing operations, update the UI accordingly, and accept new user prompts efficiently.
Requirements
- Event Listening: The GitLab Monolith should listen for the 'abort' event emitted by the GitLab UI's Duo Chat component.
- Abort Mutation Execution: Upon receiving the abort event, the GitLab Monolith should execute the AbortAiAction GraphQL mutation to terminate the ongoing process.
- UI Update: After successfully aborting the process, update the GitLab UI component to reflect the termination and readiness for new input.
Implementation Steps
- Update GitLabUI Version: Ensure the Monolith is using the updated version of GitLabUI that includes the abort functionality.
- Integration with Backend:
- Listen for the 'abort' event from the Duo Chat component.
- Send the AbortAiAction mutation to the appropriate service handling the chat prompt.
- Confirm the termination of the process and clean up any associated resources.
- UI Feedback: Update the GitLab UI to show that the process has been aborted and the system is ready to receive a new prompt.
Edited by Jannik Lehmann