Commit Graph
5862 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek ebdead036e refac 2026-11-12 22:20:10 +09:00
Timothy Jaeryang Baek c67d774d71 refac 2026-11-12 22:17:23 +09:00
Classic298 408e89d7e8 fix: Browser tab in Chrome mode keeps reconnecting when its chat is open in two windows (#34133)
* fix: Browser tab in Chrome mode keeps reconnecting when its chat is open in two windows

With the same chat open in two windows, the terminal hands the Chrome tab to the newer window, but the older window only saw a lost connection. It reconnected and took the tab back, so both windows kept flipping to "Reconnecting…" and the "Browser opened in another viewer." message never showed. The terminal's reason for ending the tab's connection now reaches the page, as it already does for the shell. The window that lost the tab shows that message and stops, and the other window keeps the page.

Fixes #34095

* fix: Browser tab in Chrome mode keeps reconnecting when its chat is open in two windows

Narrows the change to passing the terminal's close reason on to the page. The relay's existing handling of a broken connection stays as it was.
2026-11-12 22:00:12 +09:00
Classic298 7429093191 fix: coding agent models get ids made only of letters, digits, dashes and underscores (#34171)
Cursor and Pi model names carry brackets, equals signs, commas or slashes, and Open WebUI kept those in the ids of their agent models, so a pinned Cursor or Pi model opened a new chat on "Select a model". Agent models now get ids made only of letters, digits, dashes and underscores, with a few extra characters added when the name had to change, so two models never end up with the same id. The agent itself still runs on its own model name. Existing pins, default model choices and automations that point at an agent model whose name had other characters (dots included, as in most Codex models) stop matching and need the model picked again, and an existing chat with such an agent answers "Agent model is unavailable in the selected terminal" until the model is picked again.

Fixes #34168
2026-11-12 22:00:04 +09:00
Classic298 29b4af6b98 fix: search results and found file names no longer show up in the default server log (#34146)
Knowledge searches wrote the names and sources of the files they found to the server log at info level, and the SerpApi, Serply, Firecrawl, Yandex, Kagi, Mojeek and external web search engines wrote their whole results there, snippets included. Anyone who can read the logs could see what users looked up and what the model was given. These lines now log at debug, the same as the search queries, so they only show with GLOBAL_LOG_LEVEL=DEBUG.

Fixes #34129
2026-11-12 21:53:54 +09:00
Classic298 06ba65d50c fix: a coding agent's error shows a technical dump with the whole system prompt (#34173)
When the terminal refused to start a coding agent, for example because the system prompt was longer than Open Terminal accepts, the error under the reply was a technical dump of that refusal with the whole system prompt in it. Such a refusal now shows "Agent environment request failed". Refusals the terminal explains in plain words, such as another reply still running in the chat, keep showing that reason.

Fixes #34172
2026-11-12 21:53:27 +09:00
Classic298 64471947ab fix: a compaction during a tool run drops the earlier conversation summary (#34151)
When a turn started from an existing summary and its reply then compacted again between tool calls, the new summary was written without the earlier one whenever the plain summary prompt was used (a model with a filter, a separate Context Compaction Model, or a provider that refuses the cached replay). From the next turn on, everything the earlier summary held was gone. That compaction now gets the turn's summary as its previous summary, as a compaction at the start of a turn already does.

Fixes #34141
2026-11-12 21:52:18 +09:00
Timothy Jaeryang Baek 44d55bd0f0 refac 2026-11-12 21:49:53 +09:00
Classic298 3d36b436c6 fix: chat reopens on an older turn after an out-of-date window saves an edit (#34160)
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
2026-11-12 21:42:21 +09:00
Classic298 c557cf58aa fix: background memory review saves memories from temporary chats (#34263)
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
2026-11-12 21:42:03 +09:00
Timothy Jaeryang Baek edecad351b refac 2026-11-12 21:28:52 +09:00
Classic298 d0c7dec838 fix: replies end in a 400 on vLLM when tool use stops (#34176)
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
2026-11-12 21:20:49 +09:00
Timothy Jaeryang Baek 2547992b8a refac 2026-11-12 13:39:35 +09:00
Timothy Jaeryang Baek e46920dcc7 refac 2026-11-11 15:34:33 +09:00
Timothy Jaeryang Baek 3f26c03330 refac 2026-11-11 14:08:49 +09:00
Timothy Jaeryang Baek 28c5fba889 refac 2026-11-11 13:49:51 +09:00
Timothy Jaeryang Baek 8588bd2a72 refac 2026-11-11 10:20:45 +09:00
Classic298 2c8fa823f3 feat: permission to limit sub-agents to specific users and groups (#34040)
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
2026-11-11 10:11:30 +09:00
Classic298 a5ee2942f1 fix: sub-agent on a terminal set to one machine per chat works in a machine of its own (#34104)
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.
2026-11-11 10:09:49 +09:00
Timothy Jaeryang BaekandClassic298 aa19e7f86e refac
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
2026-11-11 10:08:27 +09:00
Timothy Jaeryang Baek c647f3f42e refac 2026-11-10 23:38:17 +09:00
Timothy Jaeryang Baek 2975bf8e42 refac 2026-11-10 23:02:00 +09:00
Timothy Jaeryang Baek f4cf2ca0c7 refac 2026-11-10 22:56:33 +09:00
Timothy Jaeryang Baek 6f2fc7bc7a refac 2026-11-10 21:18:18 +09:00
Timothy Jaeryang Baek b01fe7fae2 refac 2026-11-10 17:22:51 +09:00
Timothy Jaeryang Baek da850248d1 refac 2026-11-10 15:56:52 +09:00
Timothy Jaeryang Baek 98f94057bb refac 2026-11-10 13:05:45 +09:00
Timothy Jaeryang Baek 27f30e4533 refac 2026-11-10 12:24:51 +09:00
Timothy Jaeryang Baek 354c652fc9 refac 2026-11-10 12:13:49 +09:00
Timothy Jaeryang Baek 1782e9bc51 refac 2026-11-10 12:04:37 +09:00
Timothy Jaeryang Baek ad646fc12d refac 2026-11-10 00:02:42 +09:00
Classic298 316fde0941 fix: coding agent chats started with a terminal selected never get a title (#33971)
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
2026-11-09 03:38:24 -05:00
Timothy Jaeryang Baek 553b18a34d refac 2026-11-09 16:04:13 +09:00
Timothy Jaeryang Baek 62849662d9 refac 2026-11-09 15:55:13 +09:00
Timothy Jaeryang Baek 54593dadd5 refac 2026-11-09 15:54:43 +09:00
Timothy Jaeryang Baek 537e223ede refac 2026-11-09 15:35:53 +09:00
Timothy Jaeryang Baek d612241790 refac 2026-11-09 08:05:51 +09:00
Classic298 227287b3b5 fix: tool call arguments get extra spaces when sent back to the model (#33959)
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
2026-11-09 07:47:26 +09:00
Classic298 6c04b05c14 fix: the model loses the labels it wrote for its tool calls when Tool Call Labels is on (#33953)
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
2026-11-09 06:41:24 +09:00
Classic298 974367529c fix: DeepSeek thinking mode errors when a chat uses skills, knowledge or memories (#33950)
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
2026-11-09 06:40:57 +09:00
Timothy Jaeryang Baek d903b4ac03 refac 2026-11-08 22:03:30 +09:00
Timothy Jaeryang Baek 21fc016141 refac 2026-11-08 21:57:07 +09:00
Classic298 ad95407a1b fix: knowledge file search finds nothing for escaped punctuation like Art\. 40 (#33936)
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
2026-11-08 21:38:44 +09:00
Timothy Jaeryang Baek 6d3123b5b4 refac 2026-11-08 21:15:39 +09:00
Classic298 494e2790af Merge pull request #33929 from Classic298/fix-chat-view-disconnect-log
fix: error traceback in the log when a chat's layout save is dropped
2026-11-08 21:14:48 +09:00
Classic298 d62199572b fix: the turn that compacts the chat still sends the whole history (#33916)
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
2026-11-08 19:40:28 +09:00
Timothy Jaeryang Baek 97ca2144be refac 2026-11-08 19:07:11 +09:00
Timothy Jaeryang Baek 9b9bea514d refac 2026-11-08 19:06:43 +09:00
Timothy Jaeryang BaekandClassic298 c1a9306397 refac
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
2026-11-08 19:00:46 +09:00
Classic298 43b8ad5256 perf: load the config and the session check at the same time on page load (#33914)
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 |
2026-11-08 18:41:44 +09:00