mirror of
https://github.com/openai/codex.git
synced 2026-11-23 15:18:14 +00:00
Track thread archive analytics (#37199)
## What changed - Emit `codex_thread_archive_event` when a thread is successfully archived or unarchived, including the thread ID, action, and producer timestamp. - Route archive notifications through the analytics client while preserving normal app-server notification delivery. ## Testing - Extend app-server coverage for archive and unarchive analytics, including descendant archives and a repeated archive request that fails without producing another event. GitOrigin-RevId: 0d973c232fd795b7cd6cddd47ecc9446234c44dd
This commit is contained in:
1 parent
547080e4d6
commit
70b4653232
6 files changed
+176
-4
No files matched your search
@@ -616,7 +616,9 @@ impl AnalyticsEventsClient {
|
||||
pub fn track_notification(&self, notification: &ServerNotification) {
|
||||
if !matches!(
|
||||
notification,
|
||||
ServerNotification::ThreadClosed(_)
|
||||
ServerNotification::ThreadArchived(_)
|
||||
| ServerNotification::ThreadClosed(_)
|
||||
| ServerNotification::ThreadUnarchived(_)
|
||||
| ServerNotification::TurnStarted(_)
|
||||
| ServerNotification::TurnCompleted(_)
|
||||
| ServerNotification::TurnDiffUpdated(_)
|
||||
|
||||
Reference in new issue
Block a user