mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 14:57:43 -05:00
* fix: knowledge, note and chat attach entries open while file upload is off When a user may not attach files (no file upload permission, or a selected model without "File Upload"), the "+" menu greys out "Attach Knowledge", "Reference Chats" and "Attach Notes", but they still opened, and the picked item vanished from the input without a message. Knowledge picked from the "#" and "@" lists vanished the same way, and the "#" list offered a pasted link to users without the web upload permission, which only answered "You do not have permission to upload web content". The greyed entries now do nothing on click, like "Attach Files" next to them, and the "#" and "@" lists leave out what the user cannot attach. Refs #32830 * refac: drop type annotations on the upload flag to match neighbours The new upload flag declarations now follow the untyped style of the lines around them. * fix: hide attach entries in the # and @ lists from the first keystroke The chat input now works out on its own whether files can be attached, so the lists no longer wait for the + menu to report it.