The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): feature-detect ctx.onDispose in the hide-sweep scheduler
Teknium9730bc78ffac
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.jsindex 3646753d99f..c2d9484c755 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.js+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js@@ -2282,14 +2282,17 @@ function startHideSweepScheduler(ctx) {}})- ctx.onDispose(() => {+ const teardown = () => {disposed = truestopGatewayListener()if (timer !== null) {clearTimeout(timer)timer = null}- })+ }+ if (typeof ctx.onDispose === 'function') {+ ctx.onDispose(teardown)+ }schedule()}