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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-loft",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "type": "module",
5
5
  "description": "多个 agent 的工作台:把本机 Claude Code / Codex 放到一处统一管理,用飞书和 Web 页面随时驱动——会话、审批、模型切换都共用",
6
6
  "keywords": [
@@ -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;