open-webui/src/lib/components/chat
G30 cb64068893
feat: add default file upload mode user setting (#20900)
* 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>
2026-07-26 22:50:03 -05:00
..
ChatControls refac 2026-02-24 16:12:02 -06:00
ContentRenderer refac 2026-04-24 18:20:10 +09:00
Controls refac 2026-07-15 16:33:25 -04:00
FileNav refac 2026-07-14 04:15:20 -04:00
MessageInput fix(ui): stop the chat input attach menus from fetching twice on open (#27461) 2026-07-26 18:14:06 -04:00
Messages refac 2026-07-26 18:30:58 -04:00
ModelSelector fix(ui): resolve workspace model ID to base model on delete from model selector (#26819) 2026-07-24 00:03:31 -05:00
Overview refac 2026-07-14 04:15:20 -04:00
Placeholder refac 2026-07-26 22:16:31 -04:00
Settings feat: add default file upload mode user setting (#20900) 2026-07-26 22:50:03 -05:00
Artifacts.svelte refac 2026-07-14 04:15:20 -04:00
Chat.svelte refac 2026-07-26 23:49:03 -04:00
ChatControls.svelte refac 2026-07-15 21:43:47 -04:00
ChatPlaceholder.svelte chore: format 2026-07-20 22:11:42 -04:00
EmbeddedChatHistoryDropdown.svelte refac 2026-07-15 23:21:06 -04:00
EmbeddedChatHistoryItem.svelte refac 2026-07-15 23:21:06 -04:00
FileNav.svelte fix: show download preparation toast and prevent duplicate zip jobs (#27421) 2026-07-26 18:55:09 -04:00
MessageInput.svelte feat: add default file upload mode user setting (#20900) 2026-07-26 22:50:03 -05:00
Messages.svelte refac 2026-07-24 02:14:56 -04:00
ModelSelector.svelte refac 2026-07-14 02:55:01 -04:00
Navbar.svelte refac 2026-07-26 21:12:14 -04:00
Overview.svelte 0.6.33 (#18118) 2025-10-07 16:20:27 -05:00
Placeholder.svelte refac 2026-07-24 00:47:12 -04:00
PyodideFileNav.svelte refac 2026-06-28 22:35:59 -05:00
SettingsModal.svelte refac 2026-07-24 01:09:50 -04:00
ShareChatModal.svelte refac 2026-07-26 18:06:03 -04:00
ShortcutItem.svelte refac 2026-07-15 04:52:06 -04:00
SkillsModal.svelte refac 2026-07-15 04:25:51 -04:00
Suggestions.svelte refac 2026-07-14 04:26:18 -04:00
TagChatModal.svelte enh: auto tag feedback 2024-10-23 20:18:51 -07:00
Tags.svelte refac 2026-07-14 01:39:40 -04:00
ToolServersModal.svelte refac 2026-07-15 04:25:51 -04:00
XTerminal.svelte fix: trim terminal bearer token so whitespace can't break the WebSocket (#25686) 2026-06-29 03:35:19 -05:00