Fixes several zoom problems in the Files pane preview (pdf, docx, and
pptx, which the backend converts to PDF):
- Switching tabs and back reset the page to 100% while the label kept the
old percentage. Hidden tabs measure 0 px wide, so PdfPagesPreview
collapsed its thumbnails; their return resized the viewer, which
re-rendered every page. PdfPagesPreview now keeps its layout while hidden,
so the chosen zoom stays.
- Changing slides in a pptx reset the zoom to 100% while the label kept
the old value. A slide change now carries the zoom and position over to
the new slide.
- A pane resize rebuilt the zoom at 100% but left the label at the old
value. renderAllPages now resets the label with it.
- On pptx slides, zooming drifted off-center and stopped at about 244%.
The element panzoom transforms was flex-centered inside its container,
while panzoom measures bounds and zoom anchors from the container's
top-left corner. That element now fills the container and centers the
slide inside it, so the coordinates match the screen.
- Resetting from a low zoom left the page off to the side, and from a
stalled high zoom it could leave the page enlarged under a 100% label.
The reset moved and zoomed through panzoom's bounds check, which skips
the scale change when it adjusts the position. The reset now rebuilds
the panzoom instance, as every render already does.
Connection custom headers had no way to tell the upstream provider which client a request came from. Adding {{USER_IP}} and {{X_FORWARDED_FOR}} fills in the client address Open WebUI resolves for the request, for example {"X-Real-IP": "{{USER_IP}}"}. Both are empty when there is no client request, such as automations and background jobs. Headers that don't use them are unaffected.
Fixes#33819
Token exchange now refuses the sign-in with a 403 when group management is on, the user is in at least one group and no groups claim can be read from the provider response or the token, the same way the roles check on that path already does.
Opening a file, terminal or browser tab from the + menu in the side panel silently did nothing when Open WebUI was reached over plain HTTP on a LAN or Docker host address. The browser only offers its built-in id generator on HTTPS or localhost, so the click failed before the tab was created. Tab and split ids now use the same uuid helper as the rest of the app, which works on every connection.
Fixes#33845
The tool picker in the model editor listed only tool names, so there was no way to tell what a tool does or contains without leaving for the Tools workspace. Each entry now shows its description under the name, the same way the tool list in the chat does. The skill, filter, action and subagent model pickers share this dropdown and show their descriptions too.
Opening a file from Controls → Files and clicking anything in its window, such as the Preview tab, closed the window together with the menu. Clicks inside a window opened from a menu no longer count as clicks outside it, so the preview stays open.
Fixes#33828
A personal terminal, one a user adds in their own Settings > Integrations, is reached by their browser and never by the server. New chats with one got only the error "Working directory is unavailable. Check the terminal connection and path." as their reply, because the server tried to set that terminal's working directory to the folder open in the Files panel itself. The server now does this only for terminals it connects to itself, such as those an admin set up, and the browser keeps setting it for personal terminals as before. Chats with an admin-connected terminal still start in that folder and still show the error when the folder does not exist.
Fixes#33811
API clients that attach a file or knowledge collection in the files field of a chat completion got an answer to the bare question. File Context now defaults to off unless function calling is set to legacy, and API requests that do not come from a chat in the web UI get no tools to open the files either. File Context now defaults to on for those requests, so the file content is used in the answer as before. Chats in the web UI keep letting the model open the files itself.
Fixes#33808
When an MCP tool server uses OAuth and the provider's token endpoint answers with a temporary error (rate limit or 5xx) or cannot be reached while refreshing, the stored session was deleted and the user had to log in again. For providers that rotate refresh tokens that session is the only copy, so one provider blip lost the connection for good. Now these temporary failures leave the session in place and the next call retries, while a refresh the provider actually rejects still removes it.
Fixes#33803
With native function calling, the model got a hidden list of the attached knowledge and of the user's skills before every new reply, even when no knowledge was attached and the user had no skills, so every chat spent tokens on two empty lists. A custom pipe function that reads the last message as the user's question got the empty knowledge list instead of the question. Each list is now left out when it is empty, as in 0.13.0.
Fixes#33807