From 320dbf492debcc757c31d3cc9c8a732aabd4e744 Mon Sep 17 00:00:00 2001 From: Callum Alpass Date: Mon, 2 Nov 2026 23:13:51 +1100 Subject: [PATCH] Keep the open thread on screen while reconnecting The session resubscribes threads itself after a reconnect; App no longer drops the subscription, so the thread doesn't blank to loading. --- src/ui/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/App.tsx b/src/ui/App.tsx index bb52e45..cf2e93e 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -220,9 +220,10 @@ export function App(props: { readonly session: T3Session; readonly config: Tui3C const [thread, setThread] = useState(null); useEffect(() => { setThread(null); - if (!watchedId || shell.status.type !== "live") return; + if (!watchedId) return; + // The session resubscribes after a reconnect; meanwhile the thread stays on screen. return session.watchThread(watchedId, setThread); - }, [session, watchedId, shell.status.type]); + }, [session, watchedId]); const unread = threadRow?.unread === true; useEffect(() => {