LibreChat/api/server/controllers/agents
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__ 🏗️ refactor: Move provisioning into the TypeScript workspace 2026-08-31 15:20:54 -04:00
callbacks.background.spec.js
callbacks.js 🗿 feat: Add Attached Stateful Code Environments (#15352) 2026-08-30 15:38:45 -04:00
client.js 🧬 perf: Evolve Compaction Guidance on Warm Turns (#15371) 2026-08-30 17:11:20 -04:00
client.test.js 🧬 perf: Evolve Compaction Guidance on Warm Turns (#15371) 2026-08-30 17:11:20 -04:00
errors.js
filterAuthorizedTools.spec.js
openai.js 🐛 fix: Provision through the resolved code route and fail loudly when search cannot 2026-08-31 16:07:51 -04:00
protocol.js
recordCollectedUsage.spec.js
request.js 🎠 refactor: Route Every Event Actor Turn Through One Lifecycle (#15325) 2026-08-28 17:30:23 -04:00
responses.js 🐛 fix: Provision through the resolved code route and fail loudly when search cannot 2026-08-31 16:07:51 -04:00
resume.js 🛄 feat: Restore Compaction Guidance Across Continuations (#15356) 2026-08-30 08:13:24 -04:00
steer.js
v1.js 🗿 feat: Add Attached Stateful Code Environments (#15352) 2026-08-30 15:38:45 -04:00
v1.spec.js 🗿 feat: Add Attached Stateful Code Environments (#15352) 2026-08-30 15:38:45 -04:00