[GH-ISSUE #7210] [Issue]: Large message trash freezes the page and can hide restore warnings #4026

Closed
opened 2026-10-21 06:09:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7210

Originally assigned to: @SpicyMarinara on GitHub.

Summary

A chat's message trash with thousands of entries blocks the page while it renders. With about 5,000 entries, CI WebKit froze for about 15 s on the first render and for several seconds after each Restore all batch. A restore-failure warning can then be visible for under a second, because its 6 s timer starts while the page is still blocked.

Expected behavior

Opening a large trash and restoring from it keeps the page responsive, and warnings stay readable for their full duration.

Actual behavior

  • Every trash row is rendered at once, and every row re-renders when the busy state changes.
  • On a slow device the UI freezes, and a toast shown during the freeze is gone almost as soon as it paints.

Steps to reproduce

  1. Put several thousand messages in one chat's trash (the message-trash-batching e2e mocks 5,001).
  2. Open Chat Settings → message search → Trash, then press Restore all.
  3. Watch responsiveness and any failure toast on a slower device (or CPU-throttled browser).

Environment

  • Marinara Engine version: staging / 2.5.0
  • Install type: any
  • OS + version: seen on CI Linux WebKit; affects slow phones most
  • Browser or app shell: WebKit, Chromium

Additional context

Found while fixing the flaky test in #7209 (traces from CI run 37542395904). That PR only adjusts the test's timing. The product fix would be to show only the rows on screen or split the trash into pages, and to avoid re-rendering every row when the busy state changes.

Originally created by @SpicyMarinara on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7210 Originally assigned to: @SpicyMarinara on GitHub. ## Summary A chat's message trash with thousands of entries blocks the page while it renders. With about 5,000 entries, CI WebKit froze for about 15 s on the first render and for several seconds after each **Restore all** batch. A restore-failure warning can then be visible for under a second, because its 6 s timer starts while the page is still blocked. ## Expected behavior Opening a large trash and restoring from it keeps the page responsive, and warnings stay readable for their full duration. ## Actual behavior - Every trash row is rendered at once, and every row re-renders when the busy state changes. - On a slow device the UI freezes, and a toast shown during the freeze is gone almost as soon as it paints. ## Steps to reproduce 1. Put several thousand messages in one chat's trash (the `message-trash-batching` e2e mocks 5,001). 2. Open **Chat Settings** → message search → **Trash**, then press **Restore all**. 3. Watch responsiveness and any failure toast on a slower device (or CPU-throttled browser). ## Environment - Marinara Engine version: `staging` / 2.5.0 - Install type: any - OS + version: seen on CI Linux WebKit; affects slow phones most - Browser or app shell: WebKit, Chromium ## Additional context Found while fixing the flaky test in #7209 (traces from CI run 37542395904). That PR only adjusts the test's timing. The product fix would be to show only the rows on screen or split the trash into pages, and to avoid re-rendering every row when the busy state changes.
bsakaguchi 2026-10-21 06:09:39 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 7, 2026):

Fixed on staging by #7218. Ships to main with the next promotion.

<!-- gh-comment-id:6031488531 --> @SpicyMarinara commented on GitHub (Oct 7, 2026): Fixed on `staging` by #7218. Ships to `main` with the next promotion.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4026
No description provided.