LibreChat/api/server/services/Files
Danny Avila 858e2371f9
📦 fix: Reuse Unchanged Code Snapshots and Batch the Uploads a Turn Still Needs (#18564)
* 📦 fix: Reuse Unchanged Code Snapshots and Batch the Uploads a Turn Still Needs

Every generated-file snapshot in a conversation was uploaded to the Code API again on each turn that used the code tool, one request per file, so a conversation holding about as many files as the upload limiter allows could no longer run code.

A snapshot is now mounted from the object uploaded earlier while the object store still reports the bytes that upload sent, on routes that mount stored objects for every execution. Files that do need uploading share one /upload/batch request. A rate-limited turn reports once, and an upload that never reached the Code API is a known outcome rather than a claim kept for manual recovery.

* fix: Keep Unanswered Batch Files Uncertain and Bound What a Batch Holds

A file the Code API left out of a batch answer, or confirmed without an object id, may still have been stored, so only the service's own per-file error releases its claim.

The batch allowance is now charged with the bytes actually read across the whole batch, so records that understate their size cannot make one request hold more than it may carry; the excess is streamed.
2026-11-19 22:34:01 -05:00
..
Audio ⏱️ fix: Bound Remaining Outbound Calls With Timeout Budgets (#17468) 2026-10-29 09:55:18 +01:00
Azure 🪠 fix: Erase Vectors in Their Recorded Namespaces (#17457) 2026-10-26 22:26:11 +01:00
Citations 🛤️ fix: Align File Search Citation Paths (#15650) 2026-09-06 17:25:47 -04:00
Code 📦 fix: Reuse Unchanged Code Snapshots and Batch the Uploads a Turn Still Needs (#18564) 2026-11-19 22:34:01 -05:00
Firebase ⏱️ fix: Bound Remaining Outbound Calls With Timeout Budgets (#17468) 2026-10-29 09:55:18 +01:00
images 📎 feat: Resolve Channel Attachments and Usage Summaries (#17608) 2026-11-10 21:04:02 -08:00
Local 🔗 fix: Encode Local Storage URLs and Reject Nested File Names (#17949) 2026-11-09 17:40:12 +01:00
OpenAI
VectorDB 🆖 fix: Recognize Confirmed RAG Embedding Refusals (#18404) 2026-11-18 09:02:46 -05:00
operations.js 🌳 fix: Preserve Primary Files Until Secondary Cleanup Succeeds (#17228) 2026-10-23 07:00:20 +02:00
permissions.js 🧱 fix: Enforce Agent Runtime File Trust Boundaries (#14577) 2026-08-02 14:18:28 -04:00
permissions.spec.js 🧱 fix: Enforce Agent Runtime File Trust Boundaries (#14577) 2026-08-02 14:18:28 -04:00
process.integration.spec.js fix: Guard Mongo Cleanup In Api Services Tests (#17990) 2026-11-11 11:10:39 +01:00
process.js 🦦 fix: Bound Spreadsheet Text Extraction (#17824) 2026-11-09 08:27:47 -05:00
process.spec.js 🦦 fix: Bound Spreadsheet Text Extraction (#17824) 2026-11-09 08:27:47 -05:00
provision.js 📦 fix: Reuse Unchanged Code Snapshots and Batch the Uploads a Turn Still Needs (#18564) 2026-11-19 22:34:01 -05:00
provisionCallback.js 📦 fix: Reuse Unchanged Code Snapshots and Batch the Uploads a Turn Still Needs (#18564) 2026-11-19 22:34:01 -05:00
retention.js ⏳ fix: Separate Temporary and General Chat Retention (#15734) 2026-09-08 11:22:54 -04:00
retention.spec.js ⏳ fix: Separate Temporary and General Chat Retention (#15734) 2026-09-08 11:22:54 -04:00
routing.js 🚚 feat: Route Attachments and Provision Tools Lazily (#15763) 2026-09-08 23:28:52 -04:00
saveBase64Image.spec.js 🏷️ fix: Record the Media Type of Saved Images, Not the Declared One (#15606) 2026-09-04 11:51:28 -04:00
strategies.js 🥤 feat: Let Remote SDK Agents Read Native Chat Attachments (#18419) 2026-11-18 11:49:24 -05:00