The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): poll-guard reset is fire-and-forget off the redial path
Tekniumb455abe0b331
diff --git a/apps/desktop/src/store/gateway.ts b/apps/desktop/src/store/gateway.tsindex 6789df85d08..60481bd5599 100644--- a/apps/desktop/src/store/gateway.ts+++ b/apps/desktop/src/store/gateway.ts@@ -461,17 +461,18 @@ async function openSecondary(entry: Secondary): Promise<void> {// real store; a failed import must not make the transport unrecoverable.}- try {- // Runtime re-mint also invalidates the status-stack gone-latch: ids- // the dead runtime 4001'd may be live again once tiles re-resume.- // Separate try: tests that mock only session-states must not lose the- // rebinding wiring to a failed composer-status import (and vice versa).- const { resetBackgroundPollingGuard } = await import('@/store/composer-status')-- resetBackgroundPollingGuard()- } catch {- // Same best-effort contract as above.- }+ // Runtime re-mint also invalidates the status-stack gone-latch: ids+ // the dead runtime 4001'd may be live again once tiles re-resume.+ // Fire-and-forget: composer-status imports from this module, so the+ // import must stay dynamic (cycle), and it must NOT sit on the timed+ // redial path — awaiting the module load here pushed cold-start+ // redials past test/waitFor budgets. The reset needs no ordering+ // guarantee relative to the dial.+ void import('@/store/composer-status')+ .then(({ resetBackgroundPollingGuard }) => resetBackgroundPollingGuard())+ .catch(() => {+ // Best effort for partial test/HMR graphs, same as above.+ })}// Registry-scoped entries dial through getConnectionFor when the bridge has