Trigger subscription message for user input
What does this MR do and why?
- sends websocket message for user inputs (not only for AI responses)
- exposes also
role
andtimestamp
fields for graphql subscription response
Send graphql subscription message also for user input questions.
Related to #413600 (closed) and https://gitlab.com/gitlab-org/gitlab/-/issues/412802
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Open gitlab chat
- Enable
ai_chat_emit_user_messages
feature flag - When a question is sent in chat's prompt, it also appears as a response (then later followed by real response). In developer console (under internet -> websocket) check that a message is broadcasted also for user's input (not only for AI responses)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jan Provaznik