diff --git a/apps/detail-agent-pi/src/agent.mjs b/apps/detail-agent-pi/src/agent.mjs index 0089ec0c..603556b9 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; @@ -1087,7 +1085,6 @@ export class DetailPiAgent { throw error; } finally { await closeProductionTurn(this).catch(()=>{}); - if (this.heartbeat) clearInterval(this.heartbeat); } } async loadProductionKnowledge(selection, signal, pins) { @@ -1213,7 +1210,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 {