@yeaft/webchat-agent 1.0.237 → 1.0.239

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.237",
3
+ "version": "1.0.239",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2610,7 +2610,11 @@ export class ConversationStore {
2610
2610
  const seq = parseSeqFromId(message.id);
2611
2611
  if (!Number.isFinite(seq)) return null;
2612
2612
  const text = this.#visibleSearchText(message.content);
2613
- const speakerVpId = message.speakerVpId || null;
2613
+ // Session logs have used three sender shapes over time. Resolve them at
2614
+ // the read boundary so existing data works without a disk migration.
2615
+ const speakerVpId = message.speakerVpId || message.meta?.senderVpId
2616
+ || (message.role === 'assistant' && message.from && message.from !== 'user'
2617
+ ? message.from : null);
2614
2618
  return {
2615
2619
  message,
2616
2620
  seq,