Show composite accounts as agents
What does this MR do and why?
Show composite accounts as agents
This code change adds a new "Agent" badge feature to identify users who have composite identity enforcement enabled. When users have this special setting turned on, they will now display an "Agent" badge next to their name in various parts of the application - including autocomplete dropdowns when mentioning users, and in sidebar participant lists.
The badge appears as a blue pill-shaped label with "Agent" text. The implementation involves updating the user data structures to include this new property, modifying the display templates to show the badge when appropriate, and adding the necessary styling and translations. Tests were also added to ensure the feature works correctly in different scenarios.
References
Screenshots or screen recordings
Assignee dropdown
| Before | After |
|---|---|
|
|
|
|
mentions dropdown
| Before | After |
|---|---|
|
|
Screen_Recording_2025-12-10_at_10.28.26
How to set up and validate locally
- Have AI features working
- Setup the agent to showup as an assignee account. You can do it the normal way, or hacky way
- Normal, but harder
- Setup a service account/agent
- Setup a trigger on mention and assignee
- Hack: Use this patch to force all users to be "Agents" to test the styling composite-identity-enforced-test.patch
- Normal, but harder
- In an issue, open the assignee dropdown
- Notice the agent has the label
- @ mention in a comment
- Notice the agent has the label
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.





