Commit 49a1b76
refactor(web): remove wa_ask_message_sent, set source header on chat transport
Instead of a separate client-side event, the web client now sets the
X-Sourcebot-Client-Source header on DefaultChatTransport. This makes
ask_message_sent fire with source='sourcebot-web-client' for web UI
calls, enabling web-only filtering directly on the server-side event.
Updated Ask Usage and Any Feature Usage PostHog actions to filter
ask_message_sent by source=sourcebot-web-client.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 818f237 commit 49a1b76
3 files changed
Lines changed: 4 additions & 12 deletions
File tree
- packages/web/src
- features/chat/components/chatThread
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
0 commit comments