Skip to content

Conversation Logging to Database#77

Merged
ajay-bhargava merged 16 commits intostagingfrom
autonomous/conversation-logging
Feb 8, 2026
Merged

Conversation Logging to Database#77
ajay-bhargava merged 16 commits intostagingfrom
autonomous/conversation-logging

Conversation

@ajay-bhargava
Copy link
Copy Markdown
Contributor

This is the PR (via autonomous mode) that adds conversation logging into Convex for each transcript option that the user says.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
clairvoyant Ready Ready Preview, Comment Jan 20, 2026 2:33am

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77e715011a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +59 to +63
.withIndex("by_session", (q) => q.eq("sessionId", args.sessionId))
.filter((q) =>
q.and(
q.eq(q.field("userId"), args.userId),
q.eq(q.field("transcript"), args.transcript),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Disambiguate repeated transcripts in updateResponse

The response update lookup keys only by sessionId + userId + transcript, so if a user repeats the same utterance in a session (or says it again before the first handler finishes), updateResponse will target the most recent matching log and leave the earlier entry without a response (or attach the response to the wrong record). That corrupts the training data and is hard to detect. Consider passing the inserted log _id (or a unique request/run id) back from logConversation and using that for the update, or add a unique per-utterance key so duplicates are unambiguous.

Useful? React with 👍 / 👎.

@ajay-bhargava ajay-bhargava merged commit 97e3266 into staging Feb 8, 2026
3 checks passed
@ajay-bhargava ajay-bhargava deleted the autonomous/conversation-logging branch February 8, 2026 21:45
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.

1 participant