The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
simplify(desktop): the onboarding run is re-read on reconnect only
alt-glitchb4e538c090cd
diff --git a/apps/desktop/src/store/onboarding-run.ts b/apps/desktop/src/store/onboarding-run.tsindex da52af40708..0ea681a650c 100644--- a/apps/desktop/src/store/onboarding-run.ts+++ b/apps/desktop/src/store/onboarding-run.ts@@ -262,19 +262,12 @@ export async function reconcileOnboarding(request: OnboardingRequest): Promise<vlet stopWatching: (() => void) | null = null-// Re-read the run on every reconnect and window focus while this window shows one.+// Re-read the run on every reconnect while this window shows one.function watchRunEnd(request: OnboardingRequest): void {stopWatching?.()const check = () => void reconcileOnboarding(request).catch(error => console.warn('[onboarding] reconcile', error))- const offGateway = $gatewayState.listen(state => state === 'open' && check())-- window.addEventListener('focus', check)-- stopWatching = () => {- offGateway()- window.removeEventListener('focus', check)- }+ stopWatching = $gatewayState.listen(state => state === 'open' && check())// An end sent while the chat was opening found no session here to end.check()