Loading
Show agent type in the AI audit event report
What does this MR do and why?
The AI Audit Event Report hardcoded every session's client type to "GitLab Duo". Now that the GraphQL query supports agent type, we can use that to render the proper "client type"
- Humanises unknown agent types (for example
some-agentbecomes "Some agent"), so the report never attributes a session to the wrong tool, including agent types added to the backend later. - Renders agent types without an icon as a circular
GlAvatarinitial (the same treatment used inlist_selector/user_item.vueandproject_avatar.vue), via a newClientTypeIconcomponent shared by the table's AI Item cell and the session details drawer's "Client type" row. - In the future, we'll be adding the official logos for these third party agent types so that we can render those icons instead of the circle avatar.
References
- Closes https://gitlab.com/gitlab-org/gitlab/-/issues/628370
- Backend field: !252345 (merged) (for https://gitlab.com/gitlab-org/gitlab/-/issues/623440)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- On a GDK with the
agent_artifacts_pagefeature flag enabled and AI audit event storage turned on, seed one Duo Agent Platform session (agent_type: null) and one external session (for exampleagent_type: 'claude-code'). - Visit the group's audit events report at
http://127.0.0.1:3000/groups/<group>/-/audit_eventsand confirm the AI Item column and the session details drawer show "GitLab Duo" for the Duo Agent Platform session and "Claude Code" with an initial avatar for the external session.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Scott Hampton



