From 7cd078503306f88540ca13c2424716802dd38cf9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 10 Oct 2026 22:07:19 +0400 Subject: [PATCH] refac --- backend/open_webui/socket/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 2e29d6d53c..18cd749130 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1039,6 +1039,7 @@ async def yjs_document_update(sid, data): if await document_save_handler(document_id, data.get('data', {}), user): if not await YDOC_MANAGER.get_users(document_id): await YDOC_MANAGER.clear_document(document_id) + # A waiting disconnect must see that this save has finished. await cleanup_task(REDIS, task_id, document_id) if document_id.startswith('note:') and data.get('data'):