LibreChat/api
Danny Avila 09cbd54f48
🪆 fix: Rebase Activity Phase Bounds over Sparse Content (#14729)
The aggregator writes content parts at provider-source indexes, which can
skip slots and leave holes in contentParts. Array.prototype.map preserves
those holes and the Map constructor iterates them as undefined, so
rebaseActivityPhaseBounds threw "Iterator value undefined is not an entry
object" at the end of every run with sparse content — deterministic with
parent phase summaries enabled, on both the completion and resume paths.

Build the identity map with an index loop that skips nullish slots. Holes
must stay out of the map: one undefined key would falsely match every hole
in previousParts as a retained part and corrupt the rebased bound.
2026-08-10 15:05:10 -04:00
..
app 🪆 feat: Add Parent Activity Phase Summaries (#14721) 2026-08-10 13:41:37 -04:00
cache
config 🫆 chore: Remove Published Credential Defaults (#14680) 2026-08-07 07:25:05 -04:00
db
models
server 🪆 fix: Rebase Activity Phase Bounds over Sparse Content (#14729) 2026-08-10 15:05:10 -04:00
strategies 🔑 feat: Refresh-Capable Google Admin OAuth Sessions (#13832) 2026-08-07 00:10:34 -04:00
test
utils
jest.config.js
jsconfig.json
package.json 🪆 feat: Add Parent Activity Phase Summaries (#14721) 2026-08-10 13:41:37 -04:00
typedefs.js