mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-03 04:42:11 +00:00
The messages routes (branch, artifact, post), share-link create/patch, and the agent chat-abort route read req.config.interfaceConfig but never ran configMiddleware, so req.config was undefined and retention was skipped. Under ephemeral (and all) this let branched/edited/aborted messages and shared links persist without isTemporary/expiredAt, outliving the chat. Apply configMiddleware to those routes so retention is enforced consistently. Add a getSharedLinkExpiration ephemeral test and keep route test middleware mocks in sync. |
||
|---|---|---|
| .. | ||
| app | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| typedefs.js | ||