Skip to content

Commit 947472b

Browse files
TheodoreSpeakswaleedlatif1
authored andcommitted
v0.6.29: login improvements, posthog telemetry (#4026)
* feat(posthog): Add tracking on mothership abort (#4023) Co-authored-by: Theodore Li <theo@sim.ai> * fix(login): fix captcha headers for manual login (#4025) * fix(signup): fix turnstile key loading * fix(login): fix captcha header passing * Catch user already exists, remove login form captcha
1 parent 1c111ff commit 947472b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ export const Panel = memo(function Panel({ workspaceId: propWorkspaceId }: Panel
427427
copilotStopGeneration()
428428
}, [copilotStopGeneration, getCopilotCurrentRequestId, workspaceId])
429429

430+
const handleCopilotStopGeneration = useCallback(() => {
431+
captureEvent(posthogRef.current, 'task_generation_aborted', {
432+
workspace_id: workspaceId,
433+
view: 'copilot',
434+
})
435+
copilotStopGeneration()
436+
}, [copilotStopGeneration, workspaceId])
437+
430438
const handleCopilotSubmit = useCallback(
431439
(text: string, fileAttachments?: FileAttachmentForApi[], contexts?: ChatContext[]) => {
432440
const trimmed = text.trim()

0 commit comments

Comments
 (0)