Commit Graph
21377 Commits
Author SHA1 Message Date
Classic298 4d903e1ec0 fix: model list refreshes, file uploads and transcriptions write debug lines at INFO (#35316)
Everyday requests left internal debug lines in the server log at the default INFO level: one for every OpenAI and Ollama model list refresh, one per file upload and HTML file view, and the transcription debug lines of each speech-to-text request, one of them printed straight to stdout. They now log at DEBUG, so they only show up when LOG_LEVEL is set to DEBUG.

Fixes #35315
2026-11-30 23:40:57 +04:00
Classic298 e8839502dc fix: screen readers can't tell whether the Advanced section of a connection dialog is open (#35307)
The Advanced toggle in the add connection, tool server, image connection, video connection and external knowledge dialogs only turned its arrow, so screen readers could not tell whether the section was open. It now reports open or closed, like the Advanced toggles in model, knowledge, machine and chat settings already do.

Fixes #35306
2026-11-30 23:35:39 +04:00
Classic298 615ce0ccf1 fix: an empty Custom schedule is saved as no schedule instead of being refused (#35387)
When the schedule was set to Custom and the rule left empty, Create and Save stored the automation with no schedule and without any error, so it never ran on its own. They now refuse it with "Invalid value: Custom schedule" and save nothing. The Create dialog also refuses a Once schedule set in the past again.

Fixes #35386
2026-11-30 23:35:13 +04:00
Classic298 b3d6eb4f4a fix: Read Aloud keeps playing old audio after changing TTS settings (#35312)
After an admin changed TTS settings that change how speech sounds, such as the OpenAI Additional Parameters (for example a different speed), an engine's API base URL or the Azure output format, Read Aloud on a message that had been read before still played the old saved audio. Changing those settings now produces fresh audio, while unchanged settings still reuse the saved file.

Fixes #35311
2026-11-30 23:33:45 +04:00
Classic298 22cbfafb3e fix: Perplexity web search says No results found when the request fails (#35314)
With Perplexity or Perplexity Search as the web search engine, a wrong API key or any other failed request ended in "No results found from web search", and the real reason only showed up in the server log. These failures now surface as a web search error with the HTTP status, the same way most other search engines report them.

Fixes #35313
2026-11-30 23:33:36 +04:00
Classic298 eba8cf55a3 refac: skip membership creation for group and dm channels on mute (#35229)
Muting a group or direct message channel no longer creates a membership.
2026-11-30 23:22:55 +04:00
Timothy Jaeryang Baek 5f4c16ce0c refac 2026-11-30 23:20:53 +04:00
Classic298 97e7589720 fix: the old message and its MCP app stay on screen after editing and resending (#35194)
After editing a message and sending it again, the old message, with its edit box still open, and the old MCP app never went away and stayed under the new reply. The cause was a bug in Svelte: when the old message and the old app were removed together, the app's short shutdown wait made Svelte remove neither. Svelte 5.59.2 fixes this, and with it the old branch disappears right after the app's brief shutdown, the same as when starting a new chat.

Fixes #35146
2026-11-30 23:19:18 +04:00
Classic298 7319b409b9 fix: starting a chat in a folder freezes the page on iPad for seconds (#35205)
Starting a new chat in a folder cleared and focused a message box that was replaced a moment later, then did the same to the new, already empty one. On iPad each of these resets forces the whole page to lay out again, so the reporter saw the page freeze for 2.1 to 2.7 seconds, longer with more folder tabs open. The new chat now only fills its message box when there is text to put in it. With a nearly identical change on the same iPad, the freeze dropped to 0.8 to 1.2 seconds, stopped growing with open tabs, and the keyboard still came up.

Refs #35188
2026-11-30 23:16:22 +04:00
Timothy Jaeryang Baek ca3b5c5156 refac 2026-11-30 23:15:45 +04:00
Classic298 e3651761a4 fix: failed uploads behind a proxy show a JSON parse error instead of the reason (#35263)
When a reverse proxy rejects an upload (for example nginx with its default 1 MB body limit, answering 413) or a gateway times out, the answer is an HTML page, and the upload error read "Unexpected token '<', "<html>..." is not valid JSON". Now it says "Unable to upload file (413)" with the real status code. Errors that Open WebUI itself returns show as before.

Fixes #35262
2026-11-30 23:15:17 +04:00
Classic298 68a0a4bce4 feat: the file browser remembers its sort order (#35305)
The file browser already remembers the list or grid view and whether hidden files show, but the sort order went back to Name every time it opened, in every place it is used. It now remembers the sort column and direction in this web browser the same way.

Fixes #35304
2026-11-30 23:15:08 +04:00
Classic298 4c226fc160 fix: admins cannot remove members from a group channel they did not create (#35320)
In a group channel's member list, an admin who is not the channel's creator saw Add Member but no way to remove anyone, even though the server allows admins to remove members. The remove button now shows for the same people who see Add Member.

Fixes #35319
2026-11-30 23:10:06 +04:00
Classic298 78ccfb64e3 fix: copying or downloading an older chat includes raw reasoning markup (#35301)
For chats from before reasoning was stored separately, copying the whole chat and the plain-text downloads (.txt, and PDF when stylized PDF export is off) included the raw reasoning blocks, starting with <details type="reasoning" ...>, in the text. Copying a single reply already strips them. The whole-chat copy and these downloads now strip them the same way.

Fixes #35300
2026-11-30 23:05:33 +04:00
Classic298 c865616f9a perf: stop web search URL checks from blocking the server (#35252)
Each web search resolved the address of every result site before loading it, and those lookups blocked the whole server. With many results or a slow DNS server, other users' requests stalled until all of them finished. The lookups now run without holding up other users.

<table>
<tr><th></th><th>Before</th><th>After</th></tr>
<tr><td>Longest server stall, 20 results at 50 ms per lookup</td><td>1020 ms</td><td>11 ms</td></tr>
</table>

Relates to #35245
2026-11-30 23:04:13 +04:00
Classic298 3592825be8 perf: keep the server responsive while image and video uploads are checked (#35251)
Uploading an image or video made the server check whether the file was really text first. With S3, GCS or Azure storage that check downloads the whole file, and the server stopped responding to everyone else until the download finished. The check now runs without holding up other users, so large media uploads no longer stall chats and page loads.

<table>
<tr><th></th><th>Before</th><th>After</th></tr>
<tr><td>Longest server stall with a 0.5 s storage download</td><td>511 ms</td><td>12 ms</td></tr>
</table>

Relates to #35245
2026-11-30 23:04:03 +04:00
Classic298 8b48fe94cd fix: highlight the cited text when opening a file from the source list (#35167)
Opening a file from the source list under an answer showed it with nothing highlighted, and a PDF opened at its first page instead of the cited one. This happened for any source with more than one paragraph. The source list now highlights the retrieved text and opens at the cited page again, as it did before paragraph citations. A plain citation chip in the answer still opens the whole source, as before.

Fixes #35165
2026-11-30 23:03:29 +04:00
Classic298 affd38a1d3 perf: skip an unused copy of the whole chat when sending a message (#35241)
Sending a message or asking for a new reply made a full copy of the chat history that nothing ever read, because a second copy replaces it a few lines later. Long chats paid for that copy every time a reply was requested. Nothing reads the chat between the two copies, so removing the first one changes nothing else.

<table>
<tr><th>Chat</th><th>History size</th><th>Time saved per send</th></tr>
<tr><td>50 turns, plain text</td><td>0.1 MB</td><td>0.1 ms</td></tr>
<tr><td>200 turns, plain text</td><td>0.6 MB</td><td>0.4 ms</td></tr>
<tr><td>100 turns, 10 knowledge chunks each</td><td>2.2 MB</td><td>0.6 ms</td></tr>
<tr><td>100 turns, 5 tool results of 20k characters each</td><td>9.9 MB</td><td>3.9 ms</td></tr>
</table>
2026-11-30 23:02:29 +04:00
Classic298 ad372cd0e7 perf: load sidebar folders alongside the chat list (#35242)
The sidebar only started loading folders after the chat list had arrived, so on every app load and chat list refresh the folders showed up one network round trip later than needed. The two requests do not depend on each other and now run at the same time, so the folder tree also refreshes when a newer chat list refresh replaces the current one.
2026-11-30 23:02:22 +04:00
Classic298 e4ef437a8a perf: Azure Entra ID connections no longer stall the server while fetching a token (#35246)
Every request on a connection using Microsoft Entra ID authentication fetched a fresh access token, and the server stalled for all users while it waited for Azure to answer. The token is now fetched without holding up other users' requests, and it is reused until it is close to expiring instead of being fetched again on every request.

<table>
<tr><th></th><th>Before</th><th>After</th></tr>
<tr><td>Longest server stall, two requests with a 300 ms token fetch</td><td>611 ms</td><td>11 ms</td></tr>
<tr><td>Token fetches for two requests</td><td>2</td><td>1</td></tr>
</table>

Relates to #35245
2026-11-30 23:02:09 +04:00
Classic298 fcfdc472a7 feat: find models by their ID in the admin and workspace model search (#35297)
Searching in Admin Settings > Models only matched the display name, and Workspace > Models matched the name, the base model and the owner but not the model's own ID. A model that was renamed, or whose name differs from its ID, could not be found by typing the ID that the tooltip and the API show. Both searches now match the ID too, like the chat model selector, tools and functions searches already do.

Fixes #35296
2026-11-30 23:01:02 +04:00
Classic298 0e984be144 perf: keep the server responsive during large skill imports and exports (#35250)
Importing or previewing a large skill archive, or exporting skills as a zip, froze every other user's requests on the server while the archive was unpacked or compressed. Exporting a 47 MB skill stalled the server for about a second. Unpacking and compressing now run without holding up other users, and the imported skills and exported archives are unchanged.

<table>
<tr><th>Action (47 MB skill)</th><th>Longest server stall before</th><th>After</th></tr>
<tr><td>Import zip</td><td>361 ms</td><td>53 ms</td></tr>
<tr><td>Import folder</td><td>334 ms</td><td>111 ms</td></tr>
<tr><td>Export zip</td><td>1005 ms</td><td>17 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:58:54 +04:00
Classic298 b017958361 perf: keep presence and access updates from stalling instances that use Redis (#35248)
With Redis as the websocket manager, opening or leaving a chat or note, moving the cursor in a shared note, disconnecting, and access changes each read through the whole shared session list. While that ran the worker answered no one else, so on an instance with thousands of connected sessions everyone on that worker saw stalls on every one of those events. The session list is now read batch by batch without holding up other users, and presence and access results are unchanged. Setups without Redis keep reading the in-memory list directly.

<table>
<tr><th>Sessions</th><th>Redis round trip</th><th>Longest stall before</th><th>Longest stall after</th></tr>
<tr><td>5,000</td><td>local</td><td>8 to 10 ms</td><td>about 2 ms</td></tr>
<tr><td>5,000</td><td>1 ms</td><td>40 to 46 ms</td><td>about 2 ms</td></tr>
<tr><td>20,000</td><td>1 ms</td><td>150 to 169 ms</td><td>2 to 3 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:55:25 +04:00
Classic298 555f5516b9 perf: keep the server responsive while photos are prepared for image editing (#35249)
When a photo is sent for an image edit, Open WebUI first rotates and re-encodes it so the provider sees it upright. That work stalled every other chat and request on the server for its full duration, about 130 ms per 12 MP photo and longer with each extra image in the request. It now runs without holding up other users, and the edited images are unchanged.

<table>
<tr><th>Request</th><th>Longest server stall before</th><th>After</th></tr>
<tr><td>1 photo (12 MP)</td><td>136 ms</td><td>23 ms</td></tr>
<tr><td>3 photos (12 MP)</td><td>377 ms</td><td>19 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:55:15 +04:00
Classic298 75ca922153 fix: importing tools or functions says it succeeded when every item failed (#35267)
Re-importing an export whose IDs already exist showed an "already registered" error for each item and then a green "imported successfully" toast. The success toast now only shows when at least one tool or function was actually imported. A partial import still shows it, next to the errors for the items that failed.

Fixes #35266
2026-11-30 22:52:41 +04:00
Classic298 b6175ef1a7 fix: importing chats from Settings does nothing when the file is not valid JSON or the import fails (#35269)
Settings > Data Controls > Import Chats did nothing at all for a file that is not valid JSON, and also when the server refused the import. A file that is not valid JSON now shows "Invalid file format.", the same message the sidebar import uses, and a failed import shows its error.

Fixes #35268
2026-11-30 22:52:13 +04:00
Classic298 dc91478606 fix: folders, chats and notes attached to a message show untranslated labels (#35289)
Attaching a folder to a message showed a "Document" tooltip on its icon. Attached folders, chats and notes also showed their type in English whatever the language, in the message input and on sent messages, and attached chats and folders did the same when editing a sent message. They now use the translated Folder, Chat and Note labels that already exist.

Fixes #35288
2026-11-30 22:52:05 +04:00
Classic298 21d677b440 fix: /health/db fails with a 500 and logs a traceback when the database is down (#35275)
With the database unreachable, every /health/db check failed with an error nothing caught, so monitoring got a bare 500 and the log got a full traceback each time. It now answers 503 "Database not ready" with a one-line warning, the same way /ready handles a database that does not answer.

Fixes #35274
2026-11-30 22:51:56 +04:00
Timothy Jaeryang Baek 96f2918641 refac 2026-11-30 22:51:01 +04:00
Timothy Jaeryang Baek 406fe308c0 refac 2026-11-30 22:49:49 +04:00
Classic298 48d8e2ff1c fix: assistant's automation is refused when it leaves out the action type (#35384)
When the assistant created or changed an automation from a chat, the tool told it an action's type was optional and defaulted to a prompt, but an action sent without it was refused with a raw validation error and nothing was saved. An action without a type is now read from what it holds, as a prompt or as code, so the automation is created or updated as the assistant was told it would be.

Fixes #35379
2026-11-30 22:48:05 +04:00
Classic298 3d6a092c76 fix: a failed Codex turn shows a raw object as the error instead of Codex's message (#35385)
When Codex failed a turn, the reply's error showed Codex's whole error object, field names and all, instead of the reason. The error now shows Codex's own message, the same way Claude Code and Pi failures show theirs.

Fixes #35381
2026-11-30 22:41:11 +04:00
Timothy Jaeryang Baek 82ab95e420 refac 2026-11-30 22:40:50 +04:00
Timothy Jaeryang Baek 2e648b7e58 refac 2026-11-30 22:38:50 +04:00
Classic298 0b63d59ee5 fix: status dialog closes and shows two errors when saving fails (#35326)
When saving a user status was rejected, for example because an admin turned user status off, two error toasts appeared and the dialog closed, throwing away what was typed. Now only the server's error is shown and the dialog stays open so the text can be kept or changed.

Fixes #35325
2026-11-30 22:38:02 +04:00
Classic298 9aa4ea3787 fix: several toasts and messages stay in English in every language (#35328)
A handful of messages skipped translation: the /model command toasts in chat, "No content" in the file preview, the valves load error, the knowledge file viewer's unsupported file type and empty workbook messages, the archived and deleted chats toasts in the sidebar selection bar, and the row errors in the user CSV import. They now go through translation, reusing existing strings where one already says the same thing.

Fixes #35327
2026-11-30 22:37:54 +04:00
Classic298 6ea7d06322 fix: assistant could create automations past the limit when it gave no schedule (#35382)
When an admin limits how many automations a user may have, a user at that limit could still get the assistant to create more, as long as it left out the schedule. The limit is now checked on every automation the assistant creates, with or without a schedule, exactly as on the Automations page. Admins stay unlimited.

Fixes #35378
2026-11-30 22:37:33 +04:00
Timothy Jaeryang Baek dbf16a4e0d refac 2026-11-30 22:36:09 +04:00
Timothy Jaeryang Baek 55521ccd27 refac 2026-11-30 22:35:04 +04:00
Classic298 508d273a5f fix: channel automation run is recorded as success when the model call fails (#35376)
An automation that posts to a channel was recorded as successful as soon as it started, so a failed model call still showed as Ran in Activity. The run now waits for the channel reply to finish, as a chat run already does. A reply that fails, also partway through, is recorded as failed with the error text.
2026-11-30 22:25:55 +04:00
Classic298 588d58b9ff fix: model answers the previous question after compaction between tool calls (#35375)
When context compaction ran between tool calls and the messages it kept still included an earlier question, the current prompt was moved in front of that earlier question. The model then saw the previous question as the latest one and answered it again. The current prompt now stays in its place when it is still among the kept messages, and is only put back in front of them when compaction removed it.

Fixes #35366
2026-11-30 22:25:28 +04:00
Timothy Jaeryang Baek 52cda2507a refac 2026-11-30 22:10:01 +04:00
Timothy Jaeryang Baek affe67b7df refac 2026-11-30 21:27:41 +04:00
Classic298 f20f00056f fix: mentions and avatars are announced as popups and mentions cannot be reached by keyboard (#35354)
Screen readers announced user mentions and profile avatars as collapsed popups that opened and closed while reading, and the keyboard could not reach a mention at all. Both are now announced as plain buttons. Tab reaches mentions, and Enter or Space does the same as a click, opening the profile, model or channel, while mentions with no click action, such as skill mentions, stay inactive. Keyboard focus no longer pops up the small profile card shown on hover, which the keyboard could never move into. Mouse users still get that card on hover, and mentions look and wrap as before.

Fixes #35353
2026-11-30 21:06:01 +04:00
G30 e94cb613b5 i18n: fix 12 existing translations in 3 languages (#35372) 2026-11-30 21:05:46 +04:00
Timothy Jaeryang Baek 00bc5c3dc8 refac 2026-11-30 21:03:32 +04:00
Classic298 2a01914ff0 feat: tools and functions must be written with async def (#35240)
Tools and functions written with plain def ran on the server's main loop, so a slow call inside one, such as an HTTP request, froze Open WebUI for every user on that server until it returned. Saving a tool or function in the editor now fails with an error that names every tool method or function hook (pipe, pipes, inlet, request, outlet, stream, action, event) still written with plain def. Tools and functions saved before this are switched off the next time they fail to load, the same way a function that fails to load is already switched off, and that also applies to any other load failure of a tool. Either can be switched back on once its code is updated. The starter code in both editors is async now.

Discussion: https://github.com/open-webui/open-webui/discussions/35238
2026-11-30 18:48:49 +04:00
Classic298 2734d59fdb fix: show the note header date the way the chosen language writes dates (#35224)
The date at the top of an open note called notes from the previous calendar week "last Thursday" even when they were up to 13 days old, while notes from earlier the same week showed a plain date. Older notes also always showed day/month/year, so US English users saw 19/11/2026. The header now uses the weekday only for the past six days and otherwise shows the date in the selected language's own format.

Fixes #35219
2026-11-30 18:44:02 +04:00
Classic298 d282bef94c fix: saving an event webhook hides the reason it was rejected (#35265)
Admin Settings > Events rejects some webhooks, for example a URL on a local or container host while ENABLE_LOCAL_WEB_FETCH is off, and the toast only ever said "Failed to save webhook". The server already explains the problem ("The URL you provided is invalid. Please double-check and try again."), and that message now shows instead. Turning a webhook on or off reports its errors the same way.

Fixes #35264
2026-11-30 18:43:39 +04:00
Classic298 2c36482e1d fix: readiness probes on /ready fill the access log (#35259)
Kubernetes and other orchestrators are pointed at /ready for readiness probes, and every probe wrote a "GET /ready" line to the access log, per pod, every few seconds. /health was already kept out of the access log, and now /ready is too.

Fixes #35258
2026-11-30 18:43:23 +04:00