568
// Convert from pre-1.109 format which lacks timing
569
for (const entry of Object.values(this.indexCache.entries)) {
571
>
created: entry.lastMessageDate,
572
>
lastRequestStarted: undefined,
573
>
lastRequestEnded: entry.lastMessageDate,
574
>
};
575
>
576
>
// TODO@connor4312: the check for Pending/NeedsInput guards old sessions from Insiders pre PR #288161 and it can be safely removed after a transition period, to only backfill the "complete" state when missing.
577
>
entry.lastResponseState ??= entry.lastResponseState === ResponseModelState.Pending || entry.lastResponseState === ResponseModelState.NeedsInput ? ResponseModelState.Complete : entry.lastResponseState || ResponseModelState.Complete;
578
>
}
579
580
return this.indexCache;