From 14578d38901488ed263562ca38d7223b2cf18333 Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Fri, 27 Nov 2026 22:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B0=8F=E5=A3=B9=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E7=9A=84=E5=AE=9A=E6=97=B6=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E8=BD=AE=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/detail-agent-pi/src/agent.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/detail-agent-pi/src/agent.mjs b/apps/detail-agent-pi/src/agent.mjs index faeb01e9..e3fb5a6e 100644 --- a/apps/detail-agent-pi/src/agent.mjs +++ b/apps/detail-agent-pi/src/agent.mjs @@ -1017,8 +1017,6 @@ export class DetailPiAgent { this.copyFieldsTargets = (references??[]).filter(ref=>ref.layerKind==='Type'&&ref.component==='layer') .map(ref=>ref.nativeLayerId); this.activityScope = activityScope(this.store.identity, this.canvas, begun); - this.heartbeat = setInterval(() => { this.canvas.read().then(state => { if(this.nativeUI && typeof state?.editorText==='string')this.nativeUI.editorText=state.editorText; }).catch(() => {}); }, 2000); - this.heartbeat.unref(); } try { const production=this.productionGoal; @@ -1084,7 +1082,6 @@ export class DetailPiAgent { throw error; } finally { await closeProductionTurn(this).catch(()=>{}); - if (this.heartbeat) clearInterval(this.heartbeat); } } async loadProductionKnowledge(selection, signal, pins) { @@ -1210,7 +1207,6 @@ export class DetailPiAgent { async dispose() { this.disposed = true; if (this.nativeUI) this.nativeUI.active = false; - if (this.heartbeat) clearInterval(this.heartbeat); try { try { await this.session?.abort(); } finally { this.session?.dispose(); } } finally {