agent-loft 0.2.38 → 0.2.39
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/web/views/messages.js +7 -0
package/package.json
CHANGED
package/web/views/messages.js
CHANGED
|
@@ -111,6 +111,13 @@ export async function openConversation(key) {
|
|
|
111
111
|
if (!known) renderSidebar();
|
|
112
112
|
S.allowedAgents = data.allowedAgents;
|
|
113
113
|
if (Number.isFinite(data.serverTime)) setServerTime(data.serverTime);
|
|
114
|
+
// 等历史的时候 WS 刚连上(刚打开页面),订阅回放的进行中这一轮可能已经先画进来了:
|
|
115
|
+
// 下面整页重画、live 会再重放一遍,这里得一起清掉,不然 S.turnAi 还指着被清掉的那个占位,
|
|
116
|
+
// 回复全写进一个不在页面上的元素里
|
|
117
|
+
S.items = [];
|
|
118
|
+
S.turnAi = null;
|
|
119
|
+
turnStartAt = null;
|
|
120
|
+
ui.pinEl = null;
|
|
114
121
|
fill(ui.msgInner, );
|
|
115
122
|
// 历史一次性加进来,最后再统一排版,免得每加一条就强制排版一次
|
|
116
123
|
bulk = true;
|