LibreChat/api/server
shars ac8cdcc1ea fix(agents): keep file context in the message that carries the file
With execute_code and resendFiles, a code-environment file is loaded into
the turn's attachments on every turn. addPreviousAttachments treated every
attachment as submitted by the current request, so the file's text was cut
from the message it was attached to and added to the newest message. The
bytes in the middle of the history changed each turn and the provider cache
stopped at that point.

Only files named in req.body.files move to the current message. A refreshed
tool file stays in its own message, and the latest message skips files an
earlier message already carries, so the text appears once and the attachment
limits count it once.

Reported-by: FFourtyTwo
2026-11-02 10:32:23 +03:00
..
controllers fix(agents): keep file context in the message that carries the file 2026-11-02 10:32:23 +03:00
middleware 🔑 perf: Cache JWT Users and Batch Auth-Path Reads (#17466) 2026-10-30 00:24:08 +01:00
routes 🧹 chore: Clear the Whole-Repo Lint Errors on Dev (#17702) 2026-11-01 01:23:47 +01:00
services 🪪 feat: Name the Build and Config in Telemetry, Configure Stack Depth, Keep Scoped Frames (#17515) 2026-10-31 11:44:23 -04:00
utils ⏱️ fix: Bound Remaining Outbound Calls With Timeout Budgets (#17468) 2026-10-29 09:55:18 +01:00
cleanup.js 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
csp.spec.js
experimental.js 🛡️ fix: Reject Unknown Admin Config Sections and Scope Write Responses to Read Access (#17315) 2026-10-22 16:52:56 +02:00
experimental.spec.js 🛡️ fix: Reject Unknown Admin Config Sections and Scope Write Responses to Read Access (#17315) 2026-10-22 16:52:56 +02:00
index.js 🧬 feat: Re-Derive Azure Groups, Vertex AI, Custom Parameters and Spec Defaults for Config Profiles (#17399) 2026-10-24 11:46:01 +02:00
index.metrics.spec.js
index.spec.js 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
socialLogins.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
socialLogins.spec.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
telemetry.js
telemetry.spec.js