Commit Graph
2186 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 0b7f8b2498 refac 2026-12-02 04:30:51 +04:00
Timothy Jaeryang Baek 076f6fb339 refac 2026-12-02 03:33:58 +04:00
Timothy Jaeryang Baek d56c3f304c refac 2026-12-01 02:21:33 +04:00
Classic298 4fce9764f9 fix: text-to-speech and speech-to-text fail on Windows for text outside the system code page (#35096)
On Windows with a non-UTF-8 code page like cp1252, reading a message aloud or transcribing audio returned a 500 with "'charmap' codec can't encode character" whenever the text held characters the code page lacks, such as arrows, CJK or emoji. The audio or transcript had already come back from the provider, but saving its cache file failed because the file was written in the Windows code page. These cache files are now always written as UTF-8, so the request succeeds on any Windows language setting. Text-to-speech through an OpenAI connection had the same problem and is fixed too. It only showed up once ENABLE_ORJSON became the default.

Fixes #35087
2026-12-01 01:49:18 +04:00
Timothy Jaeryang Baek 1c59e41e5f refac 2026-12-01 00:41:27 +04:00
Classic298 636dd45c30 fix: saving an automation after its expiry passed fails with "The expiry time is in the past." (#35400)
The first save on an automation's page cut its expiry down to the minute, so an expiry the model had set, like "in 2 hours", moved up to a minute earlier, and if it had already passed by that first save, every edit was refused, even just a rename. An expiry left untouched now stays exactly as it was stored, and only a newly picked one is checked.

Fixes #35395
2026-12-01 00:26:39 +04:00
Classic298 6438a63b35 fix: Calendar and upcoming runs show runs after an automation's expiry (#35399)
An automation with an expiry stops running once the expiry passes, but the Calendar's Scheduled Tasks and the upcoming runs the automation reports, on its page and to the model, kept listing every run of its schedule, including the ones after the expiry. These now end before the expiry, so they only list runs that will really happen; a run set exactly at the expiry never fires, so it is left out too.

Fixes #35394
2026-12-01 00:24:46 +04:00
Classic298 c55c3f101c fix: default Automations Sharing permission reverts on save (#35398)
Turning on Automations Sharing in the default user permissions did not stick. After saving, the switch was off again, and regular users still could not share their automations; only granting it through a group worked. The default permissions now keep this setting like every other sharing option.

Fixes #35396
2026-12-01 00:22:26 +04:00
Classic298 29589aa9ea fix: a tool server saved without a name shows as a blank row in the Tools menu (#35397)
Saving a tool server with the Name field left empty listed it in the chat's Tools menu with no text at all. An empty name now counts as no name, so an OpenAPI server shows the title from its spec and an MCP server shows "MCP Tool Server". A name you set still wins. Servers already saved without a name show correctly too, no need to save them again.

Fixes #33203
2026-12-01 00:18:17 +04:00
Classic298 926d43fb91 refac: scope model file lookup to the file owner (#35253)
Workspace models now only grant access to an attached knowledge file when the model owner owns that file, and the chat tools and the model's list of attached knowledge follow the same rule. Saving, re-importing or restoring a model only re-checks newly added files, so editors can keep working on models that already hold files.
2026-12-01 00:18:01 +04:00
Classic298 bc410a62bd fix: show a next run moved by an automation's code on its page and in the Calendar (#35388)
When an automation's code moved its next run, the run happened at the new time, but the automation page kept showing the regular scheduled time and the Calendar did not list the moved run. Both now show the next run as it will really happen, including for automations that only run manually, and the Calendar leaves out the scheduled times the moved run replaces. Once the moved run is done, both go back to the regular schedule.

Fixes #35377
2026-12-01 00:11:31 +04:00
Classic298 4d903e1ec0 fix: model list refreshes, file uploads and transcriptions write debug lines at INFO (#35316)
Everyday requests left internal debug lines in the server log at the default INFO level: one for every OpenAI and Ollama model list refresh, one per file upload and HTML file view, and the transcription debug lines of each speech-to-text request, one of them printed straight to stdout. They now log at DEBUG, so they only show up when LOG_LEVEL is set to DEBUG.

Fixes #35315
2026-11-30 23:40:57 +04:00
Classic298 b3d6eb4f4a fix: Read Aloud keeps playing old audio after changing TTS settings (#35312)
After an admin changed TTS settings that change how speech sounds, such as the OpenAI Additional Parameters (for example a different speed), an engine's API base URL or the Azure output format, Read Aloud on a message that had been read before still played the old saved audio. Changing those settings now produces fresh audio, while unchanged settings still reuse the saved file.

Fixes #35311
2026-11-30 23:33:45 +04:00
Timothy Jaeryang Baek ca3b5c5156 refac 2026-11-30 23:15:45 +04:00
Classic298 c865616f9a perf: stop web search URL checks from blocking the server (#35252)
Each web search resolved the address of every result site before loading it, and those lookups blocked the whole server. With many results or a slow DNS server, other users' requests stalled until all of them finished. The lookups now run without holding up other users.

<table>
<tr><th></th><th>Before</th><th>After</th></tr>
<tr><td>Longest server stall, 20 results at 50 ms per lookup</td><td>1020 ms</td><td>11 ms</td></tr>
</table>

Relates to #35245
2026-11-30 23:04:13 +04:00
Classic298 3592825be8 perf: keep the server responsive while image and video uploads are checked (#35251)
Uploading an image or video made the server check whether the file was really text first. With S3, GCS or Azure storage that check downloads the whole file, and the server stopped responding to everyone else until the download finished. The check now runs without holding up other users, so large media uploads no longer stall chats and page loads.

<table>
<tr><th></th><th>Before</th><th>After</th></tr>
<tr><td>Longest server stall with a 0.5 s storage download</td><td>511 ms</td><td>12 ms</td></tr>
</table>

Relates to #35245
2026-11-30 23:04:03 +04:00
Classic298 0e984be144 perf: keep the server responsive during large skill imports and exports (#35250)
Importing or previewing a large skill archive, or exporting skills as a zip, froze every other user's requests on the server while the archive was unpacked or compressed. Exporting a 47 MB skill stalled the server for about a second. Unpacking and compressing now run without holding up other users, and the imported skills and exported archives are unchanged.

<table>
<tr><th>Action (47 MB skill)</th><th>Longest server stall before</th><th>After</th></tr>
<tr><td>Import zip</td><td>361 ms</td><td>53 ms</td></tr>
<tr><td>Import folder</td><td>334 ms</td><td>111 ms</td></tr>
<tr><td>Export zip</td><td>1005 ms</td><td>17 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:58:54 +04:00
Classic298 555f5516b9 perf: keep the server responsive while photos are prepared for image editing (#35249)
When a photo is sent for an image edit, Open WebUI first rotates and re-encodes it so the provider sees it upright. That work stalled every other chat and request on the server for its full duration, about 130 ms per 12 MP photo and longer with each extra image in the request. It now runs without holding up other users, and the edited images are unchanged.

<table>
<tr><th>Request</th><th>Longest server stall before</th><th>After</th></tr>
<tr><td>1 photo (12 MP)</td><td>136 ms</td><td>23 ms</td></tr>
<tr><td>3 photos (12 MP)</td><td>377 ms</td><td>19 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:55:15 +04:00
Timothy Jaeryang Baek 55521ccd27 refac 2026-11-30 22:35:04 +04:00
Timothy Jaeryang Baek affe67b7df refac 2026-11-30 21:27:41 +04:00
Timothy Jaeryang Baek 00bc5c3dc8 refac 2026-11-30 21:03:32 +04:00
Classic298 530ef42876 fix: SCIM requests and LDAP logins write internal debug lines at INFO (#35277)
Every SCIM request from an identity provider logged the raw ENABLE_SCIM value and its Python type, and every LDAP login logged the attributes it asks the directory for and, with group management on, every step of reading the user's groups line by line, all at the default INFO level. Loading the account pending screen also logged the admin email next to a name that was always empty. These now log at DEBUG and that admin line is gone. The LDAP summary of a user's groups still logs at INFO.

Fixes #35276
2026-11-30 18:42:48 +04:00
Classic298 9f7c08ff7f fix: Ollama embedding requests log the full input text (#35273)
Every embeddings request for an Ollama model, through the Ollama endpoints or the general embeddings endpoint, logged the whole request, including all the text being embedded, at the default INFO level. That puts user content into the logs and makes huge log lines for large batches. The line now logs at DEBUG.

Fixes #35272
2026-11-30 18:42:26 +04:00
G30 faea95e272 perf: opening a chat no longer reads all its messages again to restore its tabs (#35202) 2026-11-30 18:31:23 +04:00
Classic298 836a434dc9 feat: allow function sync without created_at and updated_at (#35244)
Scripts calling POST /api/v1/functions/sync had to send created_at and updated_at for every function, or the whole request was rejected with "Field required". Both are now optional. When they are left out, a new function gets the current time and an existing function keeps its original creation time, while updated_at is set by the server as before. Payloads that include them, such as the output of GET /api/v1/functions/export, work as they do today.

Fixes #35243
2026-11-30 18:28:17 +04:00
Classic298 28ee8cd0b0 fix: Reset Vector Storage shows Success before the reset has finished (#35344)
Confirming Reset Vector Storage/Knowledge in the Documents settings showed a Success toast right away, even when the reset then failed on the server. The toast now waits for the reset and only shows Success once it actually went through.

Fixes #35343
2026-11-30 18:25:44 +04:00
Classic298 36522bbbb6 fix: connection check shows Network Problem instead of the real error (#35346)
Verifying an Anthropic or Ollama connection with a wrong API key showed only "OpenAI: Network Problem" or "Ollama: Network Problem", while the actual reason from the provider was there but got lost. The toast now shows the provider's error, and OpenAI-compatible connections still show theirs.

Fixes #35345
2026-11-30 18:25:36 +04:00
Timothy Jaeryang Baek d36ab208f3 refac 2026-11-27 04:26:53 +04:00
Classic298 1e68fa8d18 fix: with several workers, chats go to the wrong connection after a connection is deleted (#35119)
With UVICORN_WORKERS above 1, deleting an OpenAI or Ollama connection left every worker except the one that saved the change sending some models to the wrong connection, so chats failed with "model not found" until a restart. The admin panel showed the right connection the whole time. The workers now share which connection serves each model through Redis, which several workers already require, so a change reaches all of them at once.

Fixes #35114
2026-11-27 01:19:28 +04:00
G30 de696d4b4a fix: check ui translation placeholders against the default text (#35127) 2026-11-26 23:44:04 +04:00
Timothy Jaeryang Baek 4d49c6d950 refac 2026-11-26 21:25:16 +04:00
Timothy Jaeryang Baek c456a6dbfd refac 2026-11-26 18:14:38 +04:00
Timothy Jaeryang Baek 4b648ec4e7 refac 2026-11-26 02:04:30 +04:00
Timothy Jaeryang Baek 9c9a3ca0d6 refac 2026-11-26 01:31:48 +04:00
Timothy Jaeryang Baek 9a596e2eed refac 2026-11-26 00:47:50 +04:00
Classic298 7e5634d208 fix: attaching a file without pandoc sometimes shows a raw error instead of "Pandoc is not installed" (#35065)
On a server without pandoc, attaching a file that needs it could show the raw library error, which tells the user to install pandoc themselves, instead of "Pandoc is not installed on the server". The raw error was saved first and replaced with the friendly message a moment later, and the chat often picked up the raw one in between. The friendly message is now saved right away, so the warning toast always shows it.

Fixes #35064
2026-11-25 13:27:53 +04:00
Timothy Jaeryang Baek efcbd9c6d7 refac 2026-11-25 13:21:47 +04:00
Timothy Jaeryang Baek 1c2c3e794e refac 2026-11-25 13:16:37 +04:00
Classic298 18b9b449c7 fix: deleting a note leaves its chat counted in admin analytics (#35059)
Deleting a note, on its own or with the folder holding it, removed the note but kept the conversation from its chat panel. Admin analytics went on counting its messages and tokens, listed it as a session and showed its messages. Deleting a note now deletes its chats too, for everyone who chatted with it.

Fixes #35057
2026-11-25 13:13:28 +04:00
Classic298 cdf38c4a72 fix: deleting a folder or all chats leaves their replies and sub-agents running (#35058)
Deleting a single chat stops a reply that is still being written and any sub-agent it handed work to. Deleting a folder with its chats, or all chats, removed the chats but left that work running, so replies kept streaming from the provider and a sub-agent left running kept its background slot, refusing the next delegation with "Async subagent capacity reached". Both now stop the running work of every chat they delete, including its sub-agents, as deleting a single chat does.

Fixes #35056
2026-11-25 13:13:17 +04:00
Timothy Jaeryang Baek b0d5c67f76 refac 2026-11-25 13:06:56 +04:00
Classic298 f7d437324d fix: deleting one listed vector store removes the whole connection (#35043)
With "List stores as knowledge bases" on, an admin sees Delete on each store in Workspace > Knowledge. Deleting one store reported success but removed the entire connection, so every store of it disappeared for every user, and models lost the store they had attached. These stores live on the endpoint and are read-only, so deleting one is now refused with the read-only error and the connection, its stores and the models stay as they were.

Fixes #35042
2026-11-25 12:39:25 +04:00
Classic298 991bb4609f fix: exporting chats, the archived chats list and Unarchive All slow down with many chats (#35005)
Since #34689 stored every message on its own, every action that loads many chats with their messages read them one chat at a time, so exporting chats, a folder's export, the admin's All Chats export and the archived chats list got several times slower, growing with the number of chats. The messages of the listed chats now come in one read per 500 chats. Unarchive All only needs to know which chats are archived and no longer loads any messages.

<table>
<tr><th>1000 chats, 10 messages each</th><th>SQLite before #34689</th><th>SQLite now</th><th>SQLite fix</th><th>PostgreSQL before #34689</th><th>PostgreSQL now</th><th>PostgreSQL fix</th></tr>
<tr><td>Export Chats</td><td>0.26 s</td><td>1.00 s</td><td>0.58 s</td><td>0.27 s</td><td>1.82 s</td><td>0.46 s</td></tr>
<tr><td>Folder export</td><td>0.21 s</td><td>1.86 s</td><td>0.51 s</td><td>0.19 s</td><td>1.09 s</td><td>0.42 s</td></tr>
<tr><td>Archived chats list</td><td>0.25 s</td><td>1.08 s</td><td>0.57 s</td><td>0.21 s</td><td>1.11 s</td><td>0.40 s</td></tr>
<tr><td>Unarchive All</td><td>0.07 s</td><td>1.13 s</td><td>0.02 s</td><td>0.13 s</td><td>0.94 s</td><td>0.05 s</td></tr>
<tr><td>Admin All Chats export</td><td>0.14 s</td><td>1.96 s</td><td>0.79 s</td><td>0.33 s</td><td>1.45 s</td><td>0.59 s</td></tr>
</table>

Fixes #35001
2026-11-25 03:39:28 +04:00
Classic298 af31059d16 fix: shared chat shows a sub-agent's report as raw text from the owner (#35011)
Someone reading a shared chat saw each sub-agent report, timer and message from another chat as a plain message from the chat's owner, showing the full machine-written report, where the owner sees a compact row such as "Sub-agent finished". A shared chat hides the private details of messages the reader did not write, and that also hid which kind of row each of these messages is. The reader now gets that kind and nothing else, so they see the same rows as the owner, and the same goes for a copy the reader makes of the shared chat.

Fixes #34998
2026-11-25 03:39:25 +04:00
Classic298 b3e5766a06 refac: check machine selection changes on shared chats (#34983)
Choosing a machine template on a chat someone else owns now needs access to that template yourself.
2026-11-25 03:10:47 +04:00
Classic298 a8e7ac3987 refac: single message updates keep other members' messages (#34980)
Single-message updates and message events are now refused for messages written by other chat members, matching how saving the whole chat already keeps them.
2026-11-25 03:07:06 +04:00
Classic298 d64df861a2 refac: only accept own folders as the new parent when moving a folder (#34978)
Moving a folder now only accepts a parent folder the user owns.
2026-11-25 03:01:50 +04:00
Classic298 a548e9d752 refac: normalize browser view page path before proxying (#34975)
The browser view route now normalizes the page path on its own before adding the session prefix, the same way file previews already do.
2026-11-25 03:00:13 +04:00
Timothy Jaeryang Baek 72184499b1 refac 2026-11-25 02:52:26 +04:00
Timothy Jaeryang Baek 9d19883f15 chore: format 2026-11-25 02:36:30 +04:00