A window that had missed a turn, for example a laptop that just woke up and has not reconnected yet, saved its own, older idea of where the chat was when it saved an edited message. The chat then reopened on that older turn, and the next message started a new branch there, so the newest reply moved behind the branch switch and the model no longer saw it. A save now keeps the chat on the newest turn of the branch it is on, the same turn the chat already shows once it has caught up.
Fixes#34126
With the background memory review on, Open WebUI looks back over the chat every few messages (10 by default) to save or update memories, and it did this in temporary chats too. Facts from a temporary chat could end up as memories that stayed after the chat was closed and showed up in later chats. The automatic review now skips temporary chats, so they leave no memories behind unless the user asks for one. Normal chats are reviewed as before, and memories already saved from a temporary chat are not removed.
Fixes#34262
When tool use stopped for a reply (the tool call limit, the same call failing twice, or a reply cut off in the middle of a tool call), Open WebUI asks the model once more for a final answer, and that request carried an empty tools list. vLLM refuses that with a 400, so the reply ended in that error instead of an answer. The final answer request now keeps the chat's tools and turns tool calls off with tool choice "none", the standard setting for that. Ollama has no tool choice setting, so for Ollama models any request with tool choice "none" now leaves the tools out, which is the only way to keep the model from calling them.
Fixes#34169
Sub-agents could only be switched on or off for the whole instance, so once they were on every user could spawn them and an admin had no way to keep the extra model usage to a pilot group. The user permissions now have a Sub-agents switch under Features, both in the default permissions and in each group, next to Memories and working the same way. Users without the permission no longer get the sub-agent tool in their chats, nor the timer tool that is part of the same feature. Admins are not restricted by it, and with sub-agents off in Admin Settings nobody gets them, admins included. The permission is on by default, so existing instances behave as before until an admin turns it off; the default can also be set with the USER_PERMISSIONS_FEATURES_SUBAGENTS environment variable.
Closes#34038
A sub-agent could not see the files of the chat that handed it the task, the files it wrote never showed up in that chat, and its extra machine kept running after it finished. It now works in that chat's machine, the same way it already did on a terminal set to one machine per user.
A chat with a coding agent that was started with a terminal selected kept the default title, even with title generation on and a task model set. The title is now generated once the agent has replied, the same way as for any other model.
Fixes#33970
A tool call the model wrote as compact JSON, as most models do, was sent back to the model with a space added after every comma and colon, in every request after the tool ran. The model now gets its tool call arguments back exactly as it wrote them whenever they were valid JSON, so a model server that caches the model's earlier output can keep using that cache. Arguments that Open WebUI had to repair before the tool could run, such as JSON wrapped in a code block or written with Python-style True and None, still go back in their repaired form.
Fixes#33958
With Tool Call Labels on, the model writes a short running and completed label for each tool call, and the chat shows them. Whenever the conversation was sent back to the model, both while it was still answering and on later messages, its earlier tool calls were missing those labels, so it saw itself leaving out its own labels and could learn to stop writing labels, which makes the chat fall back to plain tool names. The model now sees its earlier tool calls with the labels it wrote, and the chat shows them as before.
Fixes#33952
Starting with 0.13.1, DeepSeek in thinking mode returned the error "The `reasoning_content` in the thinking mode must be passed back to the API." for any chat that uses skills, attached knowledge or memories, even with the connection's Provider set to llama.cpp. Since that release these features reach the model through tool calls behind the scenes, and DeepSeek requires reasoning on every earlier tool call, which these tool calls never have. On connections with Provider set to llama.cpp, Open WebUI now fills in an empty reasoning for any earlier tool call that has none, which DeepSeek accepts, so these chats work again. Connections with Provider set to Default are unchanged: they send no reasoning back, so DeepSeek still needs the llama.cpp setting.
Fixes#33940
When the model searched knowledge, chat or skill files with an escaped character such as Art\. 40, \(note\) or \$100, the search took the backslash literally and came back empty even though the text was there. A backslash in front of a regex special character now marks the pattern as a regex, so these searches find the text. Searches without a backslash, like C++, 1.5 or $100, still match exactly what was typed.
Fixes#33933
When a chat crossed the Context Compaction Threshold, the turn that made the summary still sent the model every earlier message with the summary on top, so that request was larger than without compaction and a chat already over the model's context window kept failing. Now that turn sends the summary and only the recent messages, as 0.13.0 did.
Fixes#33915
Every page load fetched the app config, then checked the login session, then fetched the config a second time to pick up the logged-in settings, three requests in a row before the sidebar and chat could start loading. Now the first config request sends the login token, so it already returns the logged-in settings and the second fetch is gone, and the session check runs alongside it. A deleted or deactivated user whose old login was still saved in the browser landed on the "backend not detected" error page on every reload; they now go to the sign-in page.
| Local run, 150 ms added to every request | dev branch | this change |
|---|---|---|
| Requests before the sidebar loads | 3 in a row | 2 in parallel |
| Sidebar requests start at | 1240 ms | 875 ms |
Context compaction can already run partway through a long reply that calls many tools. If /compact was used after such a reply, the next message sent the model every tool call and result from that reply again, so the request grew instead of shrinking and could go past the model's context limit. Now the model gets the same shortened history it got before /compact, plus the new summary. Nothing changes in the saved chat or in what the chat shows.
Fixes#33911
* feat: optional size limit for chat history tool results
Reading a long earlier chat through the Chat History tools could return far more text than a model's context window holds, so the next request failed. Admins can now set VIEW_CHAT_MAX_CHARS to cap what is returned. The newest messages are kept, older ones are dropped, and the result says it was cut and how many messages came back. Unset keeps the full chat as before.
Fixes#33608
* feat: set the chat read limit from the admin settings
The limit on how much of an earlier chat a model can read could only be set with an environment variable. It is now a Chat Read Limit field in Admin Settings under General, next to the skill limits. The environment variable still works as the starting value, and the setting saved in the panel takes precedence.
* fix: chat read limit failing on chats with empty or non-text messages
With a chat read limit set, reading an imported chat that held empty or non-text message content ended in an error instead of the chat. Such content is now counted and cut as plain text.