Commit Graph
20322 Commits
Author SHA1 Message Date
Classic298 2fb2e9ea27 fix: automatic SSO sign-in fails with a state mismatch after the session expires (#33791)
With OAUTH_AUTO_REDIRECT on, an expired or invalid session sent the browser to the identity provider while the sign-out request was still running. When that request finished it wiped the login state, so the callback failed and the user landed on the sign-in page with an error. The sign-out now completes before the redirect, so the user is signed back in without an error.

Fixes #33783
2026-11-06 08:05:32 +09:00
G30 8ebc96d3d8 fix(ui): remove the blur behind the page top bars (#33799) 2026-11-06 08:04:54 +09:00
Classic298 dd42f4e913 refac: skip background work for accounts that were deactivated meanwhile (#33801)
Follow-up generation after a response and replies to channel mentions are now skipped when the account that triggered them has been deactivated in the meantime.
2026-11-06 07:53:32 +09:00
G30 88cf7f209c fix: the feedback model filter stays after deleting the last feedback (#33794) 2026-11-06 07:50:04 +09:00
Classic298 a715f569d1 refac: apply the Notes switch to live note editing (#33797)
Live note editing now follows the instance's Notes switch and the Notes permission, like the rest of the Notes feature.
2026-11-06 06:59:08 +09:00
Classic298 c165ee14f0 perf: opening a chat no longer loads the whole conversation to mark it read (#33666)
Every time a chat is opened, the server marks it as read, and to do so it loaded and parsed the full chat, images included, just to save the last-read time. Marking a chat as unread and removing a tag from a chat did the same. These now touch only the few chat fields they change, which makes them 4 to 6 times faster on large chats.

Measured on SQLite, best of 7 runs, sizes are the chat as stored in the database:

| Chat | Action | Before | After |
| --- | --- | --- | --- |
| 7 MB, text only | open (mark read) | 19.8 ms | 3.5 ms |
| 7 MB, text only | mark as unread | 20.7 ms | 3.5 ms |
| 7 MB, text only | remove tag | 21.2 ms | 3.4 ms |
| 49 MB, with images | open (mark read) | 122.2 ms | 30.0 ms |
| 49 MB, with images | mark as unread | 124.2 ms | 29.1 ms |
| 49 MB, with images | remove tag | 120.5 ms | 28.6 ms |
2026-11-05 22:38:25 +09:00
Timothy Jaeryang Baek 7efb494a2b refac 2026-11-05 22:38:02 +09:00
Timothy Jaeryang Baek 0c21d4ed84 refac 2026-11-05 22:35:59 +09:00
Classic298 f59552efff perf: stop resending the whole reply on every reasoning chunk with OpenRouter-style providers (#33698)
Providers such as OpenRouter attach reasoning details to every reasoning chunk, and each of those chunks made Open WebUI send the entire reply so far to the browser and, with Redis, rewrite the copy kept for page reloads. The browser never shows these details, so a long reasoning reply moved tens of megabytes for a few kilobytes of text. Those chunks now stream like any other reasoning text, and the details are still saved with the reply and still sent back to the provider on the next request.

Measured against a simulated OpenRouter-style provider streaming 1,500 reasoning chunks:

| | before | after |
|---|---|---|
| Data sent to the browser | 73.6 MB | 0.73 MB |
| Redis writes for the reload copy | 1,504 | 19 |
2026-11-05 22:30:39 +09:00
Classic298 b6d861645b fix: chat stops working with Ollama after a tool call with broken arguments (#33697)
A tool call whose arguments were cut off, rejected before it ran or sent empty made every later message with an Ollama model fail, so the chat stayed stuck until that message was edited or removed. Such calls are now sent to Ollama with empty arguments and the conversation continues.

Fixes #33671
2026-11-05 22:27:27 +09:00
Timothy Jaeryang Baek 75f8ae5584 refac 2026-11-05 22:25:44 +09:00
Timothy Jaeryang Baek 4615d30a61 refac 2026-11-05 22:16:14 +09:00
Timothy Jaeryang Baek 0413768244 refac 2026-11-05 22:12:49 +09:00
Timothy Jaeryang Baek 8366e28725 refac 2026-11-05 21:59:46 +09:00
Timothy Jaeryang Baek 1632222f39 refac 2026-11-05 21:50:59 +09:00
Classic298 e9cb194f46 fix: large spreadsheet upload takes minutes and stalls the server (#33770)
Uploading a big, sparsely filled .xlsx sent the document parser into a very slow table-detection step; a 28,000-row sheet took around 13 minutes, long enough for health checks to fail and pods to be restarted. Spreadsheets are now read as a whole sheet without that step, which took a 2,500-row sheet from 17.6 s to about 1 s with identical text. Sheets that hold several separate tables on one sheet now come out as one block instead of one block per table.

Fixes #33768
2026-11-05 21:47:16 +09:00
G30 bc14c37670 fix(a11y): sorting or paging a workspace or notes list keeps keyboard focus (#33743) 2026-11-05 21:45:16 +09:00
Timothy Jaeryang Baek 72398bbc7a refac 2026-11-05 21:44:51 +09:00
Timothy Jaeryang Baek f0d4d5cd26 refac 2026-11-05 20:56:31 +09:00
Timothy Jaeryang Baek bb89844517 refac 2026-11-05 20:47:26 +09:00
Timothy Jaeryang Baek f789a07420 refac 2026-11-05 20:33:47 +09:00
Classic298 870107b34b feat: set default tools for all models in admin Model Defaults (#33749)
Workspace tools could only be enabled per model, so every model had to be edited to get a tool auto-enabled in new chats. The Model Defaults section in the admin Models settings now has a Tools picker. Models without their own tool list start new chats with those tools enabled; models with their own list keep it.
2026-11-05 20:00:48 +09:00
Timothy Jaeryang Baek 0349240ce9 refac 2026-11-05 19:31:22 +09:00
Timothy Jaeryang Baek cd1aadd751 refac 2026-11-05 19:24:41 +09:00
Classic298 ac8bc4552a fix: Milvus knowledge base uploads process each file again and store its chunks twice (#33745)
On Milvus, adding a file to a knowledge base made Open WebUI process the file again, even though it had already been processed on upload. The chunks already stored for the file were also duplicated, so chats using that file got repeated content. The check for existing chunks now works on Milvus, so the file is processed once for the knowledge base and nothing is duplicated.

Fixes #33744
2026-11-05 19:09:40 +09:00
Timothy Jaeryang Baek 3b1a953836 refac 2026-11-05 19:09:22 +09:00
Timothy Jaeryang Baek 6b69a5b685 refac 2026-11-05 18:57:32 +09:00
Classic298 5beeb0cc29 fix: every chat message fails on a Redis Cluster deployment (#33766)
With REDIS_CLUSTER enabled, every chat message failed with an error. The Redis connection recently added for terminal connections was used before it had read the cluster's layout. That connection now reads the layout first, so chats work again on a Redis Cluster. Plain Redis and Sentinel setups behave as before.

Fixes #33765
2026-11-05 18:40:11 +09:00
Timothy Jaeryang Baek 393dd6689c refac 2026-11-05 17:32:32 +09:00
Timothy Jaeryang Baek 6b826c7585 refac 2026-11-05 16:54:50 +09:00
Timothy Jaeryang Baek 13e0fd2c5f refac 2026-11-05 16:37:39 +09:00
Timothy Jaeryang Baek 8c53aa5875 refac 2026-11-05 16:30:34 +09:00
Timothy Jaeryang Baek f61f50158e refac 2026-11-05 16:24:29 +09:00
Timothy Jaeryang Baek 22947a357a refac 2026-11-05 16:11:38 +09:00
Timothy Jaeryang Baek e236677e93 refac 2026-11-05 16:00:05 +09:00
Timothy Jaeryang Baek 6263394835 refac 2026-11-05 14:42:13 +09:00
Timothy Jaeryang Baek fca859cef3 refac 2026-11-05 14:14:23 +09:00
Timothy Jaeryang Baek eb4ff07b29 refac 2026-11-05 14:05:29 +09:00
Timothy Jaeryang Baek d77709357b refac 2026-11-05 13:59:38 +09:00
Timothy Jaeryang Baek c16b77ba07 refac 2026-11-05 13:57:52 +09:00
Timothy Jaeryang Baek 2a6adef639 refac 2026-11-05 13:43:20 +09:00
Timothy Jaeryang Baek be9a4f81df refac 2026-11-05 13:38:41 +09:00
Timothy Jaeryang Baek 10ae22ec69 refac 2026-11-05 13:35:07 +09:00
Timothy Jaeryang Baek 76b1ce4f14 refac 2026-11-05 13:26:17 +09:00
Timothy Jaeryang Baek fd7b5cabc0 refac 2026-11-05 13:21:39 +09:00
Timothy Jaeryang Baek cc58d4ec6e refac 2026-11-05 12:49:29 +09:00
Timothy Jaeryang Baek a773323e4a refac 2026-11-05 12:32:27 +09:00
Timothy Jaeryang Baek 457f2edd2d refac 2026-11-05 12:29:50 +09:00
Timothy Jaeryang Baek 69189cbaad refac 2026-11-05 12:01:25 +09:00
Timothy Jaeryang Baek 99f4541e3b refac 2026-11-05 12:00:17 +09:00