aKode fase 1 (parziale): niente Statsig, analytics, upload Sentry, update check e announcement remoti

This commit is contained in:
Andrea
2026-11-09 11:15:06 +01:00
parent 7874033c81
commit 5b5b83964d
10 changed files with 45 additions and 165 deletions

View File

@@ -398,12 +398,16 @@ impl AnalyticsEventsClient {
!= codex_http_client::OpenAiDestination::Other
}
});
let destination = AnalyticsEventsDestination::from_base_url(base_url, api_key_headers);
Self {
queue: (analytics_enabled != Some(false)).then(|| {
AnalyticsEventsQueue::new(Arc::clone(&auth_manager), destination, runtime_auth)
}),
}
// aKode: analytics are never uploaded. The upstream client posted
// events to `{chatgpt_base_url}/codex/analytics-events/events`; the
// queue is never created, so every `track_*` call is a no-op.
let _ = (
analytics_enabled,
auth_manager,
runtime_auth,
AnalyticsEventsDestination::from_base_url(base_url, api_key_headers),
);
Self { queue: None }
}
/// Give a resumed actor its own queue while preserving the caller's analytics setting.

View File

@@ -1,3 +1,6 @@
// aKode: event upload is disabled (see `client.rs`); the upstream sending
// machinery is kept only until it is pruned, so dead-code warnings are expected.
#![allow(dead_code)]
mod accepted_lines;
#[cfg(debug_assertions)]
mod analytics_capture;