Repository navigation
fix(ai): send requests without auth relock - #65
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 34 minutes. View limit detailsLimit details: You’ve used the included review currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (5)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (15)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Supabase client now stores an active access token and provides authenticated function invocation. AuthProvider updates the token with session changes. AI request paths use the active token when available and fall back to session lookup otherwise. ChangesAuthenticated AI requests
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant AuthProvider
participant AIRequest
participant SupabaseClient
participant SupabaseFunction
AuthProvider->>SupabaseClient: Set or clear active access token
AIRequest->>SupabaseClient: Read active access token
AIRequest->>SupabaseClient: Call getSession if the token is absent
AIRequest->>SupabaseClient: Invoke function with request body and headers
SupabaseClient->>SupabaseFunction: POST JSON request
SupabaseFunction-->>SupabaseClient: Return function response
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
|
@coderabbitai review |
|
|
@coderabbitai review |
|
This comment has been minimized.
This comment has been minimized.
|
@coderabbitai review |
|
@coderabbitai review |
|
|
Production follow-through complete for merge
|
Summary
Verification
Release boundary
Frontend-only. No migrations, Edge Function deploys, secrets, billing, or infrastructure changes.
Rollback: revert the merge commit and redeploy the previous frontend image.
Summary by CodeRabbit
Safe to merge; there are no outstanding blocking issues.
Summary
This update keeps identical in-flight sparring requests deduplicated when an authenticated user’s access token refreshes. Authentication state now caches the stable user ID alongside the token, and sparring request keys prefer that identity.
Reviews (3) · Last reviewed commit: "fix(sparring): dedupe across token refre..."