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
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
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
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
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
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
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
A system message sent through the API split into several text blocks, which the OpenAI format allows and clients such as LangChain send, reached the model with only its first block. The rest of the instructions were dropped without any warning. Every block now reaches the model. Text that Open WebUI adds to a system or user message split this way, like knowledge context, used to be copied into every block and is now added once. Requests where every message is a single block of text are sent exactly as before.
Fixes#35149
When the model read or searched files with the built-in file tools, the new paragraph citation markers came with an empty line before each of them, and the text at each paragraph break changed. What the model read no longer matched the file, and the file text alone could go over the read size limit. The markers now go in front of each paragraph and the file text around them stays exactly as it is.
Fixes#35161
With native function calling and page numbers turned on for sources (page in RAG_SOURCE_METADATA_KEYS), clicking a citation from a search of a knowledge base or of files attached to the chat opened the PDF at the first page, even though the search had found the right page. The citation now opens the PDF at the cited page. Without native function calling it already did.
Fixes#35108
With pgvector, removing, updating or re-syncing a file in a knowledge base scanned every chunk of that knowledge base to find the file's own chunks, and so did the check for a duplicate upload. A cleanup of 94 files through the knowledge base sync API, in a knowledge base of 756,000 chunks, took about a minute, long enough for sync clients to time out. These lookups now use indexes instead of scanning the whole knowledge base. The indexes are built once on the first start after upgrading, which took under 3 seconds on a table of 1.5 million chunks. They are skipped when PGVECTOR_PGCRYPTO is enabled, because encrypted metadata cannot be indexed, so those setups keep the old speed.
<table>
<tr><th>756,000 chunks in the knowledge base</th><th>Before</th><th>After</th></tr>
<tr><td>Sync cleanup, 94 files</td><td>60.8 s</td><td>0.96 s</td></tr>
<tr><td>Remove one file</td><td>631 ms</td><td>22 ms</td></tr>
<tr><td>Update one file</td><td>973 ms</td><td>488 ms</td></tr>
<tr><td>Reject a duplicate upload</td><td>204 ms</td><td>70 ms</td></tr>
</table>
Fixes#35122
With HTTPS_PROXY set on the server, fetching a YouTube transcript went through that proxy instead of the configured Youtube Proxy URL, without any message saying so. Servers behind a company proxy got the "YouTube blocked the transcript request" error even though they had set a separate proxy for YouTube. The Youtube Proxy URL now always wins when it is set, and HTTPS_PROXY is still used when it is not. Custom CA certificates set through REQUESTS_CA_BUNDLE keep working either way.
Fixes#35121
With UVICORN_WORKERS above 1, deleting an OpenAI or Ollama connection left every worker except the one that saved the change sending some models to the wrong connection, so chats failed with "model not found" until a restart. The admin panel showed the right connection the whole time. The workers now share which connection serves each model through Redis, which several workers already require, so a change reaches all of them at once.
Fixes#35114
For regular users, every refresh of the notification badge and every inbox page compared their chat notifications against every chat they could see, and opened the saved copy of every shared chat on the instance to find the ones set to "Allow replies". That cost grew with the size of the instance, to about 70 ms per badge refresh on SQLite and 50 ms on Postgres at 50,000 chats. Now the user's own chats, the chats in their folders and the chats shared with them are looked up separately, and only the saved copies of chats shared with that user get opened. Who sees which notification is unchanged, comment notifications on chats included.
<table>
<tr><th>Regular user, median ms per request</th><th>SQLite before</th><th>SQLite after</th><th>Postgres before</th><th>Postgres after</th></tr>
<tr><td>Badge refresh, 5,000 chats</td><td>15.0</td><td>11.7</td><td>20.8</td><td>17.5</td></tr>
<tr><td>Inbox first page, 5,000 chats</td><td>19.0</td><td>15.1</td><td>27.8</td><td>23.9</td></tr>
<tr><td>Badge refresh, 50,000 chats</td><td>72.1</td><td>23.9</td><td>51.0</td><td>26.2</td></tr>
<tr><td>Inbox first page, 50,000 chats</td><td>78.3</td><td>26.9</td><td>57.3</td><td>31.9</td></tr>
<tr><td>Chat comment mentioning 5 people, 50,000 chats</td><td>312.5</td><td>43.6</td><td>159.3</td><td>88.2</td></tr>
</table>
Fixes#35066
Since 0.13.5, open-webui serve on Windows stops right away with a FileNotFoundError, because startup creates a folder under /tmp and Windows has no /tmp. That folder now goes under /tmp only where /tmp exists and into the system temp folder otherwise, so Windows starts again. Linux and macOS keep using /tmp, because the local sockets of SSH machine connections need a short path there.
Fixes#35075
On a server without pandoc, attaching a file that needs it could show the raw library error, which tells the user to install pandoc themselves, instead of "Pandoc is not installed on the server". The raw error was saved first and replaced with the friendly message a moment later, and the chat often picked up the raw one in between. The friendly message is now saved right away, so the warning toast always shows it.
Fixes#35064
Deleting a note, on its own or with the folder holding it, removed the note but kept the conversation from its chat panel. Admin analytics went on counting its messages and tokens, listed it as a session and showed its messages. Deleting a note now deletes its chats too, for everyone who chatted with it.
Fixes#35057
Deleting a single chat stops a reply that is still being written and any sub-agent it handed work to. Deleting a folder with its chats, or all chats, removed the chats but left that work running, so replies kept streaming from the provider and a sub-agent left running kept its background slot, refusing the next delegation with "Async subagent capacity reached". Both now stop the running work of every chat they delete, including its sub-agents, as deleting a single chat does.
Fixes#35056
When a chat in a folder had handed work to a sub-agent or set a timer, deleting the folder with its contents removed the chat but kept the conversation that sub-agent or timer ran in. Admin analytics went on counting its messages and tokens, listed it as a session and returned its text. Deleting the folder now removes the stored conversations along with their chats, the same way deleting a single chat or all chats already removes them.
Fixes#35053
During a database upgrade the log only named the step that was running, and the progress lines of long steps never showed, whatever GLOBAL_LOG_LEVEL was set to. On a big install an admin saw `Running upgrade d2f86c0b41ae -> 5e7a2c9d4b13` and then nothing for minutes while the chat messages were moved, which looks like a hung upgrade and invites a restart in the middle of it. The database upgrade steps now log at the level set in GLOBAL_LOG_LEVEL, so with the default the running count of moved chats shows while the step works.
Fixes#35052
With "List stores as knowledge bases" on, an admin sees Delete on each store in Workspace > Knowledge. Deleting one store reported success but removed the entire connection, so every store of it disappeared for every user, and models lost the store they had attached. These stores live on the endpoint and are read-only, so deleting one is now refused with the read-only error and the connection, its stores and the models stay as they were.
Fixes#35042
On Postgres with Redis, deleting a chat whose background sub-agent was still working often failed without an error. The sub-agent stopped and its thread went away, but the chat stayed in the sidebar. Stopping the sub-agent makes it post its result into that same chat, and that write and the delete blocked each other until the database cancelled one of them, usually the delete. Deleting a chat now locks the chat first, like every other write to a chat, so the two run one after the other. Deleting all chats or a folder's chats could clash the same way and gets the same change.
Fixes#35034
With ENABLE_ADMIN_CHAT_ACCESS turned off, admins could still open another user's sub-agent, timer and note chats by id. Those chats hold the same conversation content as the parent chat, so they now follow the same setting as every other chat.