LibreChat/api/server/services/Files/Local/__tests__
Lia 5f8dbf3cf5 🪒 fix: Strip Cache-Bust Suffixes From Every Local File Read
Reused code-interpreter outputs persist a `?v=<timestamp>` suffix on the file
document's filepath, and local storage resolves that field into a filesystem path.
prepareImagesLocal already handled it after the cherry-picked commits; getLocalFileStream
did not, so every download-stream consumer (the download route, provisioning, agent and
skill file reads) still hit ENOENT for a regenerated image.

Move the strip into one documented helper and call it from all three local read paths.
2026-09-16 06:14:08 +00:00
..
cache-bust.spec.js 🪒 fix: Strip Cache-Bust Suffixes From Every Local File Read 2026-09-16 06:14:08 +00:00
crud-traversal.spec.js
images.spec.js 🧪 test: Isolate prepareImagesLocal query-strip coverage 2026-09-16 05:54:20 +00:00