Commit Graph
21359 Commits
Author SHA1 Message Date
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
Classic298 530ef42876 fix: SCIM requests and LDAP logins write internal debug lines at INFO (#35277)
Every SCIM request from an identity provider logged the raw ENABLE_SCIM value and its Python type, and every LDAP login logged the attributes it asks the directory for and, with group management on, every step of reading the user's groups line by line, all at the default INFO level. Loading the account pending screen also logged the admin email next to a name that was always empty. These now log at DEBUG and that admin line is gone. The LDAP summary of a user's groups still logs at INFO.

Fixes #35276
2026-11-30 18:42:48 +04:00
Classic298 8713ff860b fix: sorting by a date column shows the oldest entries first (#35279)
Switching the sort to a date column put the oldest entries first in the admin user list, a group's member list, feedbacks, the archived, shared and per-user chat lists, the file manager and the file browser, so the entries people usually look for ended up at the end. Date columns now sort newest first when picked, like the workspace lists already do. Clicking again still flips the order.

Fixes #35278
2026-11-30 18:42:34 +04:00
Classic298 9f7c08ff7f fix: Ollama embedding requests log the full input text (#35273)
Every embeddings request for an Ollama model, through the Ollama endpoints or the general embeddings endpoint, logged the whole request, including all the text being embedded, at the default INFO level. That puts user content into the logs and makes huge log lines for large batches. The line now logs at DEBUG.

Fixes #35272
2026-11-30 18:42:26 +04:00
Classic298 27b4283f97 fix: importing several notes stops at the first unsupported file (#35271)
Dropping several files onto the Notes list stopped at the first file that was not .md or .txt. Files before it were created but did not show until a reload, and files after it were skipped without a word. Now unsupported files get the error and are skipped, and the rest import and show up in the list.

Fixes #35270
2026-11-30 18:42:17 +04:00
Classic298 2d03af81ef fix: paged lists repeat some entries and skip others (#35281)
The admin user list, feedbacks, groups, the workspace models, prompts and skills lists, prompt history, notes, shared chats, automations, calendar search, analytics messages and SCIM user listings are loaded page by page, and when many rows share the sorted value (a role, a bulk-import timestamp, a rating) the database is free to return those ties in a different order for each page. On PostgreSQL 16, paging through 300 users sorted by role showed 16 users twice and never showed 16 others, and with an id tiebreaker every user showed up exactly once. These lists now sort by each entry's id as a last step, as the chats and knowledge lists already do.

Fixes #35280
2026-11-30 18:41:44 +04:00
Classic298 00ad719de0 fix: a subfolder created in a collapsed folder stays hidden (#35283)
Creating a subfolder from a collapsed folder's menu showed "Folder created successfully", but the parent stayed collapsed, so the new folder was nowhere to be seen. The parent now opens and remembers that it is open, the same as clicking its arrow.

Fixes #35282
2026-11-30 18:39:38 +04:00
Classic298 4354c061d7 fix: a failed knowledge base upload shows two error toasts (#35287)
When an upload to a knowledge base failed, the real error showed and then a second, generic "Failed to upload file." right after it. Now only the real error shows.

Fixes #35286
2026-11-30 18:39:13 +04:00
Classic298 0221c17a2c fix: downloading an SVG artifact saves an .html file (#35285)
The download button in the Artifacts panel saved every artifact as an .html file, SVG artifacts included, so image editors and viewers would not open them. SVG artifacts now download as .svg files. HTML artifacts are unchanged.

Fixes #35284
2026-11-30 18:38:54 +04:00
Classic298 f513992355 fix: downloading an image from the full-size viewer saves it with the wrong extension (#35336)
Download in the full-size image viewer saved every embedded image as .png whatever its real type, and an SVG opened from a link was saved as generated_image.svg+xml. Downloads now keep the image's real type and a normal extension such as .jpeg, .webp or .svg.

Fixes #35335
2026-11-30 18:37:55 +04:00
Classic298 35ae1b52e1 fix: two error toasts when a file cannot be read in a temporary chat (#35332)
In a temporary chat, attaching a file the browser cannot read, such as a password-protected or corrupt PDF or DOCX, showed "Failed to extract content from the file: Error: ..." and then a second, generic "Failed to extract content from the file." toast. Now only the first one appears, since it already carries the reason.

Fixes #35331
2026-11-30 18:37:47 +04:00
Classic298 e0fe9d1d5c fix: "Compacting context..." popup disappears before compaction finishes (#35330)
The "Compacting context..." popup closed on its own after four seconds, so on a long chat it vanished while compaction was still running, and "Context compacted" appeared later out of nowhere. "Forking chat..." and the file browser's "Preparing download..." did the same. These popups now stay until the work is done, and the result that replaces them closes after the usual four seconds.

Fixes #35329
2026-11-30 18:36:20 +04:00
Classic298 28583a40a0 fix: chat goes blank after typing a decimal into the message version counter (#35334)
On a message with several versions, double-clicking the "2/3" counter and entering a number like 1.5 emptied the whole chat view. The number is now rounded to the nearest version, so the chat jumps to that version instead of going blank.

Fixes #35333
2026-11-30 18:36:09 +04:00
Classic298 529bb58b9a fix: a native Codex chat stops as soon as one of its subagents finishes (#35230)
When Codex started a subagent in a native Codex chat, the chat ended the moment that subagent finished, even though the main task was still working. The reply was saved as finished with whatever had arrived so far, and Codex recorded the main task as interrupted. A failing subagent also failed the whole chat with its own error. The chat now ends only when the main task itself finishes, and an error from the main task still shows.

Fixes #35226
2026-11-30 18:34:02 +04:00
Classic298 7e2b509869 feat: open a file by typing its path in the machine file browser (#35233)
Typing a file's path into the path bar of a machine's file browser tried it as a folder and showed "Failed to load directory". Now the file opens, and folder paths work as before.

Discussion: https://github.com/open-webui/open-webui/discussions/35231
2026-11-30 18:33:55 +04:00
Classic298 71de09dba5 fix: a provider error mid-reply no longer keeps the tool loop going (#35237)
When the model provider sent an error in the middle of a streamed reply that had started a tool call, Open WebUI showed the error but kept going. It asked the model for another reply, and a tool call whose arguments were already complete still ran. With a provider that kept failing, every new reply hit the error again, up to the CHAT_RESPONSE_MAX_TOOL_CALL_ITERATIONS limit (1024 by default). Now a provider error ends the reply. The error stays shown, no tool from that reply runs and no further request is sent.

Fixes #35236
2026-11-30 18:33:43 +04:00
G30 faea95e272 perf: opening a chat no longer reads all its messages again to restore its tabs (#35202) 2026-11-30 18:31:23 +04:00
Classic298 820b022061 fix: changing the sort of a paged list keeps you on the same page number (#35303)
On page 4 of Admin > Users, Admin > Evaluations > Feedback, the workspace Models, Prompts and Skills lists or a channel's member list, clicking a column header showed page 4 of the new order, somewhere in the middle of the list. Changing the sort now goes back to page 1, like the group member list already does.

Fixes #35302
2026-11-30 18:29:52 +04:00
Classic298 836a434dc9 feat: allow function sync without created_at and updated_at (#35244)
Scripts calling POST /api/v1/functions/sync had to send created_at and updated_at for every function, or the whole request was rejected with "Field required". Both are now optional. When they are left out, a new function gets the current time and an existing function keeps its original creation time, while updated_at is set by the server as before. Payloads that include them, such as the output of GET /api/v1/functions/export, work as they do today.

Fixes #35243
2026-11-30 18:28:17 +04:00