From d5521e3d250498df4af552fff83fce3d5ef33810 Mon Sep 17 00:00:00 2001 From: Dillon Mulroy Date: Fri, 3 Jul 2026 14:47:31 -0500 Subject: fix: preserve pi and omp working status across reloads (#984) --- src/integration/assets/pi/herdr-agent-state.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/integration/assets/pi') diff --git a/src/integration/assets/pi/herdr-agent-state.ts b/src/integration/assets/pi/herdr-agent-state.ts index 4bee2763..44a56088 100644 --- a/src/integration/assets/pi/herdr-agent-state.ts +++ b/src/integration/assets/pi/herdr-agent-state.ts @@ -332,6 +332,8 @@ export default function (pi) { rootSession = true; updateSessionRef(ctx); void reportSession(); + // A reload can replace this extension mid-run without emitting another agent_start. + agentActive = ctx?.isIdle?.() === false; publishState(true); }); -- cgit v1.2.3