From dacf5557bb095f59fa80aa6f8102e3352e18de16 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 12 Dec 2025 10:40:48 -0500 Subject: [PATCH] Persist comment cache during teardown --- js/services/commentThreadService.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/services/commentThreadService.js b/js/services/commentThreadService.js index 7a915bc4..bc5e4057 100644 --- a/js/services/commentThreadService.js +++ b/js/services/commentThreadService.js @@ -947,6 +947,14 @@ export default class CommentThreadService { } teardown() { + try { + this.persistCommentCache(); + } catch (error) { + if (this.logger?.warn) { + this.logger.warn("[commentThread] Failed to persist comment cache:", error); + } + } + if (this.subscriptionCleanup) { try { this.subscriptionCleanup();