LibreChat/api/server
Marco Beretta 4029b5a415
fix(import): protect cancelled jobs, upload paths, and error messages
runImport returns normally when the cancel flag breaks its loop, so the
completion patch overwrote a cancelled job with completed; it now keeps
the cancelled phase and records only the partial report. Cancelling a
running job no longer deletes the archive the run still holds, which was
turning a clean cancellation into an ENOENT failure.

Same-named uploads shared one temp path, so a second import could replace
the archive a running job was reading; import uploads are now stored under
their per-upload id. The 400 branch on upload echoed raw multer/fs
messages, leaking the absolute upload path, and now routes through
sanitizeImportError like every other channel.
2026-08-02 02:02:42 +02:00
..
controllers 🪢 refactor: Move Agent Execution Seam Before Initialization (#14581) 2026-08-01 18:25:34 -04:00
middleware
routes fix(import): protect cancelled jobs, upload paths, and error messages 2026-08-02 02:02:42 +02:00
services
utils feat(import): expose import as a background job API accepting zip archives 2026-08-02 02:01:57 +02:00
cleanup.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