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
Screenshot 2026-09-18 at 2.19.40 PM.png Screenshot 2026-09-21 at 1.51.27 PM.png

How to set up and validate locally

For DAP/General Setup

Adding Sessions

  1. 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 Duo button. It should trigger a new session that you can open up.
  2. 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

  1. In a project with GitLab Duo Agent Platform enabled, go to AI > Sessions.
  2. Open a running session and select Cancel session. If you do not have a running session, you can start one by using @ duo developer locally in a Work Item or Merge Request comment. Or, you can use the Plan > Generate on Work Items.
  3. 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

Merge request reports

Loading
Loading