Commit Graph
21608 Commits
Author SHA1 Message Date
Classic298 63a77928b9 fix: Docling uploads never finish and hold a worker thread when docling-serve stalls (#35639)
With Docling as the content extraction engine, an upload whose conversion never finished, or whose status check a proxy never answered, stayed processing forever and kept its worker thread until a restart. Enough of them used up every thread and the whole app stopped answering. A conversion now fails with a clear timeout error once it runs past the new API Timeout in Admin Settings > Documents (DOCLING_API_TIMEOUT, 300 seconds by default, like the MinerU one), and a request to docling-serve that gets no answer fails after the same time. Conversions that take longer than that now fail until the timeout is raised, and 0 removes the limit.

Fixes #35625
2026-12-05 08:06:34 +04:00
G30 83b692aac2 i18n: fill missing translations in 3 languages (#35691) 2026-12-05 08:06:15 +04:00
Classic298 024181dd2d perf: knowledge base sync with many folders no longer times out (#35630)
Before syncing, the sync client asks the server which files and folders changed. To answer, the server worked out each folder's full path by searching the whole folder list again for every parent folder, so the time grew with the square of the folder count. With tens of thousands of folders that took many minutes, blocked the server meanwhile and made the sync time out. The server now looks up each parent directly, so the folder step takes a fraction of a second.

<table>
<tr><th>Folders in the knowledge base (about 5 levels deep)</th><th>Before</th><th>After</th></tr>
<tr><td>5,000</td><td>3.1 s</td><td>5 ms</td></tr>
<tr><td>10,000</td><td>19.8 s</td><td>10 ms</td></tr>
<tr><td>20,000</td><td>219 s</td><td>43 ms</td></tr>
<tr><td>64,000</td><td>stopped after 25 min</td><td>151 ms</td></tr>
</table>
2026-12-05 08:04:01 +04:00
Classic298 1e926668bc fix: browser stalls while many uploaded files are still processing (#35633)
Over plain HTTP (no HTTPS) a browser allows only six connections to one server, and the page held one of them open per uploaded file until that file was processed. Uploading more than six files at once therefore blocked every other request from that browser, so opening another chat could take minutes. The page now hears when each file is done over the live connection it already keeps for chat updates, so other pages and chats stay responsive during bulk uploads.

Fixes #35613
2026-12-05 08:03:53 +04:00
Classic298 22f8516dd9 fix: a chat compacted on demand is compacted again although little is left (#35679)
Compacting a chat by hand stores the summary on the last reply, and that reply still carried the token count of the whole history the summary replaced. The server kept counting the chat at its size from before the compaction, so when later replies reported no token count, a short chat was compacted again a couple of messages later and its reported context usage stayed at the old size. The server now counts from what is actually left after the compaction. The context usage shown in the chat (/status) is worked out by the page itself and gets the matching change in a separate fix.

Related to #35678
2026-12-05 08:03:38 +04:00
G30 26dd07f01b fix(a11y): screen readers can move through a channel by message and by heading (#35666) 2026-12-05 08:02:27 +04:00
G30 56032c82f5 fix(a11y): keyboard focus stays in the memory list after deleting a memory (#35669) 2026-12-05 08:02:17 +04:00
G30 99a40be4d5 i18n: fill missing translations in 1 language and fix 10 existing ones (#35690) 2026-12-05 08:02:04 +04:00
Timothy Jaeryang Baek 2706b137bf refac 2026-12-05 08:01:30 +04:00
Classic298 61930817db fix: context gauge shows the old size after a failed call that followed a compaction (#35682)
When a long tool run compacted the chat partway through and the very next model call failed or was stopped, for example on a rate limit, the context gauge in /status and in the input area kept showing the size from before the compaction, such as 110% where about 1% was left, and the same happened while the answer after a compaction was still streaming. A manual /compact also left the gauge at the size of the history the summary replaced, such as 60% where a few dozen tokens were left. The page now counts only the summary and the messages after it, which is what the model receives next, and after a compaction during a tool run or a manual /compact it ignores token counts from before it until a call after it has answered. One shared function now does this count instead of the two copies the page kept, and it pairs with #35649 and #35679, which apply related rules on the server.

Fixes #35678
Related to #35644
2026-12-05 07:56:56 +04:00
Classic298 a710766e33 perf: SCIM group syncs that add many members finish in seconds instead of minutes (#35629)
When an identity provider added many people to a group in one sync, Open WebUI added them one at a time and re-checked the whole group and every connected session for each person, so large groups took minutes. All the people added in one request are now added together, and the resulting group membership is the same as before.

<table>
<tr><th>Members added in one sync</th><th>SQLite before</th><th>SQLite after</th><th>PostgreSQL before</th><th>PostgreSQL after</th></tr>
<tr><td>500</td><td>2.0 s</td><td>0.07 s</td><td>3.0 s</td><td>0.17 s</td></tr>
<tr><td>2,000</td><td>13.4 s</td><td>0.19 s</td><td>14.0 s</td><td>0.62 s</td></tr>
<tr><td>8,000</td><td>187 s</td><td>1.4 s</td><td>158 s</td><td>2.4 s</td></tr>
<tr><td>2,000 with 5,000 users online</td><td>19.7 s</td><td>0.96 s</td><td>31.2 s</td><td>0.32 s</td></tr>
</table>
2026-12-05 07:56:35 +04:00
Classic298 ee2f09d6f0 fix: desktop app shows a toast for every finished reply, even in the chat on screen (#35626)
In the desktop app, every finished reply popped up a toast even when that chat was open and the window was focused. Open WebUI asks the desktop app whether its window is focused, and current desktop versions do not support that request and answer with an error, which was read as "not focused". Only a real answer now counts, and otherwise the page's own visibility decides as in a normal browser.

Fixes #35622
2026-12-05 07:56:21 +04:00
Classic298 259fe51cb7 perf: typing lags while many folder chat tabs are open (#35689)
Typing in a folder chat gets sluggish once a dozen chats are open as tabs. Every key press searched the whole page for an open dialog before checking whether the key was a tab shortcut at all, and that search gets slower with every open tab. Now only the tab shortcut keys trigger the search, so normal typing skips it and the shortcuts behave as before.

The table shows typing 40 characters with 12 folder chat tabs open, as the median of 8 interleaved runs per side (Chromium with 6x CPU slowdown, WebKit unthrottled).

<table>
<tr><th>action</th><th>browser</th><th>before</th><th>after</th></tr>
<tr><td>time the page is blocked while typing</td><td>Chromium</td><td>1012 ms</td><td>79 ms</td></tr>
<tr><td>time the page is blocked while typing</td><td>WebKit</td><td>2870 ms</td><td>864 ms</td></tr>
<tr><td>delay from key press to screen update</td><td>Chromium</td><td>58 ms</td><td>43 ms</td></tr>
<tr><td>delay from key press to screen update</td><td>WebKit</td><td>63 ms</td><td>35 ms</td></tr>
</table>

Fixes #35688
2026-12-05 07:56:00 +04:00
Timothy Jaeryang Baek 5573fca1f2 refac 2026-12-05 07:55:36 +04:00
Timothy Jaeryang Baek 14da6b83ed refac 2026-12-05 07:50:03 +04:00
Timothy Jaeryang Baek 954e7c19a4 refac 2026-12-05 07:46:22 +04:00
Timothy Jaeryang Baek 7cfbcfecf7 refac 2026-12-05 07:45:32 +04:00
Timothy Jaeryang Baek d172d26647 refac 2026-12-05 07:40:44 +04:00
Timothy Jaeryang Baek 47952d4aa2 refac 2026-12-05 07:36:54 +04:00
Timothy Jaeryang Baek 9ef4048d57 refac 2026-12-05 07:35:52 +04:00
Timothy Jaeryang Baek 8a1e63b597 refac 2026-12-05 07:33:42 +04:00
Timothy Jaeryang Baek d69c8ee947 refac 2026-12-05 07:32:11 +04:00
Timothy Jaeryang Baek f329d2bcfb refac 2026-12-05 07:27:20 +04:00
Timothy Jaeryang Baek 4c0f448eb2 refac 2026-12-05 07:26:35 +04:00
Timothy Jaeryang Baek 7b00648ce5 refac 2026-12-05 07:25:38 +04:00
Timothy Jaeryang Baek 48999b3369 refac 2026-12-05 07:23:18 +04:00
Timothy Jaeryang Baek cbca97a6b8 refac 2026-12-05 07:19:03 +04:00
Timothy Jaeryang Baek 81cf78104b refac 2026-12-05 07:15:10 +04:00
Timothy Jaeryang Baek d05478cd66 refac 2026-12-05 07:15:00 +04:00
Timothy Jaeryang Baek 16993810d7 refac 2026-12-05 07:12:06 +04:00
Timothy Jaeryang Baek 516e60966d refac 2026-12-05 07:06:03 +04:00
Timothy Jaeryang Baek 7de92922fa refac 2026-12-05 06:57:35 +04:00
Timothy Jaeryang Baek f1bcf93696 refac 2026-12-04 08:26:52 +04:00
Timothy Jaeryang Baek 67ae3012bb refac 2026-12-04 08:20:45 +04:00
G30 ff1ba7a507 fix(a11y): Workspace tab counts meet text contrast with Accessibility Mode on (#35602) 2026-12-04 08:13:18 +04:00
G30 f4a63fa13d i18n: fill missing translations in 1 language (#35610) 2026-12-04 08:13:07 +04:00
Timothy Jaeryang Baek 89b2c9d919 refac 2026-12-04 08:05:29 +04:00
Classic298 d15ba19e98 fix: a HEIC photo that cannot be converted is dropped without an error (#35592)
Attaching a damaged HEIC photo failed badly: the chat input did nothing, a channel showed "[object Object]" and a note showed an upload that never finished. Now each of them shows an error and attaches nothing. Photos that convert fine upload as before.

Fixes #35580
2026-12-04 08:03:22 +04:00
程序员澜桥-Luca 5e5118129c i18n: clarify RAG reranker settings in Simplified Chinese (#35572) 2026-12-04 07:57:15 +04:00
Timothy Jaeryang Baek f612c4db83 refac 2026-12-04 07:48:14 +04:00
G30 7eb87a08d6 fix(a11y): sidebar folder, channel and direct message buttons are 24 pixels square when Accessibility Mode is on (#35598) 2026-12-04 07:44:18 +04:00
G30 232a43f7b6 fix(a11y): Admin and User role badges meet text contrast in the light theme with Accessibility Mode on (#35597) 2026-12-04 07:43:59 +04:00
Classic298 f913c3ef24 perf: return freed memory to the system after traffic bursts (#35593)
After a burst of file uploads and long chats, the process kept most of the memory it needed at the peak, and every further burst added more. On Linux with glibc, blocks of 1 MB and larger now go back to the system as soon as they are freed, which stops the growth, and every 30 seconds the freed memory glibc still holds is returned too, which brings the level down further. `MALLOC_RELEASE_THRESHOLD` sets that size in bytes and `MALLOC_TRIM_INTERVAL` that interval in seconds, and `0` turns either one off. While the threshold is on, it overrides glibc's own `MALLOC_MMAP_THRESHOLD_` and `MALLOC_TRIM_THRESHOLD_`. The median request took about 9% longer on this upload-heavy load (9.8 s to 10.7 s) with both on.

900 chats with a file upload each, in six bursts of 150. The process sat at 1.18 GB before the load in every run.

<table>
<tr><th></th><th>Memory after the load</th></tr>
<tr><td>Without the change</td><td>4.47 GB, still climbing</td></tr>
<tr><td>Immediate release only</td><td>1.95 GB</td></tr>
<tr><td>Periodic release only</td><td>4.26 GB, still climbing</td></tr>
<tr><td>Both</td><td>1.52 GB, flat</td></tr>
</table>

Fixes #35590
2026-12-04 07:43:07 +04:00
G30 5ceca64681 fix(a11y): the Notes and folder tag button is named by the text it shows (#35605)
* fix(a11y): the Notes and folder tag button's name includes the text it shows

* fix(a11y): start the tag button's name with the text it shows
2026-12-04 07:40:58 +04:00
G30 f1d7fc0979 i18n: fill missing translations in 62 languages (#35606) 2026-12-04 07:39:55 +04:00
Timothy Jaeryang Baek 4116a5bffe refac 2026-12-04 07:30:14 +04:00
Timothy Jaeryang Baek 47321e0d74 refac 2026-12-04 07:25:39 +04:00
Timothy Jaeryang Baek acc8823259 refac 2026-12-04 06:53:09 +04:00
Timothy Jaeryang Baek 0481ad7c2e refac 2026-12-04 06:30:25 +04:00
Timothy Jaeryang Baek 924e9885fc refac 2026-12-04 06:05:19 +04:00