[API][Auth][Frontend] Post-release improvements and bug fixes#29
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Post-release round of fixes and improvements covering security, storage consistency, anonymous user flows, and UX.
Key changes
src/app/api/chat/route.ts— system prompt prevents LaTeX dollar notation; atomic anonymous limit viacheck_and_increment_questionsRPCsrc/app/api/files/route.ts— clean up storage on text extraction or embedding failuresrc/app/api/files/[id]/route.ts— DELETE endpoint removes storage object before DB recordsrc/app/api/chats/[id]/route.ts— remove associated storage files on chat deletionsrc/app/api/auth/migrate-chats/route.ts— migrate anonymous chats on sign-up; guards against non-anonymous source via admin APIsrc/hooks/use-auth.ts— usegetSession()for reliable anonymous detection; preserve chat cache on in-place conversionsrc/components/layout/sidebar.tsx— guest exit navigates to login without signing outsrc/app/(auth)/login/page.tsx— "Continue as guest" reuses existing anonymous session instead of creating new onesupabase/migrations/— consolidate to 3 files; addcheck_and_increment_questionsfunctionCloses #28