Skip to content

The agent that grows with you

docs(profiles): Desktop cron ticker follows profile create/delete live

teknium18550f9084eac
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index a716e73922b..b48f97d3650 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -12534,6 +12534,7 @@ async function runPoolBackendStart(profile, entry, opts: { forceLocal?: boolean;
if (isBackgroundSlotWaitTimeout(error)) {
backgroundSlotRetryBackoff.recordFailure(poolKey)
}
+
throw error
} finally {
localBackendLifecycle.signal.removeEventListener('abort', cancelRequest)
diff --git a/apps/desktop/electron/pool-spawn-coordinator.ts b/apps/desktop/electron/pool-spawn-coordinator.ts
index 1f7be04c6a3..18516eac7c5 100644
--- a/apps/desktop/electron/pool-spawn-coordinator.ts
+++ b/apps/desktop/electron/pool-spawn-coordinator.ts
@@ -85,6 +85,7 @@ export class BackgroundSlotRetryBackoff {
const attempts = (this.#failures.get(key)?.attempts ?? 0) + 1
const delay = Math.min(this.#baseDelayMs * 2 ** (attempts - 1), this.#maxDelayMs)
this.#failures.set(key, { attempts, nextRetryAt: now + delay })
+
return delay
}
diff --git a/website/docs/user-guide/multi-profile-gateways.md b/website/docs/user-guide/multi-profile-gateways.md
index 5709b16ebb0..ecb4333e3d8 100644
--- a/website/docs/user-guide/multi-profile-gateways.md
+++ b/website/docs/user-guide/multi-profile-gateways.md
@@ -469,8 +469,10 @@ turn, the cron ticker or log routing.
The served set controls `/p/<profile>/` API and webhook prefixes, runtime
status, profile-route eligibility, and which profiles the in-process cron
-scheduler ticks (the Desktop backend's ticker enumerates the same set and stands
-down for any profile a running multiplexer or its own gateway already serves). A
+scheduler ticks (the Desktop backend's ticker re-enumerates the same set on
+every cycle — a profile created or deleted while Desktop runs joins or leaves
+the ticked set without a restart — and stands down for any profile a running
+multiplexer or its own gateway already serves). A
multiplexer started as `hermes -p <name> gateway run` always ticks its own
profile's cron store as well.