mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 14:23:59 -05:00
* feat: add default upload mode setting Add user setting to configure the default upload mode for files, allowing users to choose between "Using Entire Document" (full context) and "Using Focused Retrieval" (RAG processing) as the default behavior. * i18n: sync locale catalogs for the new upload mode strings Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore: re-trigger CI (previous run hit the pre-existing Node heap OOM, see #27254) * fix: apply the default upload mode at upload time so the payload carries it The previous approach only pre-set the modal toggle's visual state on mount; item.context is written solely by the Switch's on:change, so the sent files kept context: undefined and the backend never saw 'full'. It also showed a misleading ON state for legacy context-less files, since FileItemModal mounts with every FileItem chip render. Stamp context on the fileItem in uploadFileHandler instead (before ...itemData, so callers passing an explicit context still win) and revert the FileItemModal hunk — the modal already renders from item.context alone. --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>