LibreChat/api/server/controllers
Danny Avila 460a42f38d 🐛 fix: Provision through the resolved code route and fail loudly when search cannot
Four gaps, all in code this PR introduced.

The OpenAI-compatible controllers wired the provisioning callback but not the
query that fills its queue, so deferred discovery was skipped on those API paths
and later code or search calls ran without earlier attachments.

Provisioning also hard-coded the default Code API. An agent using a configured
stateful environment had its file uploaded to the wrong deployment and
re-uploaded by priming, and a deployment whose only healthy Code API is the
stateful one could not provision at all. The resolved route now flows through
the upload and is recorded in the reference key.

Deferred candidates skipped endpoint filtering: a file the endpoint refuses by
size, MIME type, or a files-disabled setting could still reach the Code API or
RAG through provisioning after being removed from delivery. The same filter now
governs both paths.

A missing RAG_API_URL reported a benign non-embed, so the queue cleared and
file_search ran as though its input were present. It is a provisioning failure
now, and vector failures abort the turn like code failures do. An earlier commit
argued search only narrows results; that was wrong, since a search silently
omitting the file the user asked about is a wrong answer rather than a smaller
one.
2026-08-31 16:07:51 -04:00
..
__tests__ 🧳 feat: Register Principal-Owned Code Environments (#15365) 2026-08-30 19:33:19 -04:00
agents 🐛 fix: Provision through the resolved code route and fail loudly when search cannot 2026-08-31 16:07:51 -04:00
assistants 🔒 fix: Refresh MCP OBO Tokens From the Live OpenID Session (#15334) 2026-08-29 23:55:58 -04:00
auth 🔒 fix: Refresh MCP OBO Tokens From the Live OpenID Session (#15334) 2026-08-29 23:55:58 -04:00
AuthController.js 🔒 fix: Refresh MCP OBO Tokens From the Live OpenID Session (#15334) 2026-08-29 23:55:58 -04:00
AuthController.spec.js 🔒 fix: Refresh MCP OBO Tokens From the Live OpenID Session (#15334) 2026-08-29 23:55:58 -04:00
avatar.contentFilter.spec.js 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00
Balance.js 🤫 chore: Quiet Repetitive Log Noise from Balance, CloudFront, and Capability Paths (#13461) 2026-06-01 20:40:16 -04:00
Balance.spec.js 🤫 chore: Quiet Repetitive Log Noise from Balance, CloudFront, and Capability Paths (#13461) 2026-06-01 20:40:16 -04:00
EndpointController.js
FavoritesController.js
FavoritesController.spec.js
mcp.js 🔄 fix: Recover Missing MCP Marketplace Catalogs (#15323) 2026-08-30 06:55:30 -04:00
ModelController.js perf: Reduce Agent Chat Startup Latency (#14423) 2026-07-25 07:58:20 -04:00
ModelController.spec.js perf: Reduce Agent Chat Startup Latency (#14423) 2026-07-25 07:58:20 -04:00
PermissionsController.js 🧳 feat: Register Principal-Owned Code Environments (#15365) 2026-08-30 19:33:19 -04:00
PluginController.js 🙋 feat: ask_user_question - agent-initiated questions with durable pause/resume (#14139) 2026-07-08 15:31:05 -04:00
PluginController.spec.js 🙋 feat: ask_user_question - agent-initiated questions with durable pause/resume (#14139) 2026-07-08 15:31:05 -04:00
SkillStatesController.js 🗂️ feat: Add Deployment Skill Directory (#13523) 2026-06-05 10:24:28 -04:00
TokenConfigController.js 🗂️ fix: Scope Token Config Cache (#13770) 2026-06-15 15:25:19 -04:00
tools.js 🕸️ feat: Complete Keenable Web Search Provider (#15288) 2026-08-27 14:29:20 -04:00
TwoFactorController.js
UserController.js 🧳 feat: Register Principal-Owned Code Environments (#15365) 2026-08-30 19:33:19 -04:00
UserController.spec.js 🧳 feat: Register Principal-Owned Code Environments (#15365) 2026-08-30 19:33:19 -04:00