Merge pull request #1045 from PR0M3TH3AN/codex/invoke-persistcommentcache-in-teardown

Persist comment cache during teardown
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-12-12 10:42:18 -05:00
commit 683f2a1a90
1 file changed
+8
+8
View File
@@ -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();