Loading
Relabel Cancel session modal dismiss button to Dismiss
What does this MR do and why?
The agent session cancelation modal showed a "Cancel" dismiss button directly beside the destructive "Cancel session" button. Because the action itself is a cancellation, the two labels were easy to confuse.
Following Pajamas modal guidance, this MR relabels the dismiss button to the existing "Dismiss" string instead of the ambiguous "Cancel". The title, body, and danger button are unchanged.
| Element | Before | After |
|---|---|---|
| Title | Cancel session? | Cancel session? (unchanged) |
| Body | Are you sure you want to cancel this session? This action cannot be undone. | Unchanged |
| Dismiss button | Cancel | Dismiss |
| Danger button | Cancel session | Cancel session (unchanged) |
It also updates the component spec. No locale/gitlab.pot change is needed because "Dismiss" is an existing translated string.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
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.
Adding Sessions
- 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).
For this testing
- In a project with GitLab Duo Agent Platform enabled, go to AI > Sessions.
- Open a running session and select Cancel session. If you do not have a running session, you can start one by using
@ duo developerlocally in a Work Item or Merge Request comment. Or, you can use thePlan>Generateon Work Items. - Verify the confirmation modal shows a Dismiss dismiss button.
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 Emily Bauman

