From dfdf060d8166818b22eb42a7f90a70496dbcceb2 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 25 Nov 2026 00:54:33 +0100 Subject: [PATCH] fix: opening a note saves it again without any edit (#35017) Opening or leaving a note saved its text to the server even when nothing in it was touched. Its updated time went up, so reopening a folder that still had notes open in its tabs reordered the folder's newest-first Notes list by load order instead of last edit. Opening or leaving a note without editing it no longer saves its text, and edits still save as before. Fixes #35003 --- backend/open_webui/socket/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index a949c78eff..389a180f17 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1158,6 +1158,8 @@ async def document_save_handler(document_id, data, user): page = document_page(note.data, document_id) if not isinstance(data.get('content'), dict): return None + if data['content'] == page['content']: + return note editor = await Users.get_user_by_id(user['id']) if not editor or not await has_access_to_note_files(note, get_content_files(data['content']), editor): raise ValueError('Cannot attach files you cannot access')