Commit Graph
6166 Commits
Author SHA1 Message Date
Classic298 636dd45c30 fix: saving an automation after its expiry passed fails with "The expiry time is in the past." (#35400)
The first save on an automation's page cut its expiry down to the minute, so an expiry the model had set, like "in 2 hours", moved up to a minute earlier, and if it had already passed by that first save, every edit was refused, even just a rename. An expiry left untouched now stays exactly as it was stored, and only a newly picked one is checked.

Fixes #35395
2026-12-01 00:26:39 +04:00
Timothy Jaeryang Baek beed6b130e refac 2026-12-01 00:26:01 +04:00
Classic298 6438a63b35 fix: Calendar and upcoming runs show runs after an automation's expiry (#35399)
An automation with an expiry stops running once the expiry passes, but the Calendar's Scheduled Tasks and the upcoming runs the automation reports, on its page and to the model, kept listing every run of its schedule, including the ones after the expiry. These now end before the expiry, so they only list runs that will really happen; a run set exactly at the expiry never fires, so it is left out too.

Fixes #35394
2026-12-01 00:24:46 +04:00
Timothy Jaeryang Baek d13ecf6816 refac 2026-12-01 00:24:00 +04:00
Classic298 a658799f98 fix: failed OAuth picture fetch resets the user's picture to the default (#35389)
With the "Update Picture" setting turned on, any failure to fetch the picture from the identity provider (an outage, a 404, a URL the server refuses to fetch or an image type it does not accept) replaced the user's current picture with the default icon, and it stayed that way on every login until the fetch worked again. A failed fetch now keeps the current picture. A provider that sends no picture at all still resets it to the default, and a new user whose picture cannot be fetched still gets the default icon.

Fixes #35360
2026-12-01 00:23:17 +04:00
Classic298 c55c3f101c fix: default Automations Sharing permission reverts on save (#35398)
Turning on Automations Sharing in the default user permissions did not stick. After saving, the switch was off again, and regular users still could not share their automations; only granting it through a group worked. The default permissions now keep this setting like every other sharing option.

Fixes #35396
2026-12-01 00:22:26 +04:00
Classic298 6b25846a92 fix: knowledge base list and file search errors bypass the server log (#35318)
When listing knowledge bases, searching their files or listing a knowledge base's files hit an error, the page just showed an empty list and the error was printed to stdout as a single bare line, outside the normal log format and without a traceback. These errors now go through the server log with the full traceback, like the other knowledge base errors already do. The page still shows an empty list in that case.

Fixes #35317
2026-12-01 00:21:28 +04:00
G30 fc6ac78738 perf: the model list is sent without a second pass over data that is already JSON (#35212) 2026-12-01 00:19:25 +04:00
Classic298 c64032e714 fix: features read the attached-files list instead of what the user typed (#35192)
With native function calling, a saved chat with attachments put the list of attached files where features look for the user's message. The RAG template's {{QUERY}} slot, document search, memory search, the tool permission reviewer and the search queries for preloaded files got that list instead of what the user typed, and with an image attached the question was missing entirely. /skills:create was ignored whenever a file was attached. They now all use the user's own text, and the attachment list still reaches the model unchanged. With Preload files on, memory search and the reviewer still see the retrieved document text in front of the question, which is a separate problem.

Fixes #35163
Fixes #35195
2026-12-01 00:18:59 +04:00
Classic298 29589aa9ea fix: a tool server saved without a name shows as a blank row in the Tools menu (#35397)
Saving a tool server with the Name field left empty listed it in the chat's Tools menu with no text at all. An empty name now counts as no name, so an OpenAPI server shows the title from its spec and an MCP server shows "MCP Tool Server". A name you set still wins. Servers already saved without a name show correctly too, no need to save them again.

Fixes #33203
2026-12-01 00:18:17 +04:00
Classic298 926d43fb91 refac: scope model file lookup to the file owner (#35253)
Workspace models now only grant access to an attached knowledge file when the model owner owns that file, and the chat tools and the model's list of attached knowledge follow the same rule. Saving, re-importing or restoring a model only re-checks newly added files, so editors can keep working on models that already hold files.
2026-12-01 00:18:01 +04:00
Classic298 bc410a62bd fix: show a next run moved by an automation's code on its page and in the Calendar (#35388)
When an automation's code moved its next run, the run happened at the new time, but the automation page kept showing the regular scheduled time and the Calendar did not list the moved run. Both now show the next run as it will really happen, including for automations that only run manually, and the Calendar leaves out the scheduled times the moved run replaces. Once the moved run is done, both go back to the regular schedule.

Fixes #35377
2026-12-01 00:11:31 +04:00
Classic298 9985caee57 fix: some older chats fail on every new message with "'NoneType' object is not iterable" (#35390)
After upgrading to 0.13.5, some older chats fail on every new message with `'NoneType' object is not iterable` and the model is never asked. The upgrade keeps each earlier message exactly as it was stored, so a message saved with no value in its attachment field now hands that missing value back, and sending broke on it. A missing attachment value now counts as no attachments, so these chats work again without touching the database.

Fixes #35359
2026-12-01 00:06:05 +04:00
Classic298 e771f3eb75 fix: tool call through Tether hangs forever when the response is over 16 MiB (#35392)
When a tool on a computer connected through Tether returned more than 16 MiB, for example a large image, the tool call spun in the chat forever and the model never got an answer. Open WebUI rejected the oversized response and then tried to read it a second time, waiting for data that would never come. The tool call now fails right away with the "Response too large to buffer" error, which the model gets as the tool result.

Fixes #35207
2026-12-01 00:04:41 +04:00
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 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
Timothy Jaeryang Baek ca3b5c5156 refac 2026-11-30 23:15:45 +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 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 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 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 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 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 affe67b7df refac 2026-11-30 21:27:41 +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 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 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 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 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 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 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
Classic298 28ee8cd0b0 fix: Reset Vector Storage shows Success before the reset has finished (#35344)
Confirming Reset Vector Storage/Knowledge in the Documents settings showed a Success toast right away, even when the reset then failed on the server. The toast now waits for the reset and only shows Success once it actually went through.

Fixes #35343
2026-11-30 18:25:44 +04:00
Classic298 36522bbbb6 fix: connection check shows Network Problem instead of the real error (#35346)
Verifying an Anthropic or Ollama connection with a wrong API key showed only "OpenAI: Network Problem" or "Ollama: Network Problem", while the actual reason from the provider was there but got lost. The toast now shows the provider's error, and OpenAI-compatible connections still show theirs.

Fixes #35345
2026-11-30 18:25:36 +04:00