Feat: Add trigger subheader to session details
What does this MR do and why?
This MR integrates a new trigger subheader for session details, so that users can now see which user triggered the flow.
References
GitLab Issue: #578713 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
| Screen Recording |
|---|
| Screen_Recording_2025-12-01_at_1.03.28_PM |
How to set up and validate locally
For DAP/General Setup
- General DAP: https://docs.gitlab.com/development/duo_agent_platform/
- Assigning Duo to a group: https://docs.gitlab.com/development/ai_features/#run-gitlabduosetup-script
- Make sure you are in
SaaSmode withexport GITLAB_SIMULATE_SAAS=1set in yourenv.runitfile in your local gdk.
To Test in Duo Side Rail (only test if regression testing this mode)
- Turn on the following feature flags:
duo_workflow,duo_workflow_in_ci,ai_flow_triggersandduo_side_rail. - Make sure you are NOT in the new UI
- Open Duo Chat and open the Sessions tab (the two overlapping squares icon).
- Test search queries (see below for test cases)
- A: If you see no Sessions, you can trigger one that displays a Pipeline/Job by going to an Issue within your Duo enabled project and clicking the
Generate MR with Duobutton. It should trigger a new session that you can open up. - B: You can also run the following query
bundle exec rake "gitlab:duo_workflow:populate[50,20,1,<<YOUR_TEST_GROUP_PATH_HERE>>]"to create new agent sessions. Refresh the page. Make sure the group you are testing in has Duo assigned (see DAP setup above). - Test details view (see below for test cases)
To Test in Agent Sessions page
- Navigate to a project with that has AI features enabled.
- In the left side panel, you will see
Automatewith a tanuki icon. SelectSessionsfrom the dropdown. - Test details view (see below for test cases)
To Test in new UI Side Panel
- To test this locally, make sure you have the following FFs enabled:
paneled_view,global_topbar,tailwind_container_queriesAfter you can toggleNew UIon in user's setting under the user's profile dropdown - Open the side panel and open Sessions.
- Test details view (see below for test cases)
Test Details View (The Actual Testing)
- Go to the UI Side Panel, and select/click a Session item that has not failed or been cancelled or stopped (i.e.; created, running, awaiting input, etc.).
- In the Session activity/details view, click the
Detailstab. - At the top you will notice a new header that says
@<<User>> triggered <<Flow>> <<Date>>. - You may hover or click the icon or username and be taken to the user's profile.
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.
Related to #578713 (closed)
Edited by Lindsey Shelton

