LibreChat/packages/api
Marco Beretta 775a4ef935
fix: cap shared-link expiry at source conversation and enforce retention on assistant saves
getSharedLinkExpiration starts a brand-new retention window when the source
conversation still has an active expiration, letting a share outlive the
conversation whose messages it embeds. Cap the share at the earlier of the
source expiration and a freshly created window, and fall back to the source
expiration when window creation fails.

The Assistants chat path saved messages via recordMessage, which bypasses
retention, while saveConvo forced the conversation temporary. In ephemeral
mode the conversation expired but its messages persisted with no expiredAt.
Route saveUserMessage, saveAssistantMessage and syncMessages through
saveMessage so messages inherit the same forced retention as the conversation.
2026-07-24 16:21:59 +02:00
..
src fix: cap shared-link expiry at source conversation and enforce retention on assistant saves 2026-07-24 16:21:59 +02:00
types
.gitignore
babel.config.cjs
jest.config.mjs
jest.setup.cjs
package.json 📦 chore: Update @librechat/agents to v3.2.68 (#14380) 2026-07-21 21:40:54 -04:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.spec.json
tsdown.config.mjs