Files
t3code/apps/web
Josh Gratton cb8fbe568f fix(desktop): baseline welcome env-id from the atom to avoid immediate-fire false resolve
onWelcome subscribes with `immediate: true`, so the listener fires
synchronously with whatever welcome payload is already in the atom. The
previous code compared against `previousPrimaryEnvId` (descriptor-derived);
if the descriptor hadn't loaded yet, that was null and any non-null current
welcome would resolve the promise instantly, completing the "syncing" stage
before the new backend's welcome actually arrived. Capture the current
welcome's env-id from the atom as the baseline instead so the immediate
fire never matches the "new welcome arrived" predicate.
2026-05-16 11:38:36 -04:00
..
2026-05-15 06:40:13 +00:00