LibreChat/client/src/Providers
Dustin Healy edeb1ecc2c
📋 fix: Route Clipboard Paste Through Upload Options (#13957)
* 🐛 fix: route clipboard paste through upload-option guards

Pasting a file skipped the composer's attachment guards, so unsupported types such as
csv and xlsx reached the provider as document blocks and were rejected. Paste, drag, and
the upload modal now share getViableUploadOptions to decide routing: zero viable
destinations shows a toast, one auto-routes, several open the upload-type modal.

* 🐛 fix: key ephemeral agent state by NEW_CONVO in upload-option flow

useFileUploadRouter writes ephemeral capability state under
`conversationId ?? Constants.NEW_CONVO`, but useUploadOptions and DragDropModal
read it under `?? ''`, so on a new conversation the option resolver missed
capabilities enabled by auto-routing. Align the reads on Constants.NEW_CONVO.

* 🐛 fix: harden paste upload routing for assistants, custom endpoints, and toasts

Bypass option resolution for Assistants endpoints on paste, matching drag-and-drop,
so non-image assistant uploads use the assistants upload path instead of mis-routing
to context or the unsupported toast. Honor a custom endpoint's configured
supportedMimeTypes for direct provider attach instead of hardcoding image and PDF.
Stop asserting upload success before validation runs; the single-route notice is now
an informational "Attached as text" for the text-extraction case only.

* 🐛 fix: refine paste upload routing for direct chats, custom endpoints, and disabled uploads

Restore Code Interpreter and File Search options in direct and ephemeral chats by
defaulting their permissions to allowed unless a saved agent omits the tool; selecting
one still enables the ephemeral capability. Treat a custom endpoint as broad provider
support only when its file config is permissive (matching the file picker), so an
inherited default no longer offers zip/audio/video for direct attach. Short-circuit
paste with the disabled-upload error before resolving options or opening the modal.
2026-06-26 12:00:07 -04:00
..
__tests__ ☁️ fix: Enable Azure Agent Provider Uploads (#13045) 2026-05-10 17:47:05 -04:00
ActivePanelContext.tsx 🗂️ feat: Sidebar Icon Toggle & New Chat History Switch (#12642) 2026-04-13 09:46:38 -04:00
AddedChatContext.tsx ⏸ refactor: Improve UX for Parallel Streams (Multi-Convo) (#11096) 2025-12-25 01:43:54 -05:00
AgentPanelContext.tsx 🏗️ feat: Dynamic MCP Server Infrastructure with Access Control (#10787) 2025-12-11 16:38:37 -05:00
AgentsContext.tsx feat: Agent Panel UI Enhancements (#7800) 2025-06-13 15:47:41 -04:00
AgentsMapContext.tsx
AnnouncerContext.tsx
ArtifactContext.tsx 🧊 perf: Memoize Completed Markdown Blocks During Streaming (#13576) 2026-06-07 20:31:56 -04:00
ArtifactsContext.tsx 🧬 refactor: Derive Latest Message From Cache (#13294) 2026-05-24 16:20:27 -04:00
AssistantsContext.tsx
AssistantsMapContext.tsx
BadgeRowContext.tsx 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
BookmarkContext.tsx
ChatContext.tsx 🎨 refactor: Redesign Sidebar with Unified Icon Strip Layout (#12013) 2026-03-22 01:15:20 -04:00
ChatFormContext.tsx
CodeBlockContext.tsx 🧊 perf: Memoize Completed Markdown Blocks During Streaming (#13576) 2026-06-07 20:31:56 -04:00
CustomFormContext.tsx
DragDropContext.tsx ☁️ fix: Enable Azure Agent Provider Uploads (#13045) 2026-05-10 17:47:05 -04:00
EditorContext.tsx feat: Artifact Management Enhancements, Version Control, and UI Refinements (#10318) 2025-11-12 13:32:47 -05:00
FileMapContext.tsx
index.ts 📋 fix: Route Clipboard Paste Through Upload Options (#13957) 2026-06-26 12:00:07 -04:00
MessageContext.tsx 🎋 refactor: Improve Message UI State Handling (#9678) 2025-09-17 13:07:56 -04:00
MessagesViewContext.tsx 🧬 refactor: Derive Latest Message From Cache (#13294) 2026-05-24 16:20:27 -04:00
PromptGroupsContext.tsx 🧑‍🎨 refactor: Prompts/Sidebar styles for improved UI Consistency (#12426) 2026-04-09 00:02:31 -04:00
SearchContext.tsx 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
SetConvoContext.tsx ♻️ refactor: Logout UX, Improved State Teardown, & Remove Unused Code (#5292) 2025-01-12 12:57:10 -05:00
ShareContext.tsx 🔗 feat: Snapshot Files for Shared-Link Attachments (#13740) 2026-06-20 23:05:13 -04:00
ToolCallsMapContext.tsx
UploadModalContext.tsx 📋 fix: Route Clipboard Paste Through Upload Options (#13957) 2026-06-26 12:00:07 -04:00