mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 11:47:42 +01:00
Measure when users see a reply to their onboarding chat input (#23574)
This commit is contained in:
1 parent
2b65b97cae
commit
b0f682b66b
17 files changed
+367
-7
No files matched your search
@@ -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'`,
|
||||
|
||||
Reference in new issue
Block a user