Commit Graph
21421 Commits
Author SHA1 Message Date
Classic298 4a1384eb48 fix: remove a leftover debug log from the expanded message editor (#35420)
The expanded message editor logged its whole content to the browser console on every change. That leftover debug output is removed.
2026-12-01 02:39:26 +04:00
Classic298 9f7baf5540 fix: a long confirm dialog on a phone hides its Confirm and Cancel buttons (#35419)
When a function or tool asked for confirmation or input with a message longer than the screen, the dialog was cut at the screen height and could not be scrolled, so its Confirm and Cancel buttons were out of reach. The dialog now scrolls, the way the bottom sheet already does.

Fixes #35414
2026-12-01 02:33:47 +04:00
Classic298 0d71ed03bb fix: the installed app's launch screen flashes a blue-grey that is not the app's colour (#35418)
The generated web app manifest set #343541 as the background colour, so every launch of the installed app on Android flashed a blue-grey used nowhere else in the app, and it set no theme colour. Both now use the app's own dark background, the same colour as the page's theme colour.

Fixes #35410
2026-12-01 02:33:30 +04:00
Classic298 35564622fe fix: event webhooks subscribed to a renamed event vanish after upgrading (#35417)
Several events were renamed, and admin event webhooks saved under the old names were treated as invalid: they disappeared from the webhook list, stopped firing, and were deleted the next time any webhook was saved. Creating a notification target with an old name was refused as well. Old event names are now accepted and translated to the new ones, for event webhooks and notification targets alike, as was already done for an earlier rename.

Fixes #35413
2026-12-01 02:33:19 +04:00
Timothy Jaeryang Baek d56c3f304c refac 2026-12-01 02:21:33 +04:00
Timothy Jaeryang Baek 275c4d2817 refac 2026-12-01 02:20:32 +04:00
Timothy Jaeryang Baek 48af5daa1c refac 2026-12-01 02:16:04 +04:00
Timothy Jaeryang Baek 4a51726230 refac 2026-12-01 01:58:55 +04:00
Timothy Jaeryang Baek 9e90240c61 refac 2026-12-01 01:55:54 +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
G30 fc3bb0c6bd fix: blank lines in a sent message no longer carry two spaces (#35355)
* fix: blank lines in a sent message no longer carry two spaces

* fix: keep blank lines typed with Shift+Enter in comments

The comment box rebuilds its Markdown in onValueChange and reloads the editor when that differs from the serialized value. Clear the two-space line there too, so a second hard break no longer makes them differ and drop the blank line.
2026-12-01 01:43:05 +04:00
Classic298 b1c40acbb1 fix: chat stops auto-scrolling in Safari once a reply renders formatting (#35407)
On iPhone and in Safari, Response Auto-Scroll turned itself off partway through a reply, so the rest of the reply ended up hidden below the message input. When raw text turns into formatted content such as a table, Safari briefly jumps the chat up a little on its own, and the app took that jump for the user scrolling up. That jump no longer turns Auto-Scroll off, and scrolling up with a finger or the mouse wheel still does.

Fixes #33444
2026-12-01 01:28:35 +04:00
Classic298 786f618fd5 perf: a Files tab that is not on screen still draws its whole file list (#35090)
A Files tab drew every row of its file list even while it sat hidden behind another tab or in a collapsed side panel. Every switch into a folder or chat that has a Files tab open rebuilds that tab, so the switch kept the page busy drawing rows nobody could see. A Files tab now draws its list the first time it is shown, and everything else about it (its folder, open file, unsaved edits) loads as before.

<table>
<tr><th>Switch from a chat outside a folder into one of its chats, Files tab of 201 entries hidden behind it, 4x CPU slowdown, median of 5</th><th>Before</th><th>After</th></tr>
<tr><td>Main thread blocked</td><td>1.31 s</td><td>0.85 s</td></tr>
<tr><td>File rows drawn</td><td>201</td><td>0</td></tr>
</table>

Fixes #35088
2026-12-01 01:25:25 +04:00
Timothy Jaeryang Baek 00f73217c7 refac 2026-12-01 01:09:58 +04:00
Timothy Jaeryang Baek c78060a62d refac 2026-12-01 01:02:02 +04:00
Classic298 fc0f0701c5 fix: editing or resuming an automation shows a Next run after its expiry (#35404)
Editing an automation while leaving its expiry as it is, for example moving its schedule later, or resuming a paused automation whose expiry has passed, saved a next run after the expiry. The page showed it as Next run and the model's update tool reported it back, though that run never happens. That next run is now dropped, and the page shows "Not scheduled" instead. The list of upcoming runs is cut at the expiry separately, in #35399.

Fixes #35401
2026-12-01 00:50:34 +04:00
Timothy Jaeryang Baek 1c59e41e5f refac 2026-12-01 00:41:27 +04:00
Timothy Jaeryang Baek 55f1b5c0cb refac 2026-12-01 00:33:38 +04:00
Classic298 1e177c2bd0 refac: scope shared chat file lookup to the file owner (#35228)
Shared chats now only grant access to a file when the file owner owns the chat or attached the file to it.
2026-12-01 00:27:22 +04:00
G30 a42c14892f perf: streaming a reply in a long chat no longer rescans every message for artifacts with full regex passes (#35209) 2026-12-01 00:26:53 +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
Timothy Jaeryang Baek beed6b130e refac 2026-12-01 00:26:01 +04:00
Classic298 bc40f60f6f fix: Continue on a reply whose model is no longer available breaks the next message (#35261)
Clicking Continue under a reply whose model was removed or is offline seemed to do nothing, but it marked the reply as still generating. The next message the user sent then flipped that old reply back into the generating state with a stop button, and was sent as queued behind a reply that was not running. Now Continue shows a "Model not found" error and leaves the reply as it was, and the next message sends normally.

Fixes #35260
2026-12-01 00:25:22 +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
Timothy Jaeryang Baek e4c13ecd31 refac 2026-12-01 00:24:34 +04:00
Timothy Jaeryang Baek d13ecf6816 refac 2026-12-01 00:24:00 +04:00
Classic298 a658799f98 fix: failed OAuth picture fetch resets the user's picture to the default (#35389)
With the "Update Picture" setting turned on, any failure to fetch the picture from the identity provider (an outage, a 404, a URL the server refuses to fetch or an image type it does not accept) replaced the user's current picture with the default icon, and it stayed that way on every login until the fetch worked again. A failed fetch now keeps the current picture. A provider that sends no picture at all still resets it to the default, and a new user whose picture cannot be fetched still gets the default icon.

Fixes #35360
2026-12-01 00:23:17 +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 6b25846a92 fix: knowledge base list and file search errors bypass the server log (#35318)
When listing knowledge bases, searching their files or listing a knowledge base's files hit an error, the page just showed an empty list and the error was printed to stdout as a single bare line, outside the normal log format and without a traceback. These errors now go through the server log with the full traceback, like the other knowledge base errors already do. The page still shows an empty list in that case.

Fixes #35317
2026-12-01 00:21:28 +04:00
Timothy Jaeryang Baek 66fdd803ba refac 2026-12-01 00:19:51 +04:00
G30 fc6ac78738 perf: the model list is sent without a second pass over data that is already JSON (#35212) 2026-12-01 00:19:25 +04:00
Classic298 c64032e714 fix: features read the attached-files list instead of what the user typed (#35192)
With native function calling, a saved chat with attachments put the list of attached files where features look for the user's message. The RAG template's {{QUERY}} slot, document search, memory search, the tool permission reviewer and the search queries for preloaded files got that list instead of what the user typed, and with an image attached the question was missing entirely. /skills:create was ignored whenever a file was attached. They now all use the user's own text, and the attachment list still reaches the model unchanged. With Preload files on, memory search and the reviewer still see the retrieved document text in front of the question, which is a separate problem.

Fixes #35163
Fixes #35195
2026-12-01 00:18:59 +04:00
Classic298 e405d966ba fix: an extra heartbeat keeps running after a connection drop right after reconnecting (#35193)
When the connection dropped again while the app was still checking the server version after a reconnect, the next reconnect started a second heartbeat and the old one could never be stopped. Each such drop left one more heartbeat running for the life of the tab, so the server got one extra heartbeat from that tab for each drop. A reconnect now replaces the running heartbeat, so each tab sends one.

Fixes #35191
2026-12-01 00:18: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
G30 577506eec7 feat: the Manage links in the knowledge, tool and skill pickers open their Workspace page in a tab (#35254) 2026-12-01 00:17:18 +04:00
Timothy Jaeryang Baek abdaa9d143 refac 2026-12-01 00:14:25 +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 c2bbab6cf6 fix: saving webhooks fails with 404 after deleting an edited webhook (#35322)
In a channel's Webhooks dialog, editing a webhook's name and then deleting it made every following Save fail with a 404, and some edits to other webhooks were not saved until the dialog was reopened. Deleting a webhook now also drops its unsaved edits, so Save goes through for the remaining webhooks.

Fixes #35321
2026-12-01 00:07:04 +04:00
Classic298 9985caee57 fix: some older chats fail on every new message with "'NoneType' object is not iterable" (#35390)
After upgrading to 0.13.5, some older chats fail on every new message with `'NoneType' object is not iterable` and the model is never asked. The upgrade keeps each earlier message exactly as it was stored, so a message saved with no value in its attachment field now hands that missing value back, and sending broke on it. A missing attachment value now counts as no attachments, so these chats work again without touching the database.

Fixes #35359
2026-12-01 00:06:05 +04:00
Classic298 e771f3eb75 fix: tool call through Tether hangs forever when the response is over 16 MiB (#35392)
When a tool on a computer connected through Tether returned more than 16 MiB, for example a large image, the tool call spun in the chat forever and the model never got an answer. Open WebUI rejected the oversized response and then tried to read it a second time, waiting for data that would never come. The tool call now fails right away with the "Response too large to buffer" error, which the model gets as the tool result.

Fixes #35207
2026-12-01 00:04:41 +04:00
Classic298 c3b38c8e65 fix: the Valves dialog of a plugin written with plain def does not say why it failed to open (#35393)
A tool or function written with plain def is switched off when it loads, for example after an upgrade, and opening its Valves only showed "Failed to load valves". The toast now shows the reason the server gives, such as "Methods must be defined with async def: inlet", so the admin knows what to change.
2026-12-01 00:04:31 +04:00
Classic298 b47fc1d57c fix: empty error toast when renaming or deleting a channel fails (#35324)
When the server rejected a channel rename or delete, for example because the channel was already deleted in another tab, an empty red toast appeared. The toast now shows the server's error message.

Fixes #35323
2026-11-30 23:53:11 +04:00
G30 236ddf2819 perf: model lists load model images as they scroll into view instead of all at once (#35214) 2026-11-30 23:43:21 +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 e8839502dc fix: screen readers can't tell whether the Advanced section of a connection dialog is open (#35307)
The Advanced toggle in the add connection, tool server, image connection, video connection and external knowledge dialogs only turned its arrow, so screen readers could not tell whether the section was open. It now reports open or closed, like the Advanced toggles in model, knowledge, machine and chat settings already do.

Fixes #35306
2026-11-30 23:35:39 +04:00
Classic298 615ce0ccf1 fix: an empty Custom schedule is saved as no schedule instead of being refused (#35387)
When the schedule was set to Custom and the rule left empty, Create and Save stored the automation with no schedule and without any error, so it never ran on its own. They now refuse it with "Invalid value: Custom schedule" and save nothing. The Create dialog also refuses a Once schedule set in the past again.

Fixes #35386
2026-11-30 23:35:13 +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
Classic298 22cbfafb3e fix: Perplexity web search says No results found when the request fails (#35314)
With Perplexity or Perplexity Search as the web search engine, a wrong API key or any other failed request ended in "No results found from web search", and the real reason only showed up in the server log. These failures now surface as a web search error with the HTTP status, the same way most other search engines report them.

Fixes #35313
2026-11-30 23:33:36 +04:00
Classic298 eba8cf55a3 refac: skip membership creation for group and dm channels on mute (#35229)
Muting a group or direct message channel no longer creates a membership.
2026-11-30 23:22:55 +04:00