Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60c836d

Browse filesBrowse 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 842aa2c commit 60c836d
Copy full SHA for 60c836d

1 file changed

+8Lines changed: 8 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/sim/app/workspace/[workspaceId]/home
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/sim/app/workspace/[workspaceId]/home/home.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/home.tsx
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ export function Home({ chatId }: HomeProps = {}) {
229229
void stopGeneration().catch(() => {})
230230
}, [stopGeneration, workspaceId])
231231

232+
const handleStopGeneration = useCallback(() => {
233+
captureEvent(posthogRef.current, 'task_generation_aborted', {
234+
workspace_id: workspaceId,
235+
view: 'mothership',
236+
})
237+
stopGeneration()
238+
}, [stopGeneration, workspaceId])
239+
232240
const handleSubmit = useCallback(
233241
(text: string, fileAttachments?: FileAttachmentForApi[], contexts?: ChatContext[]) => {
234242
const trimmed = text.trim()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.