open-webui/src/lib/components/common
Classic298 9189033c37 fix: seed a note's collaborative document from its stored content
A note written outside the editor (the write_note tool, or any POST to /api/v1/notes/create) has no Yjs update history, so the first client to open it received an empty document and the save that followed wrote that emptiness back over the note. The content was still in the database up to that moment, then gone, with only the title left.

The server now builds the Yjs document from the note's stored ProseMirror json when there is no update history yet, so a client opens the note with its real content instead of a blank document. The client id is derived from the content, which makes two workers seeding the same note a no-op rather than a duplication.

Notes that only carry markdown still rely on the editor's own seeding, since building ProseMirror json from markdown server-side would mean reimplementing the editor's schema in Python. That path was also gated on being the only session joined to the note, so a second viewer disabled it entirely; it now elects the lowest joined session, which keeps a single seeder without giving up on seeding.
2026-08-13 13:28:10 +02:00
..
RichTextInput fix: seed a note's collaborative document from its stored content 2026-08-13 13:28:10 +02:00
Tags refac 2026-08-10 18:52:18 -06:00
Valves feat: Dynamically load leaflet to improve first-screen loading speed 2025-09-17 08:20:56 +00:00
AccessButton.svelte refac 2026-08-12 00:51:12 -06:00
Badge.svelte refac 2026-08-10 18:52:18 -06:00
Banner.svelte refac 2026-07-14 04:15:20 -04:00
ChatList.svelte refac 2026-07-14 04:15:20 -04:00
Checkbox.svelte refac 2026-08-12 00:51:12 -06:00
CodeEditor.svelte refac 2026-07-17 05:31:32 -04:00
CodeEditorModal.svelte refac 2026-07-14 04:15:20 -04:00
Collapsible.svelte refac 2026-08-10 23:37:45 -06:00
ConfirmDialog.svelte fix: expose ConfirmDialog with dialog role and label its input (WCAG 4.1.2, 3.3.2) (#26769) 2026-07-27 01:15:12 -04:00
DocxPreview.svelte refac 2026-08-10 18:52:18 -06:00
DragGhost.svelte refac 2026-03-22 22:01:38 -05:00
Drawer.svelte fix: fix memory leaking of Drawer (#23724) 2026-04-14 12:20:47 -05:00
Dropdown.svelte refac 2026-07-27 03:59:12 -04:00
DropdownMenu.svelte refac 2026-08-10 18:52:18 -06:00
DropdownOptions.svelte refac 2026-08-10 18:52:18 -06:00
DropdownSub.svelte refac 2026-07-26 18:02:33 -04:00
Emoji.svelte enh: emoji folder icon 2025-09-04 02:50:50 +04:00
EmojiPicker.svelte refac 2026-08-10 18:52:18 -06:00
FileItem.svelte refac 2026-08-13 02:07:02 -06:00
FileItemModal.svelte refac 2026-08-10 01:26:04 -06:00
Folder.svelte a11y 2026-08-11 01:25:20 -06:00
FullHeightIframe.svelte Merge pull request #26914 from Classic298/srcdoc-embed-prompt-confirmation 2026-07-10 13:28:39 -05:00
HotkeyHint.svelte feat: add setting to toggle keyboard shortcuts on/off (#27300) 2026-07-23 22:14:56 -04:00
Image.svelte refac 2026-08-13 02:03:13 -06:00
ImagePreview.svelte refac 2026-07-27 01:21:00 -04:00
InputModal.svelte refac 2026-07-14 04:15:20 -04:00
InterfaceSettings.svelte refac 2026-08-12 01:02:02 -06:00
Loader.svelte fix: message delete issue 2025-06-02 23:25:38 +04:00
Marquee.svelte feat: onboarding screen 2024-11-03 03:00:28 -08:00
MobileSwipePanel.svelte refac 2026-08-11 17:44:34 -06:00
Modal.svelte refac 2026-07-15 04:29:16 -04:00
MultiSelect.svelte refac 2026-08-12 00:51:12 -06:00
NativeSelect.svelte refac 2026-06-29 05:14:03 -05:00
Overlay.svelte refac 2026-07-14 04:15:20 -04:00
Pagination.svelte refac 2026-08-10 18:52:18 -06:00
PanzoomContainer.svelte chore: format 2026-04-01 04:36:02 -05:00
PDFViewer.svelte refac 2026-08-10 18:52:18 -06:00
PptxPreview.svelte refac 2026-08-10 18:52:18 -06:00
RichTextInput.svelte refac 2026-08-11 00:06:21 -06:00
Select.svelte refac 2026-08-12 00:51:12 -06:00
Selector.svelte refac 2026-07-14 04:15:20 -04:00
SensitiveInput.svelte fix: give SensitiveInput a unique default id (WCAG 1.3.1, 4.1.2) (#27488) 2026-07-26 17:37:45 -04:00
SettingsSelect.svelte refac 2026-07-15 18:26:29 -04:00
Sidebar.svelte refac: styling 2025-01-17 17:03:25 -08:00
SlideShow.svelte chore: streamline the URL used for resources like favicon.png 2025-07-09 09:14:51 +02:00
Spinner.svelte refac: styling 2025-06-27 16:15:16 +04:00
SplitCreateButton.svelte refac 2026-08-12 00:51:12 -06:00
SVGPanZoom.svelte refactor(SVGPanZoom): Fix memory leaking - consolidate zoom lifecycle into PanzoomContainer (#23236) 2026-03-30 20:54:28 -05:00
Switch.svelte refac 2026-08-12 00:51:12 -06:00
Tags.svelte refac 2026-08-10 18:52:18 -06:00
Textarea.svelte refac 2026-07-26 17:51:49 -04:00
ToolCallDisplay.svelte refac 2026-08-10 23:37:45 -06:00
Tooltip.svelte fix: Fix Tooltip memory leaking and type define (#21969) 2026-02-28 14:01:28 -05:00
Valves.svelte feat: multiselect valve input type with static or dynamic options (#26884) 2026-07-27 01:11:38 -04:00