Commit Graph
1047 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 187d2ed3e8 refac 2026-12-02 23:16:31 +04:00
Timothy Jaeryang Baek 3572930d33 refac 2026-12-02 22:46:44 +04:00
Timothy Jaeryang Baek e6a8dd052d refac 2026-12-02 19:29:31 +04:00
G30 4799c6cccb fix(a11y): version, section and note chat buttons are named by the text they show (#35433)
Seven buttons had an aria-label that left out the text they show, so a
voice control user saying what is on screen could not click them
(WCAG 2.5.3): the prompt editor's History ("Live"), Select version in
the skill, tool, function and model editors ("Current", "Production"
or a version id), a note's chat Expand (the chat title) and the folder
page's Switch section ("Chats" and its count).

Each aria-label moves into an sr-only span after the visible text, as
in #33593, so the name starts with what the button shows: "Live
History", "Production Select version", "Chat Expand". The prompt
editor's span sits right against the visible text, so a space goes
between them. Nothing changes on screen.
2026-12-01 04:07:25 +04:00
Timothy Jaeryang Baek 00f73217c7 refac 2026-12-01 01:09:58 +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
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 75ca922153 fix: importing tools or functions says it succeeded when every item failed (#35267)
Re-importing an export whose IDs already exist showed an "already registered" error for each item and then a green "imported successfully" toast. The success toast now only shows when at least one tool or function was actually imported. A partial import still shows it, next to the errors for the items that failed.

Fixes #35266
2026-11-30 22:52:41 +04:00
Classic298 9aa4ea3787 fix: several toasts and messages stay in English in every language (#35328)
A handful of messages skipped translation: the /model command toasts in chat, "No content" in the file preview, the valves load error, the knowledge file viewer's unsupported file type and empty workbook messages, the archived and deleted chats toasts in the sidebar selection bar, and the row errors in the user CSV import. They now go through translation, reusing existing strings where one already says the same thing.

Fixes #35327
2026-11-30 22:37:54 +04:00
Classic298 2a01914ff0 feat: tools and functions must be written with async def (#35240)
Tools and functions written with plain def ran on the server's main loop, so a slow call inside one, such as an HTTP request, froze Open WebUI for every user on that server until it returned. Saving a tool or function in the editor now fails with an error that names every tool method or function hook (pipe, pipes, inlet, request, outlet, stream, action, event) still written with plain def. Tools and functions saved before this are switched off the next time they fail to load, the same way a function that fails to load is already switched off, and that also applies to any other load failure of a tool. Either can be switched back on once its code is updated. The starter code in both editors is async now.

Discussion: https://github.com/open-webui/open-webui/discussions/35238
2026-11-30 18:48:49 +04:00
Classic298 4354c061d7 fix: a failed knowledge base upload shows two error toasts (#35287)
When an upload to a knowledge base failed, the real error showed and then a second, generic "Failed to upload file." right after it. Now only the real error shows.

Fixes #35286
2026-11-30 18:39:13 +04:00
Classic298 820b022061 fix: changing the sort of a paged list keeps you on the same page number (#35303)
On page 4 of Admin > Users, Admin > Evaluations > Feedback, the workspace Models, Prompts and Skills lists or a channel's member list, clicking a column header showed page 4 of the new order, somewhere in the middle of the list. Changing the sort now goes back to page 1, like the group member list already does.

Fixes #35302
2026-11-30 18:29:52 +04:00
Classic298 571e4e3b52 fix: Enter or Escape while typing with an IME saves, submits or closes too early (#35295)
When typing Japanese, Chinese or Korean with an input method (IME), Enter, Space and the arrow keys pick conversion candidates and Escape drops them. Many inputs treated those keys as their own: Escape stopped a running response, threw away a message, cell, rename or comment draft, cleared a search or closed the dialog, drawer, menu or model selector, and Enter or Space saved, submitted, searched, picked a model or added the text while it was still half-typed. Inputs, dialogs and menus that act on these keys now leave keys that belong to the IME alone, the same way chat rename already does.

Fixes #35294
2026-11-30 18:26:49 +04:00
Classic298 118334a1c6 fix: imported prompts lose their tags (#35340)
Exporting prompts from Workspace > Prompts and importing the same file created the prompts without any of their tags, even though the export file contains them. Import now keeps the tags. Access settings are still left out on purpose, because groups do not carry over between instances.

Fixes #35339
2026-11-30 18:25:59 +04:00
Classic298 d8acc46b69 fix: importing a broken prompts file does nothing (#35342)
Picking a malformed .json file in Workspace > Prompts > Import silently did nothing, and picking the same file again after fixing it did nothing either. Now an "Invalid JSON file" error shows, the same as importing in Workspace > Models, and the file can be picked again right away.

Fixes #35341
2026-11-30 18:25:51 +04:00
G30 0d8e4859de fix: a workspace model or prompt can no longer be named with only spaces (#35358) 2026-11-30 18:22:37 +04:00
Timothy Jaeryang Baek 25d880bd62 refac 2026-11-27 02:42:47 +04:00
Classic298 fef778d194 fix: a model's new image only shows after a page reload (#34994)
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
2026-11-25 03:25:19 +04:00
Timothy Jaeryang Baek 1fa28a60e4 chore: format 2026-11-25 02:36:18 +04:00
Timothy Jaeryang Baek a17581475a refac 2026-11-25 02:15:42 +04:00
Timothy Jaeryang Baek 34888d6905 refac 2026-11-24 19:25:20 +04:00
Classic298 d07679e60c fix: selected skill files cannot be cleared with Escape or a click on empty space (#34691)
In the skill editor, files selected with a Shift or Ctrl/Cmd click stayed selected until each one was unchecked by hand, and while any file was selected a click on a file only added it to the selection. Escape and a click on the empty part of the file list now clear the selection, like the file browser in a chat's Files panel. An Escape that closes one of the editor's dialogs or menus, or cancels a rename, keeps the selection.

Fixes #34690
2026-11-23 22:17:11 +04:00
Classic298 306f9be784 perf: open the model editor without waiting for voices and tool lists (#34844)
The model editor waited for the tools list, skills, functions, tag suggestions and the TTS voice list one after the other before showing the form. With a TTS provider that lists voices over the network or a few tool servers, that took seconds on every open. Only the model defaults set by the admin are needed to draw the form, so the editor now waits for those alone and the other lists fill in when they arrive. Saved selections show right away, and saving before a list has arrived keeps them.

<table>
<tr><td></td><td>before</td><td>after</td></tr>
<tr><td>Edit model, voice list taking 1.5 s, 3 tool servers</td><td>2344 ms</td><td>240 ms</td></tr>
<tr><td>New model, same setup</td><td>2305 ms</td><td>227 ms</td></tr>
<tr><td>Edit model, voices and tools answering at once</td><td>231 ms</td><td>233 ms</td></tr>
</table>

Fixes #34843
2026-11-23 20:14:34 +04:00
Classic298 7d1f815625 fix: screen readers cannot tell a feature's default switch from its availability switch (#34797)
In the model editor's Features section, the switch that makes Web Search, Image Generation or Code Interpreter available and the switch that turns it on by default in new chats had the same name, so a screen reader announced two identical "Web Search" switches and labels. The default switches and their labels are now announced as "Start enabled in new chats: Web Search" and so on, matching the caption shown above them. The visible labels stay the same.

Fixes #34790
2026-11-23 19:12:15 +04:00
Classic298 41652d4a0a perf: Workspace Models list waits on an unused request before loading (#34871)
Opening Workspace > Models loaded every user group before it asked for the models, and nothing on the page used the groups. The list now starts loading as soon as the page opens, so it shows up one network round trip sooner. A failed groups request also no longer leaves the page blank.

<table>
<tr><th>Time to first model row (in-app click, 20 groups, 40 models)</th><th>Before</th><th>After</th></tr>
<tr><td>0 ms latency</td><td>263 ms</td><td>226 ms</td></tr>
<tr><td>50 ms latency</td><td>420 ms</td><td>327 ms</td></tr>
<tr><td>100 ms latency</td><td>658 ms</td><td>537 ms</td></tr>
</table>

Fixes #34870
2026-11-23 16:14:25 +04:00
Timothy Jaeryang Baek 91b7026eb0 refac 2026-11-22 17:32:06 +04:00
Timothy Jaeryang Baek df6be8c3a1 refac 2026-11-22 17:13:34 +04:00
Timothy Jaeryang Baek 67863f310c refac 2026-11-22 15:54:36 +04:00
Timothy Jaeryang Baek c46f5ba28f refac 2026-11-21 23:18:00 +04:00
Timothy Jaeryang Baek ec093aa2c5 refac 2026-11-21 23:07:17 +04:00
Timothy Jaeryang Baek 2ca21e5f2e refac 2026-11-21 23:02:19 +04:00
Timothy Jaeryang Baek c5c42fe3b7 refac 2026-11-21 16:20:44 +04:00
Timothy Jaeryang Baek a78a66e7de refac 2026-11-21 13:27:07 +04:00
Timothy Jaeryang Baek 76339161b0 refac 2026-11-20 14:43:49 +04:00
Timothy Jaeryang Baek 8fb2bf35ad refac 2026-11-19 19:13:33 +04:00
Timothy Jaeryang Baek cb19060e8f refac 2026-11-18 01:13:09 +09:00
Timothy Jaeryang Baek 916c03829d chore: format 2026-11-17 22:37:26 +09:00
Classic298 0ba0a4d7e2 fix: rename Capabilities to Features in the model editor (#34433)
* fix: rename Capabilities to Features in the model editor

The model editor section called Capabilities mostly holds switches for which features users see on a model, such as image generation, web search and the code interpreter, so the name led admins to expect it to describe what the model itself can do. The section is now called Features, and its tooltip no longer says the connected model and provider must support every switch, since each switch's own description says what it needs.

* Leave the English value of the new tooltip empty like its neighbours
2026-11-17 22:21:46 +09:00
Timothy Jaeryang Baek c201472cf8 refac 2026-11-17 19:31:57 +09:00
Timothy Jaeryang Baek e1d2722520 refac 2026-11-17 18:48:38 +09:00
Timothy Jaeryang Baek b4cc5b0afe refac 2026-11-17 01:13:22 +09:00
Timothy Jaeryang Baek de68d0ce47 refac 2026-11-17 01:05:45 +09:00
Timothy Jaeryang Baek e5aa83b847 refac 2026-11-16 23:06:08 +09:00
Timothy Jaeryang Baek 4d189c2a94 refac 2026-11-16 23:01:04 +09:00
Classic298 6a67b5b017 fix: saving a model asks "Discard unsaved changes?" right after the save (#34110)
Since the workspace pages open as tabs, saving a changed model showed the success message and then the "Discard unsaved changes?" dialog, although the change was already saved, and the model editor stayed open until the dialog was confirmed. Saving now goes straight back to the model list again, as in v0.13.3.

Fixes #34087
2026-11-16 21:03:00 +09:00
Classic298 3dab13494c fix: label knowledge bases as Knowledge Base instead of Collection (#34432)
Knowledge bases are called Collection or Collections in the chat knowledge picker, the model editor knowledge selector, the knowledge base chips and their detail view, and the search box inside a knowledge base, while the rest of the app says knowledge. Collection is also the vector database term, so the two get mixed up. Those places now say Knowledge, Knowledge Base or Search Files, reusing labels that are already translated, and the tooltip on a file inside a knowledge base now says File.

Relates to #34424
2026-11-16 15:33:17 +09:00
Timothy Jaeryang Baek 06491f0132 refac 2026-11-13 22:40:53 +09:00
G30 6181b43fa0 fix: the Workspace section links scroll sideways with the mouse wheel (#34352) 2026-11-13 17:52:18 +09:00
Timothy Jaeryang Baek 4720ff19e7 refac 2026-11-13 17:36:00 +09:00
G30 693da87625 fix: the Tools tab count no longer drops to 0 when the Tools page opens (#34236) 2026-11-12 21:24:50 +09:00