@yeaft/webchat-agent 0.1.827 → 0.1.828
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/unify/web-bridge.js +2 -0
package/package.json
CHANGED
package/unify/web-bridge.js
CHANGED
|
@@ -576,6 +576,7 @@ function projectPersistedToHistoryEntry(m) {
|
|
|
576
576
|
}
|
|
577
577
|
if (m.isError) entry.isError = true;
|
|
578
578
|
if (m.ts) entry.ts = m.ts;
|
|
579
|
+
else if (m.time) entry.ts = m.time;
|
|
579
580
|
if (Array.isArray(m.attachments) && m.attachments.length > 0) entry.attachments = m.attachments;
|
|
580
581
|
if ((entry.role === 'user' || entry.role === 'assistant') && !entry.content && !entry.attachments) return null;
|
|
581
582
|
return entry;
|
|
@@ -3680,6 +3681,7 @@ export async function handleUnifyLoadMoreHistory(msg) {
|
|
|
3680
3681
|
...(m.id ? { id: m.id } : {}),
|
|
3681
3682
|
role: m.role,
|
|
3682
3683
|
content: m.content,
|
|
3684
|
+
ts: m.ts || m.time || null,
|
|
3683
3685
|
groupId: m.groupId || null,
|
|
3684
3686
|
threadId: m.threadId || m.turnId || 'main',
|
|
3685
3687
|
turnId: m.turnId || m.threadId || 'main',
|