Skip to content

[Eval > Test Suites] Stop confirmation modal allows double-submit, causing Conflict error toast #4503

Description

@mikhailcauseloue

EPAM AI DIAL Admin version

Admin: [FE]0.21.0-dev.148 [BE]0.21.0-dev.10

How to reproduce

  1. Login to Admin.
  2. Open any Test Suite that has a run with Running status, go to the Runs tab.
  3. Click the context menu (⋮) on the running run row → Stop.
  4. In the Stop confirmation modal, click the "Stop" button twice in quick succession (fast double-click, before any visual reaction from the UI).

Actual result

Two stop requests are sent. The first succeeds and the run is cancelled. The second request fails with a 409 Conflict because the run is already in CANCELLED status. The user sees both a "Run stopped" success toast and a "Conflict — Cannot cancel run with status: CANCELLED" error toast.

Image

Expected result

Only one stop request is sent. The button should be disabled or the modal should close immediately after the first click, preventing the duplicate request.

Additional information

No response

Confidential information

I confirm that do not share any confidential information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4 – LowCosmetic or edge-case issue. No functional impact. Trivial or no workaround neededbugIssues or problems that need to be fixed.evalA tag for tasks related to tools and infrastructure used for evaluating model output quality

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions