-
Notifications
You must be signed in to change notification settings - Fork 51
Daily branch 2025 09 21 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add CHAT_UNAUTHORIZED to silent error handling in getMessagesByChatId - Return empty results instead of throwing/logging for unauthorized access - Prevents noisy backend logs while maintaining security
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughConditional inclusion of reasoning options in chat API for agent mode. Broadened message fetch error handling to include unauthorized access. Updated model/provider defaults for ask, vision, and title generation. Moderation flow now gated by isPro, with updated signatures and thresholds to adjust uncensoring behavior for Pro users. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant ChatAPI as Chat API
participant ChatProc as Chat Processor
participant Moderation as Moderation
participant Provider as Model Provider
User->>ChatAPI: Send chat request (mode, messages)
note over ChatAPI: If mode === "agent", include reasoning options
ChatAPI->>ChatProc: Process(messages, isPro)
alt isPro
ChatProc->>Moderation: getModerationResult(messages, isPro=true)
Moderation-->>ChatProc: { shouldUncensorResponse, ... }
opt shouldUncensorResponse
ChatProc->>ChatProc: addAuthMessage
end
else not Pro
ChatProc->>ChatProc: Skip moderation
end
ChatProc->>Provider: Generate response
Provider-->>ChatProc: Model output
ChatProc-->>ChatAPI: Final response
ChatAPI-->>User: Return result
sequenceDiagram
autonumber
actor Client
participant Messages as convex/messages.getMessagesByChatId
Client->>Messages: Fetch(chatId, cursor)
alt Chat OK
Messages-->>Client: Messages + continueCursor
else CHAT_NOT_FOUND or CHAT_UNAUTHORIZED
note over Messages: Access errors handled uniformly
Messages-->>Client: [] with isDone=true, continueCursor=""
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/convex_rules.mdc)
Files:
convex/**/*.ts📄 CodeRabbit inference engine (.cursor/rules/convex_rules.mdc)
Files:
🧬 Code graph analysis (1)lib/chat/chat-processor.ts (1)
🔇 Additional comments (8)
Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Chores