@pluno/product-agent-web 0.1.154 → 0.1.155
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.
|
@@ -3357,6 +3357,9 @@ function vr(e) {
|
|
|
3357
3357
|
return typeof t.id != "string" || typeof t.content != "string" || typeof t.createdAt != "string" || !["user", "assistant", "tool", "system"].includes(String(t.role)) ? null : {
|
|
3358
3358
|
id: t.id,
|
|
3359
3359
|
role: t.role,
|
|
3360
|
+
// Commentary can be persisted while an embedded agent navigates the host page mid-run. Keep its phase so the
|
|
3361
|
+
// restored draft stays in activity history instead of flashing as a completed assistant answer after navigation.
|
|
3362
|
+
...t.phase === "commentary" || t.phase === "final_answer" ? { phase: t.phase } : {},
|
|
3360
3363
|
content: t.content,
|
|
3361
3364
|
createdAt: t.createdAt,
|
|
3362
3365
|
respondsToUserMessageId: typeof t.respondsToUserMessageId == "string" ? t.respondsToUserMessageId : void 0,
|
|
@@ -3475,6 +3475,9 @@ function rc(t) {
|
|
|
3475
3475
|
return typeof e.id != "string" || typeof e.content != "string" || typeof e.createdAt != "string" || !["user", "assistant", "tool", "system"].includes(String(e.role)) ? null : {
|
|
3476
3476
|
id: e.id,
|
|
3477
3477
|
role: e.role,
|
|
3478
|
+
// Commentary can be persisted while an embedded agent navigates the host page mid-run. Keep its phase so the
|
|
3479
|
+
// restored draft stays in activity history instead of flashing as a completed assistant answer after navigation.
|
|
3480
|
+
...e.phase === "commentary" || e.phase === "final_answer" ? { phase: e.phase } : {},
|
|
3478
3481
|
content: e.content,
|
|
3479
3482
|
createdAt: e.createdAt,
|
|
3480
3483
|
respondsToUserMessageId: typeof e.respondsToUserMessageId == "string" ? e.respondsToUserMessageId : void 0,
|
package/package.json
CHANGED