Commit Graph
20851 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 207c7735f4 refac 2026-11-17 22:24:21 +09:00
Classic298 0ba0a4d7e2 fix: rename Capabilities to Features in the model editor (#34433)
* fix: rename Capabilities to Features in the model editor

The model editor section called Capabilities mostly holds switches for which features users see on a model, such as image generation, web search and the code interpreter, so the name led admins to expect it to describe what the model itself can do. The section is now called Features, and its tooltip no longer says the connected model and provider must support every switch, since each switch's own description says what it needs.

* Leave the English value of the new tooltip empty like its neighbours
2026-11-17 22:21:46 +09:00
G30 a53d2df676 fix: model selector filter menu updates its tags when models change (#33990) 2026-11-17 22:20:31 +09:00
Classic298 d4128f0895 fix: a prompt from an embed goes to the wrong chat or to two chats at once (#34161)
* fix: a prompt from an embed goes to the wrong chat or to two chats at once

With a note open and its chat beside it, a prompt sent by an embed in that chat was picked up by that chat and by the main chat behind the note tab, so a tool embed's "ask the chat" button opened two confirmation dialogs. In a side chat the same button asked the prompt in the main chat. Each embed now belongs to the chat that shows it, and only that chat takes its prompt; a prompt from anywhere else goes to the page's main chat as before.

Fixes #34152

* fix: route a prompt from any embedded frame to the chat that shows it

The chat a prompt belongs to is now read from where the sending frame sits on the page, for every frame and not only tool embeds, so artifacts and inline HTML in a chat tab or beside a note also reach the right chat. A prompt that comes from no frame goes to the main chat.

* Name the message's source chat apart from the chat object
2026-11-17 22:20:06 +09:00
Classic298 aca79d17b2 perf: keep the server responsive while a knowledge base is exported (#34600)
Exporting a knowledge base packed and compressed all of its files while holding up the worker process serving it, so every other request on that worker (chats, page loads, health checks) waited until the archive was done. With several exports running at once, other users saw pauses of more than a second. The download still waits for the archive, but the server now keeps answering everyone else while it is packed. In our test the worst pause dropped from about 1.3 seconds to about 0.4 seconds, and the downloaded file is unchanged.

| 200 files of ~60 KB, 10 exports at once, worst of 2 runs | before | after |
| --- | --- | --- |
| slowest health check while exporting | 1328 ms | 403 ms |

Fixes #34599
2026-11-17 22:19:48 +09:00
Classic298 0f54aee859 perf: large profile pictures and knowledge exports load much faster (#34598)
Large profile pictures of users, models and channel webhooks (animated ones, or ones set through the API) were sent out in thousands of small pieces, each handled separately, and the knowledge base export sent its zip file the same way. A 2 MB picture took around 200 to 400 ms to load, 20 loads of it at once, as on a page full of avatars, took 9 to 15 seconds, and an 8 MB export spent close to a second just sending the file. Both are now sent as one complete response with the same content type and headers, plus a size header in place of chunked sending.

| Picture | One load before | One load after | 20 at once before | 20 at once after |
| --- | --- | --- | --- | --- |
| Model, 2 MB | 207 ms | 15 ms | 9.3 s | 0.48 s |
| User, 2 MB | 379 ms | 15 ms | 15.0 s | 0.34 s |
| Model, 5 MB | 743 ms | 39 ms | 33.6 s | 0.63 s |
| User, 5 MB | 627 ms | 25 ms | 30.7 s | 0.54 s |

Fixes #34597
2026-11-17 22:18:51 +09:00
Timothy Jaeryang Baek e1b1e60e7f refac 2026-11-17 22:17:41 +09:00
Classic298 f06b8b35ad fix: uploads stall behind a knowledge base sync waiting on a slow extraction engine (#34379)
* fix: uploads stall behind a knowledge base sync waiting on a slow extraction engine

Every uploaded file started processing at once, and each file waiting on the extraction engine used up one of the server's limited worker slots, the same slots that save new uploads to storage. With a slow extraction engine a large knowledge base sync used up all of them, so every new upload, chat attachments included, had to wait for an extraction to finish before it was even saved. Files uploaded into a knowledge base now process at most half as many at a time as there are slots, and the rest wait their turn without using one, so other users' knowledge base uploads may wait too during a large sync. Chat attachments and all other uploads skip this line and process right away, as before. Measured with an extraction engine limited to one connection and 50 files synced into a knowledge base, uploads stayed under 0.1 s instead of taking up to 4 s, a chat attachment sent meanwhile was ready in 20 s instead of 42 s, and the sync took the same time.

Related to #34369

* Size the knowledge upload limit inline and type it

* Ignore an invalid thread pool size like the server does
2026-11-17 22:17:12 +09:00
Timothy Jaeryang Baek 0181885a24 refac 2026-11-17 22:15:11 +09:00
Timothy Jaeryang Baek 749d325c5f refac 2026-11-17 22:14:34 +09:00
Timothy Jaeryang Baek 0dcf8ac53f refac 2026-11-17 22:11:01 +09:00
G30 0132d879c0 fix: a tab for a channel or note that no longer exists closes instead of staying on a spinner (#34294) 2026-11-17 22:05:37 +09:00
Timothy Jaeryang Baek 97bb6b3223 refac 2026-11-17 22:04:44 +09:00
Timothy Jaeryang Baek 7e91c04125 refac 2026-11-17 22:04:06 +09:00
Timothy Jaeryang Baek ae35197cee refac 2026-11-17 22:03:13 +09:00
Timothy Jaeryang Baek 720bb54434 refac 2026-11-17 22:01:25 +09:00
joaoback 9c1521aaa4 i18n: add pt-BR translations for newly added UI items and consistency pass (#34591)
New **pt-BR** translations for items introduced in the latest releases, plus a small consistency pass across existing strings. Placeholders preserved. No logic changes.
2026-11-17 21:55:49 +09:00
Classic298 e7f02d6825 fix: MCP sign-in fails when the server signs its ID token with the client secret (#34593)
Connecting an MCP server over OAuth 2.1 failed with "Algorithm 'HS256' requires 'oct' key" when the server asked for the openid scope and signed the ID token it returned with the client secret, as Readwise does. Open WebUI tried to check that ID token against the server's published keys, which cannot work for this valid signing method, and threw away the access token it had just received. MCP connections only use the access token, so the sign-in no longer checks the ID token and the connection goes through. SSO login is unchanged.

Fixes #34504
2026-11-17 21:54:17 +09:00
Classic298 4360aeee7f perf: model list loads slowly with Redis when models have large profile images (#34595)
With Redis, every large model profile image makes each load of the model list slower, and Redis holds a full copy of every image, even though the list never shows them (the interface fetches each picture separately). Animated or imported profile images are kept at full size and can be several MB each. Open WebUI now leaves profile images out of the model details it keeps for chats, so Redis no longer holds them and the list loads faster. Functions and Tools now get the model without its profile image.

Measured with 50 custom models, one server process. Each number is the middle value of 5 runs of 60 list loads:

| | before | after |
|---|---|---|
| Redis, 4 images (20 MB as stored) | 64 ms | 45 ms |
| Redis, 12 images (57 MB as stored) | 150 ms | 86 ms |
| No Redis, 4 images | 47 ms | 45 ms |
| Redis memory used by the model list, 4 / 12 images | 24 / 71 MB | 35 KB |

Fixes #34594
2026-11-17 21:53:05 +09:00
G30 f91f3af219 fix: opening a chat that is already open in a tab no longer shows it twice side by side (#34471) 2026-11-17 20:35:15 +09:00
Classic298 b4a88505e1 fix: long Markdown files freeze the page when opened from a terminal's Files (#34491)
Opening a long Markdown file from a terminal's Files froze the whole tab, and typing inside a code block froze it again on every keystroke. The editor guessed the language of every code block that names none by trying every language it knows, about 15 ms per block, so a 750 KB file with a thousand such blocks blocked the page for 19 seconds. Code blocks with no language, or one the editor does not know, now show as plain text, as chat and the read-only file view already show them, and the same file now freezes the page for about 2 seconds. Code blocks that name a language the editor knows are highlighted as before. The same goes for the other places that use this editor, such as notes and the message box with rich text on.

Fixes #34486
2026-11-17 20:34:23 +09:00
Timothy Jaeryang Baek b462a23a70 refac 2026-11-17 20:34:05 +09:00
Classic298 ab73749ca0 fix: SSO session is lost when the provider has a temporary outage during token refresh (#34585)
When the sign-in provider was unreachable, rate limited or answered with a 5xx while Open WebUI refreshed the user's token, the stored login session was deleted. Tools and connections set to use the user's sign-in token then got no token until the user signed out and back in. Now such failures keep the session and the next tool call refreshes again, while a refresh the provider rejects still removes it, matching the earlier fix for MCP connections.

Fixes #34578
2026-11-17 20:33:00 +09:00
G30 3807e9c87e fix: the Unpin button on a pinned note shows a tooltip, as on pinned models (#34568) 2026-11-17 20:32:49 +09:00
Timothy Jaeryang Baek bf8a8dcc7f refac 2026-11-17 20:28:38 +09:00
Timothy Jaeryang Baek 1b2c6da879 refac 2026-11-17 20:28:26 +09:00
Timothy Jaeryang Baek c041c98220 refac 2026-11-17 19:59:57 +09:00
Timothy Jaeryang Baek 9a5cd68d20 refac 2026-11-17 19:57:45 +09:00
Classic298 00bd84944d fix: log a warning when an OAuth session is deleted (#34583)
Signing in past OAUTH_MAX_SESSIONS_PER_USER prunes a user's oldest stored OAuth sessions, a back-channel logout from the identity provider ends all of them, and connecting an MCP server again replaces the old session for that server. Pruning and the reconnect logged nothing, and the provider logout logged one info line per user without saying which sessions it removed, so an admin could not trace why a user's provider login was gone. Each of these deletions now logs a warning with the user, the session ID and the reason, the same way a failed token refresh already does.

Fixes #34580
2026-11-17 19:32:55 +09:00
Classic298 f3660788ab fix: OAuth session limit drops a device still in use after sign-outs elsewhere (#34586)
Signing out left the browser's stored OAuth session in place, and once a person reached OAUTH_MAX_SESSIONS_PER_USER the next sign-in removed the sessions created first. A device signed in early and still in use lost its session to ones from browsers that had already signed out. Signing out now removes that browser's stored session when the person still has another one for the same provider, and the limit removes the sessions that were signed in or refreshed least recently. A person's only session stays after sign-out, because automations and API key calls keep using it.

Fixes #34581
2026-11-17 19:32:44 +09:00
Timothy Jaeryang Baek c201472cf8 refac 2026-11-17 19:31:57 +09:00
Timothy Jaeryang Baek 3349606652 refac 2026-11-17 19:13:47 +09:00
Timothy Jaeryang Baek e1d2722520 refac 2026-11-17 18:48:38 +09:00
Classic298 c7dcba6b04 fix: a reply waiting for a tool approval is treated as finished (#34574)
When a reply stopped to wait for a tool approval, the chat treated it as finished: Regenerate showed up on it while the approval was still open, and in a voice call the answer that followed the approval was never spoken. The chat now shows such a reply as still in progress until the approval is answered and the answer is complete, so Regenerate stays hidden and a voice call speaks the answer.

Fixes #34572
2026-11-17 18:19:36 +09:00
Timothy Jaeryang Baek c68b8a632e refac 2026-11-17 17:02:34 +09:00
Timothy Jaeryang Baek dfc68aa212 refac 2026-11-17 14:06:14 +09:00
Classic298 958edefcac fix: switching an optional valve to Custom in the chat controls shows an error (#34478)
* fix: switching an optional valve to Custom in the chat controls shows an error

Switching an optional valve, such as an optional on/off setting, from Default to Custom in the Valves section of the chat controls saved the still empty box right away, and the server refused it with "Error updating function user valves". Emptying the box later failed the same way. Switching to Custom now saves once something is entered, and an emptied optional on/off or number valve goes back to its default; optional text valves still save an empty text.

Fixes #34475

* Drop a comment that restates its condition

* Name schema entries the way the schema helpers do
2026-11-17 13:59:54 +09:00
Timothy Jaeryang Baek 5ddd419539 refac 2026-11-17 13:58:25 +09:00
Timothy Jaeryang Baek 587aba0383 refac 2026-11-17 13:48:08 +09:00
Timothy Jaeryang Baek 381c81b2e2 refac 2026-11-17 12:58:50 +09:00
Classic298 a0dda93bc0 fix: Stop button stays after Send now on a queued message (#34556)
After pressing Send now on a queued message, the Stop button sometimes stayed up once the answer had finished, and the chat looked busy until the page was reloaded; it showed up mostly in side chats. When the answer ended while the chat was still updating to show the queued message, the chat kept an outdated view of the answer and went on treating it as running. The chat now looks at the latest state of the answer once it has updated, so the Stop button goes away when the answer ends.

Fixes #34553
2026-11-17 12:45:37 +09:00
Timothy Jaeryang Baek 2fd35c80ee refac 2026-11-17 12:44:09 +09:00
G30 772f16c5d4 i18n: fill missing translations in 31 languages and fix 240 existing ones (#34560) 2026-11-17 12:42:48 +09:00
Timothy Jaeryang Baek ba4c3f4ca6 refac 2026-11-17 12:33:56 +09:00
Classic298 6ac7d11a3f fix: Refresh in Files keeps the old list when the terminal cannot list the folder (#34551)
When the terminal refused to list the open folder, for example after its API key changed, pressing Refresh above the Files list kept the old entries on screen and said nothing. Refresh now clears the list and any ticked items and shows "Failed to load directory. Check your Terminal connection in Settings → Integrations.", the same as opening the folder does, and the next Refresh lists the folder again once the terminal answers. The list also reads itself again after a sort change, showing hidden files, a file change or a change on the terminal, and those reads show the same message when they fail.

Fixes #34550
2026-11-17 02:39:47 +09:00
Classic298 93a7bbb185 fix: a folder whose terminal working directory is missing loses the first message and leaves an empty chat (#34552)
Sending the first message from a folder whose default terminal points at a working directory that does not exist showed "Working directory is unavailable", but it still created an empty New Chat in the folder and switched to it, with the typed message gone from the message box. Now the warning still shows, but no chat is created: the folder page stays open and the message stays in the message box, ready to send once the directory is fixed.

Fixes #34367
2026-11-17 02:37:51 +09:00
Timothy Jaeryang Baek 485c6d50da refac 2026-11-17 02:32:18 +09:00
Timothy Jaeryang Baek 988708b8ee refac 2026-11-17 01:58:43 +09:00
Timothy Jaeryang Baek e58dacf0cb refac 2026-11-17 01:57:18 +09:00
Classic298 139ca26f93 fix: a tool call that runs past the tool server timeout reaches the model as an empty error (#34119)
When a terminal command or a tool server call took longer than the tool server timeout (AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER), the model got `{"error": ""}` back as the tool result, with nothing saying what went wrong. It now gets `{"error": "TimeoutError"}`, which is also what Open WebUI already reports when reading a tool server's list of tools times out, so the model can tell the user that the call timed out.

Fixes #34096
2026-11-17 01:28:40 +09:00