Measure when users see a reply to their onboarding chat input (#23574)

This commit is contained in:
scotttong authored and GitHub committed 2026-12-02 18:03:08 -08:00
1 parent 2b65b97cae
commit b0f682b66b
17 files changed
+367 -7

No files matched your search

+3
View File
@@ -563,6 +563,9 @@ export function activityService(db: Db) {
// Queued messages this run's own accepted first turn took.
firstTurnCommentIds: acceptedFirstTurnCommentIdsSql(heartbeatRuns),
queuedCommentSourceWakeIds: sql<string[] | null>`${heartbeatRuns.contextSnapshot} -> 'queuedCommentSourceWakeIds'`,
triggeringChatInputId: sql<string | null>`case when ${heartbeatRuns.contextSnapshot} ->> 'wakeReason' = 'issue_commented'
then coalesce(${heartbeatRuns.contextSnapshot} ->> 'interactionId',
${heartbeatRuns.contextSnapshot} ->> 'wakeCommentId', ${heartbeatRuns.contextSnapshot} ->> 'commentId') end`,
wakeCommentId: sql<string | null>`${heartbeatRuns.contextSnapshot} ->> 'wakeCommentId'`,
contextCommentId: sql<string | null>`${heartbeatRuns.contextSnapshot} ->> 'commentId'`,
contextIssueId: sql<string | null>`${heartbeatRuns.contextSnapshot} ->> 'issueId'`,