Skip to content

Conversation

@MarceloRGonc
Copy link
Contributor

Fixes OPS-2602.

@linear
Copy link

linear bot commented Jan 20, 2026

@MarceloRGonc MarceloRGonc changed the title WIP Rerun on latest version creates a new run Jan 20, 2026
@sonarqubecloud
Copy link

@MarceloRGonc MarceloRGonc marked this pull request as ready for review January 20, 2026 12:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where retrying a flow run on the latest version was incorrectly updating the existing run instead of creating a new one. The fix changes the backend logic to duplicate the flow run with the updated version and updates the frontend to refresh the runs list after retry.

Changes:

  • Backend service now creates a new flow run instead of updating the existing one when retrying on latest version
  • Frontend refetch functionality added to refresh runs table after retry operation
  • Function renamed from updateFlowRunToLatestFlowVersionIdAndReturnPayload to duplicateFlowRunWithUpdatedVersion to reflect new behavior

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/server/api/src/app/flows/flow-run/flow-run-service.ts Changed retry logic to create a new flow run instead of updating existing one
packages/react-ui/src/app/routes/runs/index.tsx Added refetch prop to runs table columns
packages/react-ui/src/app/features/home/runs-table/runs-table.tsx Passed refetch function to table columns
packages/react-ui/src/app/features/home/lib/home-hooks.ts Exposed refetchRuns function from dashboard data hook
packages/react-ui/src/app/features/home/components/home-operational-view.tsx Passed refetch function to HomeRunsTable component
packages/react-ui/src/app/features/flow-runs/hooks/useRunsTableColumns.tsx Updated retry success handler to refetch runs instead of updating row in place
Comments suppressed due to low confidence (1)

packages/react-ui/src/app/features/flow-runs/hooks/useRunsTableColumns.tsx:239

  • The useMemo dependency array should include 'durationEnabled' and 'refetch' since these values affect the memoized columns. Missing dependencies can lead to stale closures and incorrect behavior when these values change.
    [mutate, stopRun],

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants