Skip to content

The agent that grows with you

style(desktop): padding lines eslint asks for in the new mock and closure

kshitijk4poor213c98f907aa
diff --git a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
index cc370f687e3..482ef96f3eb 100644
--- a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
+++ b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
@@ -312,6 +312,7 @@ export function useGatewayBoot({
// Reset together with the backoff counters: on a STABLE open (isStableOpen)
// or a manual/wake-driven reconnect — never on a bare 'open' that dies.
let escalated = false
+
const resetReconnectBackoff = () => {
reconnectAttempt = 0
reconnectFailingSince = null
diff --git a/apps/desktop/src/store/gateway.test.ts b/apps/desktop/src/store/gateway.test.ts
index 90557dd8b49..a38fe6a77f9 100644
--- a/apps/desktop/src/store/gateway.test.ts
+++ b/apps/desktop/src/store/gateway.test.ts
@@ -40,17 +40,21 @@ vi.mock('@/hermes', () => ({
// Mirrors json-rpc-gateway: 'connecting' → 'open' on success, → 'error' on a refused dial.
connect = async (wsUrl: string): Promise<void> => {
this.emitState('connecting')
+
try {
await gatewayMocks.connect(wsUrl)
} catch (error) {
this.emitState('error')
+
throw error
}
+
this.emitState('open')
}
onEvent = vi.fn(() => () => {})
onState = vi.fn((listener: (state: string) => void) => {
this.stateListener = listener
+
return () => {
this.stateListener = null
}