Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#98247)

hermes-seaeye[bot]105b8650ef7b
diff --git a/apps/desktop/src/plugins/hermes-bots/relay.ts b/apps/desktop/src/plugins/hermes-bots/relay.ts
index d3ef91367da..df92c8f173a 100644
--- a/apps/desktop/src/plugins/hermes-bots/relay.ts
+++ b/apps/desktop/src/plugins/hermes-bots/relay.ts
@@ -54,8 +54,9 @@ const RELAY_DRAIN_INTERVAL_MS = 30_000
const RELAY_TURN_LOCK_WAIT_MS = 120_000 // bot_mode.turn_wait_seconds default
const RELAY_TURN_ATTEMPT_MS = 600_000 // subprocess.run(..., timeout=600)
const RELAY_TURN_MAX_ATTEMPTS = 2 // first attempt + the policy-gated re-run
-const RELAY_DELIVER_BACKEND_CEILING_MS =
- RELAY_TURN_LOCK_WAIT_MS + RELAY_TURN_ATTEMPT_MS * RELAY_TURN_MAX_ATTEMPTS
+
+const RELAY_DELIVER_BACKEND_CEILING_MS = RELAY_TURN_LOCK_WAIT_MS + RELAY_TURN_ATTEMPT_MS * RELAY_TURN_MAX_ATTEMPTS
+
// Settlement + transport headroom on top of the ceiling, so a backend that
// answers at its own limit still wins the race against this timer.
const RELAY_DELIVER_SETTLEMENT_MARGIN_MS = 180_000
diff --git a/apps/desktop/src/sdk/profile-routing.test.ts b/apps/desktop/src/sdk/profile-routing.test.ts
index e989aa729c6..83328ad1204 100644
--- a/apps/desktop/src/sdk/profile-routing.test.ts
+++ b/apps/desktop/src/sdk/profile-routing.test.ts
@@ -412,10 +412,12 @@ describe('connection-aware plugin host APIs', () => {
// Same backend, deadline with settlement margin: the answer gets through.
const withMargin = host.requestProfile(route, 'bot_relay.deliver', {}, CEILING_MS + SETTLEMENT_MS * 180)
+
const withMarginSettled = expect(withMargin).resolves.toEqual({
reason: 'ok',
reply: 'delivered'
})
+
await vi.advanceTimersByTimeAsync(CEILING_MS + SETTLEMENT_MS)
await withMarginSettled
} finally {