Skip to content

Stabilize Convex auth session setup#59

Draft
SunkenInTime wants to merge 5 commits into
cursor/main-branch-synchronization-3324from
cursor/convex-cli-authentication-stability-208a
Draft

Stabilize Convex auth session setup#59
SunkenInTime wants to merge 5 commits into
cursor/main-branch-synchronization-3324from
cursor/convex-cli-authentication-stability-208a

Conversation

@SunkenInTime
Copy link
Copy Markdown
Owner

Summary

  • restore session-scoped Convex auth setup guards so stale async setup work cannot overwrite the current Supabase auth state
  • remove duplicate email/password Convex setup calls and keep the auth-state listener as the single source of truth
  • add targeted notifier tests covering stale startup setup and listener-driven email/password sign-in

Testing

  • fvm flutter test test/providers/auth_provider_test.dart
  • ⚠️ CONVEX_AGENT_MODE=anonymous npx convex dev --once (blocked by pre-existing Convex TypeScript errors in convex/folders.ts and convex/strategies.ts, unrelated to this auth fix)
  • ⚠️ fvm flutter analyze (reports 4 pre-existing prefer_const_constructors infos in test/square_icon_counter_rotation_test.dart)
  • fvm flutter build linux --debug
  • ✅ Manual auth verification on the built Linux app: sign out, sign back in with the provided credentials, and confirm the authenticated UI restored with no auth incident prompt

Walkthrough

auth_authenticated_stable_ui.mp4
Patched build authenticated state
Stable authenticated UI

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 5 commits April 4, 2026 03:53
Co-authored-by: Dara Adedeji <SunkenInTime@users.noreply.github.com>
- Add watchAllFolders() for folders:listAll subscriptions in ConvexStrategyRepository.

- Switch cloud folder, strategy, and all-folders providers to StreamProvider using repository watch streams.

- Add docs/auth_flow_reference.md.

Made-with: Cursor
Remove cloud-only shortcuts that skipped the shared transition path.
Route refresh and delete flows through setActivePageAnimated. Add tests
for cloud animated and relative page switches.

Made-with: Cursor
Extract ActionHistoryTransformContext and ActionObjectState for
round-tripping placed objects through history. Wire capture/hydration
into ability, agent, drawing, image, text, utility, and line providers;
extend action_provider and strategy apply flow. Add hydration tests.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants