aboutsummaryrefslogtreecommitdiff
path: root/src/integration/assets/omp
diff options
context:
space:
mode:
authorDillon Mulroy <dillon.mulroy@gmail.com>2026-07-03 14:47:31 -0500
committerGitHub <noreply@github.com>2026-07-03 22:47:31 +0300
commitd5521e3d250498df4af552fff83fce3d5ef33810 (patch)
tree5fe9eebb9d30762d9fc953e89441ba0c9a27b492 /src/integration/assets/omp
parent6f148588dde3b330618981c344c12f400d74da7d (diff)
fix: preserve pi and omp working status across reloads (#984)
Diffstat (limited to 'src/integration/assets/omp')
-rw-r--r--src/integration/assets/omp/herdr-agent-state.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/integration/assets/omp/herdr-agent-state.ts b/src/integration/assets/omp/herdr-agent-state.ts
index 21c218b7..1b760a90 100644
--- a/src/integration/assets/omp/herdr-agent-state.ts
+++ b/src/integration/assets/omp/herdr-agent-state.ts
@@ -375,6 +375,8 @@ export default function (pi) {
if (!activateRootSession(ctx)) {
return;
}
+ // A reload can replace this extension mid-run without emitting another agent_start.
+ agentActive = ctx?.isIdle?.() === false;
publishState(true);
});