LibreChat/api/server/services/Endpoints/agents
Danny Avila 3f167089a0 🐛 fix: Correct scope + tool visibility for lazily provisioned files
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.
2026-08-30 20:12:23 -04:00
..
addedConvo.js 🪡 fix: Thread Parent Message ID Through MCP Request-Scoped Bodies (#15095) 2026-08-21 16:33:01 -04:00
addedConvo.spec.js 🛟 fix: Stop Agents When Code Resources Cannot Recover (#14651) 2026-08-07 00:33:28 -04:00
backgroundCompletion.js 🛎️ feat: Wake Agents on Background Tool Completion (#15350) 2026-08-30 08:56:41 -04:00
build.js 🗂️ feat: Add Private Chat Projects (#13467) 2026-06-03 15:29:18 -04:00
eventChildLease.js 📨 feat: Continue Bound Child Agents from Events (#15112) 2026-08-23 01:15:57 -04:00
index.js
initialize.js 🐛 fix: Correct scope + tool visibility for lazily provisioned files 2026-08-30 20:12:23 -04:00
initialize.spec.js 🗿 feat: Add Attached Stateful Code Environments (#15352) 2026-08-30 15:38:45 -04:00
skillDeps.js 🔧 feat: Lazy file provisioning — defer uploads to tool invocation time 2026-08-30 20:12:09 -04:00
skillDeps.spec.js 🗂️ feat: Add Deployment Skill Directory (#13523) 2026-06-05 10:24:28 -04:00
subagentThreadStore.js 🎼 feat: Unify Agent Turn Execution Behind One Immutable Plan (#15296) 2026-08-27 22:26:46 -04:00
subagentThreadStore.spec.js 🎼 feat: Unify Agent Turn Execution Behind One Immutable Plan (#15296) 2026-08-27 22:26:46 -04:00
title.js 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00
title.test.js 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00