On Postgres with Redis, deleting a chat whose background sub-agent was still working often failed without an error. The sub-agent stopped and its thread went away, but the chat stayed in the sidebar. Stopping the sub-agent makes it post its result into that same chat, and that write and the delete blocked each other until the database cancelled one of them, usually the delete. Deleting a chat now locks the chat first, like every other write to a chat, so the two run one after the other. Deleting all chats or a folder's chats could clash the same way and gets the same change.
Fixes#35034
A chat keeps its draft from the moment a file is attached, before the file has finished uploading. Reloading in that window brought the file back as still uploading, with a spinner that never ended, and the next message waited for it forever. The draft now leaves out files that are still uploading, so a reload drops the cut-off upload and the message goes out.
Fixes#35029
With ENABLE_ADMIN_CHAT_ACCESS turned off, admins could still open another user's sub-agent, timer and note chats by id. Those chats hold the same conversation content as the parent chat, so they now follow the same setting as every other chat.
With the / menu already open while a reply streams, Compact and Fork were greyed out as expected, but they stayed that way after the reply had ended. Now both become usable in the open menu the moment the reply finishes, in the main chat and in side chats.
Fixes#35026
After Send now on a queued message in a saved chat, the answer to the queued messages could stay empty with the Stop button showing until a reload. It happened when that answer finished before the page had loaded the chat again, so the page missed the end of the answer and then showed the chat as it was before the answer finished. Now the page loads the chat again when an answer it has not shown yet finishes, so the finished answer shows and the Stop button goes away.
Fixes#35024
Once the machine behind a coding agent was removed, the person lost access to it or it went offline, reopening the agent's chat showed "Select a model". A new chat did the same when the agent was the person's default model. Both now select the default model again. The lost machine stays selected and shows as unavailable until the person clears it.
Fixes#35006
Opening or leaving a note saved its text to the server even when nothing in it was touched. Its updated time went up, so reopening a folder that still had notes open in its tabs reordered the folder's newest-first Notes list by load order instead of last edit. Opening or leaving a note without editing it no longer saves its text, and edits still save as before.
Fixes#35003
Picking New Chat in a folder's menu only opened a new chat tab when that folder's page was already open. From another page, such as the home page, a chat outside the folder or Notes, it opened the folder page without the new tab, because the folder's own tabs loaded after the new tab and replaced it. While a chat of that folder was open it did nothing at all. Now each of these opens the folder with a new chat tab in its tab bar, selected and ready for a message.
Fixes#35002
In a chat from an older version whose saved message list is broken, the upgrade falls back to the older plain list of its messages. When that list's first entry has no id but is already saved, the message after it kept pointing at a first message that does not exist, so the conversation could not be followed back to its start. The next message now points at the saved first message.
Fixes#35004
Since chats are stored message by message, the admin message analytics and a session's message list return `done: null` for every question and for imported replies that never said whether they finished, where they used to return `true`. They return `true` again, and only a reply that is still running reads as not done.
Fixes#35008
A chat save from an API client or an older tab that leaves out a reply's usage, output or error wiped them from the stored reply, so the admin analytics lost the reply's tokens and its failed status. A save now leaves the reply's fields it does not send as they were, usage, output and error included, the way the analytics kept them before chats were stored message by message, and the reopened reply keeps its tool output as well. Sending a field as empty clears it.
Fixes#35007
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
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
Opening a search result jumps to the matching message, but the address dropped the message right away. A reload or a copied address then opened the chat at its latest message instead. The address now keeps the message the chat was opened at, so a reload lands on it again.
Fixes#34502
The database upgrade that moves chat messages out of the chat record deleted every message of a chat whose saved message list was null or in an unexpected shape, so those messages were lost for good. The upgrade now keeps them, so such chats open with all their messages afterwards, and a single broken entry in the list no longer removes that message. Chats from older versions that also carry a plain list of their messages no longer get their first question added a second time.
Fixes#34991
In the Git panel, closing, reopening, marking ready or editing a pull request while its Code or Checks tab was open went through on GitHub, but the opened pull request kept its old state. After a close its actions still offered Close pull request and Update branch with no Reopen, and after an edit the title above it stayed the old one, until Summary was clicked. The panel now reads the pull request again after every change and stays on the tab that was open.
Fixes#34288
After saving a model with a new image, or resetting it to the default logo, the model picker, the chat and the model lists kept showing the old image until the page was reloaded. The image address stayed the same, so the browser reused the copy it had already loaded. The address now carries the time the model was last saved, so the new image shows right away for workspace models and router models alike.
Fixes#34703
The security policy now says that CVE ID requests, like vulnerability reports, are accepted only through GitHub Security Advisories. The CVE program asked for this wording so requests do not reach other channels.
After a tab was opened beside a chat and closed again, narrowing the window to phone width opened the tabs panel over the whole chat, with nothing in it but the new tab and close buttons. The panel now stays closed when the window gets narrow and no tab is open beside the chat, the same as for a chat that never had a tab opened. Tabs still open beside the chat show up in the panel as before.
Fixes#34314
Older installs still hold chats saved as plain text. The database upgrade that moves chat messages out of the chat record stopped on the first one, so Open WebUI never started, and a downgrade failed the same way. The upgrade now reads these chats correctly. Installs whose upgrade already stopped start normally on this version.
Fixes#34985
With Docling as the content extraction engine, an uploaded .mdx file failed with "File format not allowed" and ended up with no content, while the same page saved as .md worked. Browsers usually do not label .mdx files as text, so Open WebUI handed them to Docling or Tika instead of reading them itself, and the slim image refused them outright with the default engine. MDX pages are now read as text like Markdown with the default, Docling and Tika engines, so docs written in MDX can be added to chats and knowledge bases.
Fixes#34896
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.