-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: chatid for posthog #650
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
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ⛔ Deployment terminated View logs |
supermemory-app | a12852c | Jan 04 2026, 07:24 PM |
Code Review: PR #650 - chore: chatid for posthogSummaryThis PR adds ✅ Positive Aspects
🔍 Code Quality AssessmentFile: metadata: {
projectId: selectedProject,
model: selectedModel,
chatId: currentChatId, // ✅ Added
}The code quality is good. The change integrates seamlessly with the existing codebase. 🎯 Functionality ReviewPurpose: This metadata is sent to PostHog for analytics tracking, allowing the team to:
Data Flow:
|
Merge activity
|
7fab13a to
a12852c
Compare
Pull Request Review: Add chatId to PostHog MetadataOverviewThis PR adds ✅ Code Quality & Best PracticesPositive:
Suggestions:
🐛 Potential IssuesLow Risk:
Recommendation: metadata: {
projectId: selectedProject,
model: selectedModel,
...(currentChatId && { chatId: currentChatId }), // Only include if defined
},⚡ Performance ConsiderationsNo concerns:
🔒 Security ConcernsLow risk, but worth considering:
Best Practice:
🧪 Test CoverageMissing:
Recommendation: it('should include chatId in request metadata', () => {
// Test that metadata.chatId matches currentChatId
});📊 Analytics ImpactPositive:
Ensure PostHog Events Are Configured:
📝 DocumentationMissing:
Suggested addition: body: {
metadata: {
projectId: selectedProject, // Current project context
model: selectedModel, // AI model being used
chatId: currentChatId, // Chat session ID for analytics
},
},✅ Final VerdictRecommendation: Approve with minor suggestions This is a solid, straightforward change that improves analytics capabilities. The suggestions above are minor improvements and don't block merging. Action Items (Optional):
Good work! This will provide valuable insights into chat session behavior. |

No description provided.