mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-08 15:41:38 +00:00
Addresses Codex P1 findings on the lazy provisioning path: - Scope per file like the direct upload path: current-message chat attachments (context=message_attachment) provision to the user's code sandbox / unscoped vector index (entity_id undefined); only agent setup files use entity_id=agentId. Previously every lazily provisioned file was agent-scoped, so a user's chat attachment landed in the agent sandbox and file_search queries (unscoped for fromAgent=false) missed the agent-scoped embedding. - Surface provisioned files to the tool loaded immediately after by adding them to ctx.tool_resources.<resource>.files, which primeCodeFiles/primeFiles read. Before, a freshly provisioned unified upload was invisible to the first code/file_search call even though provisioning had completed. |
||
|---|---|---|
| .. | ||
| controllers | ||
| middleware | ||
| routes | ||
| services | ||
| utils | ||
| cleanup.js | ||
| csp.spec.js | ||
| experimental.js | ||
| experimental.spec.js | ||
| index.js | ||
| index.metrics.spec.js | ||
| index.spec.js | ||
| socialLogins.js | ||
| socialLogins.spec.js | ||
| telemetry.js | ||
| telemetry.spec.js | ||