You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Fresh Pro sign-in on public tenant (non-member): no consent modal + no 'Enable sync' — user can't turn sync on #1685
Found during round-2 live OAuth validation (2026-07-17, tenant_public, interactive Google sign-in).
Observed: on a fresh Pro sign-in (fresh local DB, sync_enabled=false) to the public tenant, where the signed-in user is not yet a member of any collection:
The first-Pro consent modal does not appear (the Invitations/RBAC modal shows instead).
The pill reads "Signed in — sync off" (correct) but its menu is only "Signed in as … / Invitations / Sign out" — no "Enable sync" affordance.
Net: a new Pro user has no way to turn sync on from the GUI.
The daemon connects realtime + spawns pull/push but sync_enabled stays false (sweep gated correctly), so the consent gate itself is fine (validated: no content leak). The problem is the enable-sync path: first-pro-consent-slot.svelte only mounts for the consent variant and auto-opens when signedInEpisode > 0 && !declined; signedInEpisode does bump on sign-in, so the consent variant is not resolving (or the enable-sync pill isn't shown) for this state.
Likely tied to membership: the user is a member of 0 collections on tenant_public (the daemon writes to the default collection c0000000-…-0001 the user isn't a member of). The consent flow may implicitly require membership. But a first-Pro user's own journal should be publishable, so this either needs the consent modal to appear regardless (offering publish + auto-join) or a defined "join the default collection first" step.
Impact: blocks a new Pro user on the public tenant from ever enabling sync via the GUI. Related: core#1674 (consent pill), the sign-in-first consent flow.
Repro: clean DB, bind tenant_public, interactive sign-in as a non-member → observe no consent modal + no enable-sync option.
The enable-sync / consent affordance is restored for a fresh Pro sign-in: resolveProSyncVariant now treats a live WatchSyncStatus sign-in (proSync.userEmail) as authed, so the variant resolves consent (enable-sync pill + consent slot) even before the async auth_status on the DatabaseSettingsNode hydrates — closing the window where a new Pro user saw sign-in and had no way to enable sync. Signed-out stays sign-in (regression-tested). The Invitations-instead-of-consent symptom is already gated by the signedInNoAccesssyncEnabled check.
Interactive OAuth sign-in visual confirmation defers to a desktop session. If the post-merge pill-to-'Synced' flip lags after clicking merge (sync IS enabled at the daemon; the pill may wait for the settings re-pull), that's a minor follow-up on the optimistic-flip path — separate from this affordance fix.
Activity
mstomar125 commentedon Aug 1, 2026
Resolved in #1886 (merged).
The enable-sync / consent affordance is restored for a fresh Pro sign-in:
resolveProSyncVariantnow treats a liveWatchSyncStatussign-in (proSync.userEmail) as authed, so the variant resolvesconsent(enable-sync pill + consent slot) even before the asyncauth_statuson the DatabaseSettingsNode hydrates — closing the window where a new Pro user sawsign-inand had no way to enable sync. Signed-out stayssign-in(regression-tested). The Invitations-instead-of-consent symptom is already gated by thesignedInNoAccesssyncEnabledcheck.Interactive OAuth sign-in visual confirmation defers to a desktop session. If the post-merge pill-to-'Synced' flip lags after clicking merge (sync IS enabled at the daemon; the pill may wait for the settings re-pull), that's a minor follow-up on the optimistic-flip path — separate from this affordance fix.