@yumind-ai/harness 1.0.0 → 1.0.1

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": "@yumind-ai/harness",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Yu Harness - a single-file, local-first AI agent workbench that runs in your browser",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/public/index.html CHANGED
@@ -648,7 +648,8 @@
648
648
  traceEl.appendChild(div);
649
649
  if (nearBottom(traceEl)) scrollBottom(traceEl);
650
650
 
651
- if (evt.type === 'tool.result') {
651
+ // 只有实时事件才在消息区追加工具卡片;重放历史轨迹时不要重复渲染
652
+ if (appendToState && evt.type === 'tool.result') {
652
653
  addToolCard(evt.detail.name, evt.detail.args, evt.detail.output, evt.detail.ok);
653
654
  refreshVfs();
654
655
  }