Commit Graph
5911 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 5ddd419539 refac 2026-11-17 13:58:25 +09:00
Timothy Jaeryang Baek 587aba0383 refac 2026-11-17 13:48:08 +09:00
Timothy Jaeryang Baek 988708b8ee refac 2026-11-17 01:58:43 +09:00
Classic298 139ca26f93 fix: a tool call that runs past the tool server timeout reaches the model as an empty error (#34119)
When a terminal command or a tool server call took longer than the tool server timeout (AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER), the model got `{"error": ""}` back as the tool result, with nothing saying what went wrong. It now gets `{"error": "TimeoutError"}`, which is also what Open WebUI already reports when reading a tool server's list of tools times out, so the model can tell the user that the call timed out.

Fixes #34096
2026-11-17 01:28:40 +09:00
Classic298 a18774d2b8 fix: MCP servers with a tool list or tool result over 1 MB stop working (#34421)
* fix: MCP servers with a tool list or tool result over 1 MB stop working

Since the MCP library update in 0.12.4, an MCP server that answers with a tool list or a single tool result larger than 1 MB fails with "Failed to connect to MCP server", or the tool call fails. The server answers fine; the library rejects any streamed message over 1 MB, and a server that streams its whole tool list in one message hits that as soon as it offers enough tools. Those messages are accepted again at any size, the way they were before the update and the way plain JSON answers from the same servers already are.

Fixes #34201

* Lift the same limit for MCP servers reached through Tether
2026-11-17 01:26:29 +09:00
Classic298 be7290a09b fix: images attached in an agent chat never reach the agent (#33993)
Attaching an image in a chat with a coding agent model (Claude Code, Codex and the others) dropped the image silently, so the agent only saw the text of the message. The image is now sent to the agent together with the message, as it already is for normal chats. Reported in #33991.
2026-11-17 01:22:54 +09:00
Classic298 b130c7f754 fix: a sub-agent hangs when a filter or tool asks the browser something (#34045)
* fix: a sub-agent hangs when a filter or tool asks the browser something

A filter or tool can ask the browser something: run a script in the page, show a confirmation or a form, or ask for text. In a normal chat that works, but during a sub-agent's run nothing was shown: a form was cancelled on its own, and a script, confirmation or text question was never answered, so the chat stayed on "Executing Sub-agent" until Stop was clicked. With a global filter doing this every sub-agent hung. The question now goes to the browser tab that has the chat that started the sub-agent open: the script runs and the dialog appears there, like in a normal chat. When no tab has that chat open the question is not left waiting: the filter or tool gets an error, at once for a script and after at most a minute for a dialog, and the sub-agent continues without the answer.

Fixes #34041

* fix: sub-agent questions to the browser stay with the chat that started it

A question a filter or tool asks during a sub-agent run now only moves to another tab when the starting tab no longer has that chat open, and it fails at once when no tab does. A sub-agent whose chat was deleted mid-run gets the same error instead of a crash.
2026-11-17 01:14:10 +09:00
Timothy Jaeryang Baek 7e5c7c02b9 refac 2026-11-17 01:01:23 +09:00
Timothy Jaeryang Baek 6695423f2c fix: chat goes back to an older summary after a compaction during a tool run
Fixes #34140
2026-11-17 01:01:02 +09:00
Classic298 7b3b52a472 fix: web pages signed by an internal CA fail to load when SSL verification is on (#34482)
* fix: web pages with a port or username in the URL fail to load when SSL verification is on

With web loader SSL verification enabled, an HTTPS link that spells out a port (even :443) or carries a username, like https://example.com:8443/ or https://user@example.com/, was always rejected and the page never loaded. The certificate check mistook the port and username for part of the site's name and always checked port 443. It now checks the site itself on the port given in the link, or 443 when there is none, so these pages load again. Sites with invalid certificates are still rejected.

Fixes #34462

* fix: web pages signed by an internal CA fail to load when SSL verification is on

With Verify SSL Certificate on, the certificate check that the Playwright web loader runs before reading a page trusted only the public certificate authorities, so a site signed by an internal CA was rejected even when that CA was set through the `AIOHTTP_CLIENT_SSL_CERT_FILE` environment variable. The check now trusts the same certificates as Open WebUI's other outbound requests, including a CA file named directly in `AIOHTTP_CLIENT_SESSION_SSL`. A CA file that holds only the internal CA therefore rejects public sites at this step too, as it already does for every other outbound request. Builds on #34476 and goes in after it.

Fixes #34479
2026-11-17 00:57:24 +09:00
Timothy Jaeryang Baek 8d7a8dbe54 refac 2026-11-17 00:47:42 +09:00
Timothy Jaeryang Baek b1be6d04e7 refac 2026-11-17 00:40:16 +09:00
Timothy Jaeryang Baek c82ceaf1fc refac 2026-11-17 00:31:18 +09:00
Timothy Jaeryang Baek f14dca0eec refac 2026-11-17 00:14:38 +09:00
Timothy Jaeryang Baek 445db6d0b5 refac 2026-11-16 23:55:22 +09:00
Classic298 75bb64be19 fix: two background sub-agent reports that finish close together split the chat into two branches (#34542)
* fix: two background sub-agent reports that finish close together split the chat into two branches

When a model started two background sub-agents and the second one finished while the reply to the first report was still being written, the second report was attached to the answer that started them. The two reports ended up as separate branches and the chat switched to the second one, hiding the first report and the reply to it. The second report now goes after the reply that is still being written and is answered once that reply ends, so the conversation stays on one branch.

Fixes #34540

* Only treat an unfinished reply as the place for a report while it is still being written
2026-11-16 23:27:31 +09:00
Classic298 3a1a993981 fix: MCP OAuth 2.1 setup fails when the auth server sends very large response headers (#34084)
* fix: MCP OAuth 2.1 setup fails when the auth server sends very large response headers

Adding an MCP server with OAuth 2.1 failed with "Connection error" when its authorization server sent a single response header over 8 KB, which monday.com does with an 11 KB Content-Security-Policy on every OAuth endpoint. Setting up these servers and refreshing their tokens now works, with single headers accepted up to 64 KB.

Fixes #34078

* fix: raise the MCP OAuth header limit only where setup needs it

The check that runs before client registration already moves on when it cannot read a response, so it keeps the default header limit. The larger limit now stays on the requests that broke setup and token refresh.
2026-11-16 22:42:48 +09:00
Timothy Jaeryang Baek 6a0223a882 refac 2026-11-16 22:16:34 +09:00
Classic298 7611074e2a fix: adding the same new tag to several chats at once fails all but one (#34144)
When several requests from one account added the same new tag at the same moment, for example an API client tagging a batch of chats in parallel or two chat imports bringing the same tag, only one of them went through. The others failed with a server error, and a chat whose tag request failed stayed without the tag. A tag that another request created in the meantime now counts as already there, so every request succeeds and the tag is stored once.

Fixes #34143
2026-11-16 21:59:40 +09:00
Classic298 6009a71f24 fix: terminal timeout error names the connection instead of the picked terminal (#34114)
When a message timed out because a terminal's machine was still starting, the error named the Terminals connection the admin set up, a name the user never sees in the Terminal menu. The error now names the terminal the user picked, the same name the Terminal menu shows.

Fixes #34090
2026-11-16 21:12:17 +09:00
Timothy Jaeryang Baek 205c2e97ce refac 2026-11-16 21:10:30 +09:00
Timothy Jaeryang Baek abcebd7d0d refac 2026-11-16 20:02:16 +09:00
Timothy Jaeryang Baek 0e59b66afc refac 2026-11-16 19:43:06 +09:00
Timothy Jaeryang Baek 6afb1681c9 refac 2026-11-16 19:38:00 +09:00
Classic298 98c215e949 fix: Playwright web loader drops the text inside collapsible sections of a page (#34277)
With the Playwright web loader, everything inside a page's collapsible sections (the HTML details element) was thrown away during text extraction, whether the section was open or closed. API references that keep their parameter descriptions in such sections came back as little more than their headings. The sections are now read like the rest of the page, so their headings and text reach the model too.

Fixes #34272
2026-11-16 19:15:59 +09:00
Classic298 956ee485f9 fix: concurrent requests stall for 30 seconds and fail with database session sharing on (#34185)
With DATABASE_ENABLE_SESSION_SHARING on (off by default), the chat lists and the inbox held the request's database connection while they opened a second one for a small extra read. A burst of page loads then took every pooled connection, each request waited for a second connection, and they failed after the 30 second pool timeout with "QueuePool limit ... reached". Those extra reads now run on the request's own connection. In a burst of 80 page loads with a pool of 5, 11 failed on SQLite and 58 on PostgreSQL before this change, and none fail now.

Fixes #34184
2026-11-16 19:15:17 +09:00
Timothy Jaeryang Baek aa394849d8 refac 2026-11-16 17:52:06 +09:00
Classic298 720b72a96c fix: admin user list API returns empty groups for every user (#34489)
The admin endpoint that lists all users (GET /api/v1/users/all) always returned "groups": [] for every user, even for users who belong to groups. It now lists each user's groups by id and name, like the single user info endpoint.

Fixes #26156
2026-11-16 15:37:33 +09:00
Classic298 a63ac6b7f9 fix: Playwright, Tavily and Web IQ loaders stall for minutes on unreachable sites (#34490)
With SSL verification on (the default), the Playwright, Tavily and Microsoft Web IQ web loaders check each page's certificate before loading it. That check had no time limit, so a site that never answers held things up for about two minutes per link before it was skipped. The check now gives up after 10 seconds and the site is skipped the same way as one with a bad certificate.

Refs #14241
2026-11-16 15:30:32 +09:00
Classic298 bf04d75cfd fix: OpenAI clients get a 400 from the Ollama proxy after a tool call (#34442)
OpenAI-compatible clients and SDKs leave out the text field on an assistant turn that only carries tool calls, which the OpenAI format allows. The Ollama OpenAI-compatible chat endpoint refused that turn with a 400 "Field required", so multi-turn tool calling broke as soon as the client sent the history back. Such turns are now accepted and passed on to Ollama as sent.

Fixes #34441
2026-11-16 15:29:13 +09:00
Timothy Jaeryang Baek a199370769 refac 2026-11-16 15:16:21 +09:00
Timothy Jaeryang Baek a52c92cc61 refac 2026-11-16 15:14:20 +09:00
Timothy Jaeryang Baek 25d579f947 refac 2026-11-16 15:11:22 +09:00
Timothy Jaeryang Baek f085657a98 refac 2026-11-16 14:41:42 +09:00
Timothy Jaeryang Baek 6f04d48166 refac 2026-11-16 14:21:04 +09:00
Timothy Jaeryang Baek f22671e35a refac 2026-11-16 13:15:49 +09:00
Timothy Jaeryang Baek 31ef2064da refac 2026-11-15 16:56:45 +09:00
Timothy Jaeryang Baek d7b3d08b4f refac 2026-11-14 14:16:19 +09:00
G30 0cce86d535 fix: a tag's chosen color shows in a folder's filter menu, group headers and board columns (#34390) 2026-11-14 06:41:02 +09:00
Classic298 7a73f1960f fix: terminal files fail to load on a Tether reconnect instead of being retried (#34396)
When the computer connected through Tether reconnected while the terminal's files panel was loading its working folder, a folder listing or a file, the load failed with "Tether connection interrupted". Reads like these are meant to be retried once Tether is back. They never were, because each of them went out with an empty upload attached, and an upload cannot be sent a second time. Requests with nothing to upload now go without one, so these reads are retried on the new connection. Uploads work as before.

Fixes #34394
2026-11-14 06:40:44 +09:00
Timothy Jaeryang Baek 694dc9796c refac 2026-11-14 01:15:47 +09:00
Timothy Jaeryang Baek 6378f94a65 refac 2026-11-14 00:45:43 +09:00
Timothy Jaeryang Baek 121bc0ec50 refac 2026-11-14 00:14:28 +09:00
Timothy Jaeryang Baek f1d735d807 refac 2026-11-13 23:50:28 +09:00
Timothy Jaeryang Baek 06491f0132 refac 2026-11-13 22:40:53 +09:00
G30 44d2dd3d52 feat: deleting an account removes the access grants that name it (#34223) 2026-11-13 19:03:00 +09:00
Classic298 4c4ec42966 fix: Playwright web loader drops definition lists and figure captions from a page (#34282)
With the Playwright web loader, the text inside definition lists and figures never reached the model. Reference pages that document each function or option as a term with its description, like the Python standard library docs, loaded without those entries, and figures lost their captions and any table inside them. The loader now keeps this text, as the default web loader already did.

Fixes #34281
2026-11-13 18:36:41 +09:00
Classic298 80478abea1 fix: assistant messages with only tool calls are sent with an empty string instead of null (#34265)
When an assistant message has tool calls but no text, the OpenAI Chat Completions format uses `content: null`, since content is optional next to tool calls and OpenAI's own API returns null there. Open WebUI sent an empty string in two places: when replaying earlier tool calls from the chat history, and when converting requests from clients that use its Anthropic-compatible endpoint. For Claude models, LiteLLM 1.81.14 through 1.108.x replaces that empty string with "[System: Empty message content sanitised to satisfy protocol]", and the model then repeats that line in its replies (LiteLLM 1.109 and later leave the empty text out instead). These messages now go out with null content, which OpenAI and every provider tested on OpenRouter (Gemini, Claude, DeepSeek, Qwen, Mistral, Llama, Kimi and Grok) accept.

Fixes #34264
2026-11-13 18:26:08 +09:00
Timothy Jaeryang Baek 4720ff19e7 refac 2026-11-13 17:36:00 +09:00
Timothy Jaeryang Baek ebdead036e refac 2026-11-12 22:20:10 +09:00