mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-02 20:32:58 +00:00
Centralize the earlier-deadline rule in a capForcedRetentionExpiry helper and apply it everywhere a forced-retention deadline is written: capForcedRetentionToParent, the conversation cascade (which now re-reads the parent and caps to it), and saveConvo's ephemeral branch (which previously always refreshed to a fresh window, extending a conversation that already expired sooner). No forced-retention path lengthens an existing earlier expiry now. Also scope the retainAgentFiles exception to RetentionMode.ALL, since isAllDataRetention matches ephemeral too and would otherwise let agent files persist past an ephemeral conversation's deadline. |
||
|---|---|---|
| .. | ||
| controllers | ||
| middleware | ||
| routes | ||
| services | ||
| utils | ||
| cleanup.js | ||
| experimental.js | ||
| index.js | ||
| index.metrics.spec.js | ||
| index.spec.js | ||
| socialLogins.js | ||
| socialLogins.spec.js | ||
| telemetry.js | ||
| telemetry.spec.js | ||