Skip to content

Conversation

@saddlepaddle
Copy link
Collaborator

Summary

Reverts the Better Auth migration (#543) to unblock users experiencing issues with the desktop app.

Issues Found in Better Auth PR

The Better Auth migration had several unintended side effects:

  1. Desktop app database dependency issue: Desktop imported @superset/auth server package, pulling in Neon database dependencies it doesn't need, causing "No database connection string" errors
  2. Deleted UI components: Many desktop UI files were accidentally removed:
    • Entire WorkspaceSidebar/ component tree
    • WorkspaceInitEffects, WorkspaceInitializingView
    • File viewer panes and tab management
    • Security modules
  3. Deleted migrations: Local-db migrations (0004-0008) that were already deployed to users were removed

Changes in This PR

  • ✅ Revert commit 9ee8911 (Better Auth migration)
  • ✅ Restore Clerk authentication
  • ✅ Restore all deleted desktop UI components
  • ✅ Restore local-db migrations
  • ✅ Reduce minimum desktop version from 0.0.44 to 0.0.39 to unblock existing users
  • ✅ Add required Clerk secrets to GitHub

Next Steps

We'll re-implement Better Auth properly in a focused PR that:

  • Only changes auth implementation (no UI deletions)
  • Uses raw fetch in desktop instead of importing server packages
  • Doesn't touch local-db migrations

Test Plan

  • Verified revert is exact inverse of original commit (318 files, opposite changes)
  • All GitHub secrets added and verified
  • Deploy preview will test Clerk auth works again
  • Desktop app should no longer show database errors

🤖 Generated with Claude Code

@coderabbitai
Copy link

coderabbitai bot commented Jan 6, 2026

Important

Review skipped

Too many files!

149 files out of 299 files are above the max files limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

This reverts commit 9ee8911.

Reason: The Better Auth migration had unintended side effects:
- Desktop app required database dependencies it doesn't need
- Many desktop UI files (sidebar, workspace views) were accidentally deleted
- Local-db migrations were removed that were already deployed to users

We're reverting to unblock users and will re-implement Better Auth properly
in a focused PR that only changes the auth implementation.

Additional changes:
- Reduced minimum desktop version from 0.0.44 to 0.0.39 to unblock existing users
@saddlepaddle saddlepaddle force-pushed the fix/better-auth-secret-setup branch from 82697ff to 416e38a Compare January 6, 2026 06:25
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch
  • ⚠️ Electric Fly.io app

Thank you for your contribution! 🎉

@saddlepaddle saddlepaddle merged commit d6822b3 into main Jan 6, 2026
12 of 13 checks passed
@Kitenite Kitenite deleted the fix/better-auth-secret-setup branch January 7, 2026 01:31
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