LibreChat/api
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
..
app 🔗 fix: Normalize MCP Tool Keys at Every Producer, Resolve Raw Names via Aliases (#14553) 2026-08-01 07:39:24 -04:00
cache feat(import): add cache-backed import job store 2026-08-02 02:01:57 +02:00
config
db
models
server fix(import): protect cancelled jobs, upload paths, and error messages 2026-08-02 02:02:42 +02:00
strategies
test fix(import): protect cancelled jobs, upload paths, and error messages 2026-08-02 02:02:42 +02:00
utils
jest.config.js
jsconfig.json
package.json 📦 chore: update sanitize-html to latest (#14573) 2026-08-01 09:35:57 -04:00
typedefs.js