Skip to content

Commit 818f237

Browse files
msukkariclaude
andcommitted
refactor(web): remove redundant wa_ask_thread_created event
Redundant with ask_thread_created which fires server-side for the same thread creation (including from the web UI via createChat server action). Dashboards track ask usage via wa_ask_message_sent, not thread creation. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 277ed60 commit 818f237

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

packages/web/src/features/chat/useCreateNewChatThread.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ export const useCreateNewChatThread = ({ isAuthenticated = false }: UseCreateNew
4646
return;
4747
}
4848

49-
captureEvent('wa_ask_thread_created', {
50-
chatId: response.id,
51-
isAnonymous: response.isAnonymous,
52-
});
53-
5449
setChatState({
5550
inputMessage,
5651
selectedSearchScopes,

packages/web/src/lib/posthogEvents.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ export type PosthogEventMap = {
159159
chatId: string,
160160
messageId: string,
161161
},
162-
wa_ask_thread_created: {
163-
chatId: string,
164-
isAnonymous: boolean,
165-
},
166162
wa_ask_message_sent: {
167163
chatId: string,
168164
messageCount: number,

0 commit comments

Comments
 (0)