From 55be15c74c6155af4f6def93ff3f27f19973747d Mon Sep 17 00:00:00 2001 From: Wes Date: Sat, 29 Aug 2026 09:30:16 -0600 Subject: [PATCH] fix(desktop): contain history retry failures Keep exhausted recovery retries inside the notice action so retained history remains usable without an unhandled rejection. Co-authored-by: Carl <9d00794d3df50972eb8b615511783cab12a77a8fd5dd5edd58073ec73b54bd8b@buzz.block.builderlab.xyz> Signed-off-by: Wes --- desktop/src/features/messages/ui/HistoryRefreshNotice.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/features/messages/ui/HistoryRefreshNotice.tsx b/desktop/src/features/messages/ui/HistoryRefreshNotice.tsx index 201a5405f3..f4607a3c14 100644 --- a/desktop/src/features/messages/ui/HistoryRefreshNotice.tsx +++ b/desktop/src/features/messages/ui/HistoryRefreshNotice.tsx @@ -51,6 +51,10 @@ export function HistoryRefreshNotice({ ); try { await refreshChannelWindowMessages(client, channelId); + } catch { + // Exhausted query retries are already projected into refreshError. + // The recovery button owns this promise, so contain the rejection here. + return; } finally { // The observer can unmount before hydration/invalidation starts a fetch. // Retire an unclaimed token too, without clearing a newer button click.