Commit Graph
20510 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 8dff97ccb1 chore: i18n 2026-11-08 19:04:51 +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
Timothy Jaeryang Baek 22c3caf975 refac 2026-11-08 18:46:00 +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
Classic298 87d148e9cb fix: /compact makes the next message larger after a long tool-calling reply (#33912)
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
2026-11-08 18:38:14 +09:00
Timothy Jaeryang Baek e8c0ad85e5 refac 2026-11-08 18:37:29 +09:00
Timothy Jaeryang Baek a072aaf310 refac 2026-11-08 16:00:53 +09:00
Timothy Jaeryang Baek bf9b1e7ec3 refac 2026-11-08 15:55:52 +09:00
Timothy Jaeryang Baek 3797ce419b refac 2026-11-08 15:52:44 +09:00
Timothy Jaeryang Baek a01dcbbe4c refac 2026-11-08 15:52:33 +09:00
Timothy Jaeryang Baek 7feebc8711 refac 2026-11-08 15:52:26 +09:00
Classic298 b55c0807f9 docs: start 0.13.1 changelog (#33664)
* docs: start 0.13.1 changelog

* docs: add accessibility entry to 0.13.1 changelog

* docs: add 0.13.1 entries up to 623257af7

* docs: add external knowledge base entry to 0.13.1 changelog

* docs: add MinerU 4.1 entry to 0.13.1 changelog

* docs: add MCP app and working folder fixes to 0.13.1 changelog

* docs: add paste typing, pagination focus and translations to 0.13.1 changelog

* docs: frame paste typing entry as a speedup in 0.13.1 changelog

* docs: add 0.13.1 entries up to 2e95de486 plus security notice

* docs: add native app sessions entry and migration warning to 0.13.1 changelog

* docs: link Tether follow-up commits in 0.13.1 changelog

* docs: link more native app and temporary chat commits in 0.13.1 changelog

* docs: link one more native app commit in 0.13.1 changelog

* docs: add notification click entry to 0.13.1 changelog

* docs: mention native app notifications in 0.13.1 changelog

* docs: fix punctuation in native app entry of 0.13.1 changelog

* docs: add saved side chats, drag to side panel and Milvus fix to 0.13.1 changelog

* docs: add split panes and default tools entries to 0.13.1 changelog

* docs: add terminal rendering entry to 0.13.1 changelog

* docs: add spreadsheet upload fix and list focus to 0.13.1 changelog

* docs: add reasoning stream, Ollama fix and read speedups to 0.13.1 changelog

* docs: extend accessibility entry in 0.13.1 changelog

* docs: add SSO, side chat tools, banners, top bar and feedback filter fixes to 0.13.1 changelog

* docs: add tool calling, terminal rename, webhooks and location entries to 0.13.1 changelog

* docs: add full text threshold and retrieval defaults to 0.13.1 changelog

* docs: add file context default change to 0.13.1 changelog

* docs: add tool search engines and prompt change to 0.13.1 changelog

* docs: add coding agent models and auto tool permissions to 0.13.1 changelog

* docs: add folder default terminal and agent options to 0.13.1 changelog

* docs: link follow-up commits for folder terminal, agents and native apps

* docs: correct where the full text threshold applies in 0.13.1 changelog

* docs: move coding agents and auto tool permissions to the top of Added in 0.13.1 changelog

* docs: rewrite the entries on file context, agents, auto permissions and tool search in 0.13.1 changelog

* docs: drop commit links from the 0.13.1 changelog

* docs: add Git discard entry to 0.13.1 changelog

* docs: add MCP OAuth fix and API file context to 0.13.1 changelog

* docs: add always full-width tabs and Git panel entries to 0.13.1 changelog

* docs: add iOS audio, preview, UI scale fixes and model picker descriptions to 0.13.1 changelog

* docs: shorten a label in the 0.13.1 changelog

* docs: add prompt caching and hidden tool result entries to 0.13.1 changelog

* docs: limit the hidden tool result note to pipes in 0.13.1 changelog

* docs: lead 0.13.1 Added with the cheaper tool chats entry

* docs: add the remaining visible changes from the dev audit to 0.13.1 changelog

* docs: correct the text size entry in 0.13.1 changelog

* docs: drop the text size entry from the 0.13.1 changelog

* docs: add client IP header placeholders and plain HTTP tab fix to 0.13.1 changelog

* docs: add tab keyboard shortcuts to 0.13.1 changelog

* docs: add quick open files to 0.13.1 changelog

* docs: add preview zoom fix and removed setting to 0.13.1 changelog

* docs: shorten a label in the 0.13.1 changelog

* docs: add voice notes and issue links to 0.13.1 changelog

* docs: add saved tab layouts, spreadsheet and Markdown editing, system info and notification sounds to 0.13.1 changelog

* docs: add Git status in the file browser, file drag to chat and editor Git markers to 0.13.1 changelog

* docs: shorten a label in the 0.13.1 changelog

* docs: add terminal disconnect and temporary chat terminal fixes to 0.13.1 changelog

* docs: add drag selection of files to 0.13.1 changelog

* docs: add Chrome first browser tab and devices section to 0.13.1 changelog

* docs: add working directory picker, batched tool search calls and integrations menu change to 0.13.1 changelog

* docs: mention the saved turns in the batched tool search entry of the 0.13.1 changelog

* docs: link issue 33868 on the forgiving tool calls entry of the 0.13.1 changelog

* docs: add MCP App messages, token count grouping and scanned PDF fix to 0.13.1 changelog

* docs: add chat read limit, reply finish time, channel search and hidden empty groups to 0.13.1 changelog

* docs: add terminal image editing and model availability events to 0.13.1 changelog

* docs: add Git clone entry to 0.13.1 changelog

* docs: add spring-loaded Files tabs to 0.13.1 changelog
2026-11-08 15:48:37 +09:00
Timothy Jaeryang Baek 9126f2262c refac 2026-11-08 15:30:13 +09:00
Timothy Jaeryang Baek 2416b1fc0b refac 2026-11-08 15:27:19 +09:00
Timothy Jaeryang Baek 555125b369 refac 2026-11-08 14:58:56 +09:00
Timothy Jaeryang Baek 0b7e7b3f70 refac 2026-11-08 14:38:53 +09:00
Timothy Jaeryang Baek 10f1226f09 refac 2026-11-08 14:35:59 +09:00
Timothy Jaeryang Baek 08c109d20f refac 2026-11-08 13:36:39 +09:00
Timothy Jaeryang Baek a9478213a2 refac 2026-11-08 13:32:23 +09:00
Timothy Jaeryang Baek 2a0e0100bf refac 2026-11-08 12:56:55 +09:00
Timothy Jaeryang Baek ffa1fbc0b5 refac 2026-11-08 12:56:03 +09:00
Timothy Jaeryang Baek cbd53ddacf refac 2026-11-08 12:49:27 +09:00
Timothy Jaeryang Baek 21da7627b9 refac 2026-11-08 12:46:16 +09:00
Timothy Jaeryang Baek 3a4e4fdb45 refac 2026-11-08 12:24:29 +09:00
Classic298 749dc4dbae feat: optional size limit for chat history tool results (#33695)
* 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.
2026-11-08 12:10:18 +09:00
Timothy Jaeryang Baek 07029af63d refac 2026-11-08 12:08:18 +09:00
Timothy Jaeryang Baek 41f64e7054 refac 2026-11-08 12:08:09 +09:00
Timothy Jaeryang Baek 752bdbd322 refac 2026-11-08 12:06:16 +09:00
Classic298 4bd5fafffc feat: show when an assistant reply finished instead of when the prompt was sent (#33895)
Assistant replies showed the time the prompt was sent, so a reply carried the same time as the message above it, even when it took minutes to finish. Replies now show the time they finished. Open WebUI already records that time for every reply, and replies created before v0.12.5, which did not record it yet, keep showing the send time. A reply that is stopped or fails shows its finish time after a reload.
2026-11-08 12:01:09 +09:00
Timothy Jaeryang Baek 1cfb04e054 refac 2026-11-08 11:59:40 +09:00
Timothy Jaeryang Baek 53b1b1928b refac 2026-11-08 11:56:40 +09:00
Timothy Jaeryang Baek f0f4a24afa refac 2026-11-08 11:52:13 +09:00
Timothy Jaeryang Baek 27dab9e197 refac 2026-11-08 11:34:05 +09:00
Timothy Jaeryang Baek a545063b70 refac 2026-11-08 11:32:34 +09:00
Classic298 ab416b0e30 fix: empty sections and submenus show when every control in them is hidden (#33867)
The Visible controls setting in Admin Interface can hide single options from users, but hiding every option in a group left the group itself behind. Users then saw an empty Capabilities or Builtin Tools section in the model editor, a bare Artifacts heading in Interface settings, and an Add Context entry in the chat input menu that opened an empty list. These now disappear once nothing inside them is visible, like the Default Features section already does.
2026-11-08 11:32:20 +09:00
Timothy Jaeryang Baek ad0114326b refac 2026-11-08 11:21:10 +09:00
Timothy Jaeryang Baek 5d868f91ac refac 2026-11-08 11:06:22 +09:00
Classic298 06ff3f9195 fix: a malformed tool call with Tool Search on ends tool use for the rest of the reply (#33872)
With Tool Search on, when the model sent a broken call for a tool Tool Search had not loaded yet (arguments that were not a JSON object, or a list of tool calls that was empty or in the wrong format), Open WebUI handled it like an unfinished model response and the rest of the reply ran without any tools. Now the model gets a tool error back, like it does for an unknown tool name, and can retry with its tools. Only a model response that really was cut off still ends tool use.

Fixes #33871
2026-11-08 10:53:50 +09:00
Classic298 9c9e7f0f09 fix: coding agent reply shows a raw id once its terminal is gone (#33880)
After chatting with a coding agent through an Open Terminal connection, reopening the chat once that terminal was removed, switched off or no longer available to the user showed a long internal id such as agent:<terminal>:opencode:<model> at the top of the reply instead of the agent's name, both on the reply and in the chat overview. The name was only remembered while the chat stayed open, so every reload lost it. The name is now saved with the reply.

Fixes #33879
2026-11-08 10:53:27 +09:00
Classic298 00360d7020 fix: saving a chat's view answers signed-out and pending accounts with "Invalid chat view" (#33885)
Saving a chat's view (the per-chat display state the app stores) looked at the request before it checked who was sending it. A signed-out client or a pending account sending broken data got "Invalid chat view" instead of being refused, unlike everywhere else that needs a signed-in user, and the server read up to 1 MB of data for callers it would turn away anyway. The caller is now checked first, so they get the usual 401 Unauthorized. Signed-in users see no change.

Fixes #33883
2026-11-08 10:47:00 +09:00
Classic298 0af72d59a6 fix: client IP header placeholders send 127.0.0.1 for automations, timers and sub-agents (#33891)
When a connection's custom headers use {{USER_IP}} or {{X_FORWARDED_FOR}}, automation runs, timers, sub-agent runs and the model list fetch at startup filled them with 127.0.0.1. A provider that logs or rate-limits per client address then saw these requests as coming from the Open WebUI host. No client sends these requests, so the header is now sent with an empty value for them. Normal chats still send the real client address.

Fixes #33882
2026-11-08 10:46:39 +09:00
Classic298 0ffe091088 fix: a saved voice note does not open in a tab (#33902)
Saving a voice note wrote the recording and the Markdown note to the Open Terminal, but the note never opened, so people had to find it in the file browser by hand. The saved note now opens in its own tab right after Save.

Fixes #33886
2026-11-08 10:46:23 +09:00
Classic298 639766f7f9 refac: limit the number of search words used for chat search (#33844)
Chat search now uses at most the first 12 distinct words of the query.
2026-11-08 10:43:19 +09:00
Classic298 d2a8374f3a fix: OpenAI image generation with no model set asks GPT image models for base64 output (#33875)
With the OpenAI image engine and the Model field left empty, requests go out for gpt-image-2 but still ask for base64 output, a parameter OpenAI does not support for GPT image models. Typing gpt-image-2 into the Model field already left it out. Whether that parameter is sent now depends on the model the request actually uses, so the empty default and the named model send the same request, and an image edit request that names its own model is handled the same way.

Fixes #33874
2026-11-08 10:43:04 +09:00
Classic298 9b7d13b41f fix: a tool call in a side chat waits for approval forever (#33889)
With tool permissions set to Ask for approval, a tool call in a side chat stopped to wait for approval, but the side chat showed no Allow or Deny, so the reply never got past preparing the tool call. A tool call waiting for approval in a side chat now shows the same Allow and Deny buttons as in the main chat, and the reply continues once you answer.

Fixes #33873
2026-11-08 10:42:33 +09:00
Classic298 7ee53a9829 fix: closing the + menu on a phone brings up the keyboard (#33893)
On a phone, closing the + menu put the cursor back in the message box, so the on-screen keyboard popped up every time someone switched on Web Search, picked a tool or just opened and closed the menu. The old Integrations menu already skipped this on phones, but that was lost when the integrations moved into the + menu. Now the + menu leaves the message box alone on a phone too, and on a desktop it still puts the cursor back in the message box.

Fixes #33881
2026-11-08 10:42:11 +09:00
Classic298 0b6d434059 fix: an HTML or SVG block in a reply hides the chat (#33894)
On a wide window, a reply with an HTML or SVG block opened Artifacts as a tab in place of the chat, so the reply kept streaming out of sight until you clicked back to the Chat tab. The same happened with a code block's Preview button and the Artifacts entry in the chat's menu. Artifacts now open in a pane beside the chat, where side chats open too.

Fixes #33878
2026-11-08 10:41:48 +09:00
Classic298 e84dba2d3e feat: group digits in the token usage tooltip (#33896)
The token usage shown when hovering the info icon under a reply listed large counts as one long run of digits, so a value like 26678623 was hard to read at a glance. Whole numbers in that tooltip are now grouped for the language set in Open WebUI, for example 26,678,623 in English or 26.678.623 in German. Decimal values such as costs are not grouped and look as before.
2026-11-08 10:41:35 +09:00
Classic298 e9a9e16baa fix: Return to call does nothing after switching to the chat tab during a call (#33898)
On a wide screen a voice call opens as a Voice tab next to the chat. After switching to the chat tab during the call, the voice button in the message box changes to Return to call, but clicking it did nothing and the call kept running out of view. Return to call now shows the Voice tab again, the same as clicking it in the tab bar.

Fixes #33884
2026-11-08 10:40:56 +09:00
Classic298 90902a6ddc fix: chat layout stops saving after a network reconnect (#33899)
After the browser reported the network back (a Wi-Fi reconnect or a laptop waking up), a chat's layout (split panes, divider position, open tabs) stopped saving for the rest of the session. The changes stayed on screen but were gone after a reload. Layout changes now keep saving after a reconnect.

Fixes #33892
2026-11-08 10:40:35 +09:00