Commit Graph
21136 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 9b626e4e5b refac 2026-11-25 02:02:37 +04:00
Classic298 3904bd6043 fix: OIDC sign-in fails when the provider signs its ID token with the client secret (#34930)
Signing in through an OIDC provider that signs the ID token with HS256 failed with "Algorithm 'HS256' requires 'oct' key", and the user landed back on the sign-in page with an error. OpenID Connect allows this signing method when the app has a client secret, and the key is that secret, which never appears among the provider's published keys. Open WebUI now checks these ID tokens against the client secret, so the sign-in goes through, while a token signed with any other secret is still refused. Providers that sign with their published keys are unchanged.

Fixes #34922
2026-11-25 01:59:02 +04:00
Timothy Jaeryang Baek 352c63be19 refac 2026-11-25 01:53:55 +04:00
Timothy Jaeryang Baek d5553c53e7 refac 2026-11-25 01:48:55 +04:00
Timothy Jaeryang Baek e85500e773 refac 2026-11-25 01:48:46 +04:00
Timothy Jaeryang Baek 8522af2d61 refac 2026-11-25 01:46:31 +04:00
Timothy Jaeryang Baek 8ecc777ee6 refac 2026-11-25 01:35:06 +04:00
Timothy Jaeryang Baek afd5ba59eb refac 2026-11-25 01:27:02 +04:00
Timothy Jaeryang Baek 46ac49fe09 refac 2026-11-25 01:20:55 +04:00
Timothy Jaeryang Baek 22500ecc24 refac 2026-11-25 01:16:55 +04:00
Timothy Jaeryang Baek c37725b7a3 refac 2026-11-25 01:07:47 +04:00
G30 0c336e072b fix: dismiss note formatting toolbar when focus leaves the editor (#34966) 2026-11-25 00:21:32 +04:00
Timothy Jaeryang Baek 8d99689836 refac 2026-11-25 00:18:55 +04:00
Timothy Jaeryang Baek a7896c9140 refac 2026-11-25 00:14:16 +04:00
Timothy Jaeryang Baek a0cc08f1f3 refac 2026-11-24 23:35:52 +04:00
Classic298 90116cd36f fix: large chats with no machine selected open slowly (#34963)
Opening a chat with no machine selected read through the whole conversation on every open, looking for a machine to restore. That is the normal case for a chat, so large chats opened about 45% slower. A chat that already saved its selection, with no machine or with a machine saved under its former terminal name, now opens without that extra pass. Agent chats with nothing saved still get their machine and folder back.

Fastest of seven opens of a 130 MB chat on SQLite:

<table>
<tr><th></th><th>Context Compaction off</th><th>Context Compaction on</th></tr>
<tr><td>dev before Terminals were renamed to Machines</td><td>0.316 s</td><td>0.429 s</td></tr>
<tr><td>dev</td><td>0.469 s</td><td>0.608 s</td></tr>
<tr><td>this fix</td><td>0.325 s</td><td>0.437 s</td></tr>
</table>

Fixes #34962
2026-11-24 23:11:30 +04:00
G30 c56ba4e759 fix: reject future birth dates in account settings (#34961) 2026-11-24 23:11:24 +04:00
Classic298 4a065a5c99 fix: saving a router model with an invalid pattern only shows "[object Object]" (#34956)
Saving a router model whose pattern is not a valid regular expression showed only "[object Object]" in the error toast, so the admin could not tell what was wrong. The toast now shows the server's message, such as "Value error, Invalid pattern: missing ), unterminated subpattern at position 0". Any other rule the server refuses when a router model is saved reads the same way.

Fixes #34897
2026-11-24 22:52:10 +04:00
Classic298 179991fc1a fix: saving a router model strips the trailing space from a pattern (#34957)
A pattern like "```|def |function " (the example in the docs) lost its trailing space when the router model was saved, from the dialog or through the API. "function" without a space after it then matched as well, so a message about "functionality" went to the model meant for code. Patterns are now saved exactly as typed, and a pattern saved before this needs its space typed again. Conditions saved through the API now keep their spaces as sent too.

Fixes #34898
2026-11-24 22:51:49 +04:00
G30 bb98273f9e fix(ui): dismiss dropdowns when dragging outside (#34959) 2026-11-24 22:51:38 +04:00
Timothy Jaeryang Baek 31c3377051 refac 2026-11-24 22:46:50 +04:00
Timothy Jaeryang Baek 20c4133713 refac 2026-11-24 22:44:12 +04:00
Timothy Jaeryang Baek 680cd3a0f3 refac 2026-11-24 22:37:32 +04:00
Timothy Jaeryang Baek 53fc70aea7 refac 2026-11-24 22:34:25 +04:00
Timothy Jaeryang Baek e0a4ee0a9d refac 2026-11-24 22:33:49 +04:00
Timothy Jaeryang Baek 98dc1e5460 refac 2026-11-24 22:30:13 +04:00
Timothy Jaeryang Baek f10d244d05 refac 2026-11-24 22:26:11 +04:00
Timothy Jaeryang Baek 1fbb42be97 refac 2026-11-24 22:11:32 +04:00
Timothy Jaeryang Baek 26f85aa220 refac 2026-11-24 21:50:41 +04:00
Classic298 8b185d8d2c feat: render Markdown in chat error messages (#34955)
Providers and the proxies in front of them often write errors for people, with bold text, a list of things to try, a link to a status page or an id to quote, but the error box under a reply showed the Markdown marks as typed and the links as plain text. The error box now renders its message the way replies are rendered, so links open like links in replies, and single line breaks still show as line breaks, as they have since #34954. HTML and images in an error are shown as text and never rendered, and a plain one-line error looks exactly as before.

Fixes #34951
2026-11-24 21:41:02 +04:00
Timothy Jaeryang Baek acdb7b5038 refac 2026-11-24 21:30:58 +04:00
Timothy Jaeryang Baek 451174d700 refac 2026-11-24 21:26:11 +04:00
Timothy Jaeryang Baek b1d3f90760 refac 2026-11-24 21:21:33 +04:00
Classic298 cf100751ec fix: image preview on phones gets stuck after pinch zoom (#34953)
On a phone, a quick pinch in the image preview could shrink the image to nothing, a quick spread could throw it off screen and stop zooming, and after zooming in and back out slowly the image ended up smaller than it opened. The previews made every pinch three and a half times stronger than the fingers moved, so a quick pinch reached a size of zero that the image could not recover from, and all other pinches overshot. Pinch now follows the fingers at normal speed in the image, file, diagram and slide previews.

Fixes #34939
2026-11-24 21:20:01 +04:00
Classic298 e2ae064770 fix: line breaks in a provider's error message are lost in the chat (#34954)
When a model connection answered with an error message spread over several lines, the error box under the reply ran all lines together into one paragraph. The box now keeps the message's line breaks, so each line shows on its own line, and long unbroken text still wraps inside the box. Spaces at the start or end of a line are still dropped, so the box shows no odd gaps.

Fixes #34950
2026-11-24 21:17:37 +04:00
Classic298 9aafbf4f5c fix: buttons over a zoomable preview do nothing on touch screens (#34952)
On a phone or tablet, tapping Download in the full-screen image view did nothing, and the same went for the other buttons over a zoomable view, such as Download as SVG and Copy to clipboard on a diagram. The zoomable view under those buttons captured every touch, so a tap on a button never became a click. Taps on these buttons now reach them and no longer zoom or pan the view. The image view's buttons also sit on a dark bar now: on a zoomed light image their white icons were invisible, which left an iPhone user with no visible way to close the preview.

Fixes #34942
2026-11-24 21:17:11 +04:00
Timothy Jaeryang Baek c6ef4a523f refac 2026-11-24 21:02:00 +04:00
Timothy Jaeryang Baek 2c1e50a463 refac 2026-11-24 21:01:50 +04:00
Timothy Jaeryang Baek 0f71ee15a1 refac 2026-11-24 20:58:02 +04:00
Timothy Jaeryang Baek 59c8184bf1 refac 2026-11-24 20:53:38 +04:00
G30 f1aaad5d66 fix(ui): make file preview audio controls transparent (#34948) 2026-11-24 20:50:42 +04:00
Timothy Jaeryang Baek 068fe7a39e refac 2026-11-24 20:49:51 +04:00
Timothy Jaeryang Baek a43c15c7bf refac 2026-11-24 20:37:54 +04:00
Classic298 5d1c7d39d5 fix: system prompt is not prompt-cached on Responses API connections with custom model ids (#34802)
Responses API connections sent the system prompt as a developer message only when the model id looked like a newer OpenAI model. Azure deployments with a custom name and prefixed proxy ids like openai/gpt-6.2 still got it in the separate instructions field, which GPT-6.2 and later never cache, so the whole system prompt was billed at the full input price on every turn and every tool call. The system prompt now always goes out as a developer message in the conversation, which brings the Responses API connection to parity with OpenAI and follows the Open Responses spec. With ENABLE_RESPONSES_API_STATEFUL on, tool calls no longer send the system prompt again, because the provider already keeps that message from the first request.

Fixes #34801
2026-11-24 20:31:33 +04:00
Timothy Jaeryang Baek 2be04aa5e2 refac 2026-11-24 20:30:47 +04:00
Timothy Jaeryang Baek e9bfa82d00 refac 2026-11-24 20:29:45 +04:00
G30 a667c3176a fix(ui): remove disabled connection URL backgrounds (#34946) 2026-11-24 20:27:28 +04:00
Timothy Jaeryang Baek 3a8b3fb8a1 refac 2026-11-24 20:26:57 +04:00
Timothy Jaeryang Baek d22ab1251d refac 2026-11-24 20:24:18 +04:00
Timothy Jaeryang Baek aa3f714c21 refac 2026-11-24 20:08:57 +04:00