Skip to content

Retrying a partial video update reverses completed changes #3679

Closed

Description

@AksharP5

Description

In the dashboard’s Add Videos dialog for a team folder or space, retrying a partially failed update can undo the changes that succeeded. The dialog treats selected videos as toggles against the current collection membership. It refreshes that membership after the update, but keeps completed changes selected when the other action returns a failure.

This changes which videos are shared in the collection; it does not delete recording files.

Reproduction

  1. Start with existing-video in the folder or space and new-video outside it.
  2. Open Add Videos and select both videos, intending to add the new one and remove the existing one.
  3. Click Update videos. Let one action succeed while the other returns { success: false }.
  4. After the error, click Update videos again without changing the selection.

Expected final membership: [new-video].

First update Before fix, after retry With the correction
Addition succeeds; removal fails [] [new-video]
Addition fails; removal succeeds [new-video, existing-video] [new-video]

The regression in the linked PR executes these steps through the actual client component, React Query, dialog, grid and cards. Server-action callbacks provide deterministic success/failure results:

bun run --cwd apps/web test __tests__/unit/add-videos-dialog-retry.test.ts

Both cases fail against the baseline component and pass after clearing successful submitted changes from the selection. Failed changes remain selected for retry.

Additional Context

  • Baseline: 620f65b6cbc82383f470b59b52094572d6e59fe6.
  • Environment: Linux, Node 24.22.1, Bun 1.4.4, Vitest 3.2.6, web React 19.2.4, jsdom.
  • The shared component also manages organization video sharing.
  • This reproduces actions returning an explicit failure result. Ambiguous writes or rejected network promises remain outside the correction.
  • No live browser or database end-to-end run was performed.
  • Related cache-update suggestions in #1034 do not clear completed selection, so they do not address this retry reversal.

Activity

  1. linear commented on Nov 3, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions