feat: persist session origin metadata across connectors

This commit is contained in:
Peter Steinberger
2026-01-18 02:41:06 +00:00
parent 0c93b9b7bb
commit 34590d2144
30 changed files with 246 additions and 66 deletions

View File

@@ -381,6 +381,8 @@ export function listSessionsFromStore(params: {
const groupChannel = entry?.groupChannel;
const space = entry?.space;
const id = parsed?.id;
const origin = entry?.origin;
const originLabel = origin?.label;
const displayName =
entry?.displayName ??
(channel
@@ -393,7 +395,8 @@ export function listSessionsFromStore(params: {
key,
})
: undefined) ??
entry?.label;
entry?.label ??
originLabel;
const deliveryFields = normalizeSessionDeliveryFields(entry);
return {
key,
@@ -405,6 +408,7 @@ export function listSessionsFromStore(params: {
groupChannel,
space,
chatType: entry?.chatType,
origin,
updatedAt,
sessionId: entry?.sessionId,
systemSent: entry?.systemSent,