aKode fase 2c: eliminato il codice di invio dati (crate analytics, otel-trace-websocket, sentry, esportatori OTLP); /feedback salva solo in locale; chiavi legacy [analytics]/[otel] accettate e ignorate; test di analytics/OTLP/upload rimossi
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use codex_analytics::AnalyticsEventsClient;
|
||||
use codex_analytics::ThreadHintStatus;
|
||||
use codex_analytics::ThreadHintStatusEvent;
|
||||
use codex_core::config::Config;
|
||||
use codex_extension_api::ConfigContributor;
|
||||
use codex_extension_api::ContentItemKind;
|
||||
@@ -116,15 +113,6 @@ impl ContextContributor for HistoryNotesExtension {
|
||||
let Some(identity) = thread_store.get::<HistoryNotesAgentIdentity>() else {
|
||||
return Vec::new();
|
||||
};
|
||||
let track_status = |status| {
|
||||
if let Some(analytics) = session_store.get::<AnalyticsEventsClient>() {
|
||||
analytics.track_thread_hint_status(ThreadHintStatusEvent {
|
||||
thread_id: thread_store.level_id().to_string(),
|
||||
status,
|
||||
occurred_at_ms: codex_analytics::now_unix_millis(),
|
||||
});
|
||||
}
|
||||
};
|
||||
let Ok(result) = config
|
||||
.backend
|
||||
.call(
|
||||
@@ -136,18 +124,14 @@ impl ContextContributor for HistoryNotesExtension {
|
||||
)
|
||||
.await
|
||||
else {
|
||||
track_status(ThreadHintStatus::Failed);
|
||||
return Vec::new();
|
||||
};
|
||||
let Some(text) = result.get("text").and_then(serde_json::Value::as_str) else {
|
||||
track_status(ThreadHintStatus::Failed);
|
||||
return Vec::new();
|
||||
};
|
||||
if text.len() > MAX_THREAD_HINT_BYTES {
|
||||
track_status(ThreadHintStatus::Failed);
|
||||
return Vec::new();
|
||||
}
|
||||
track_status(ThreadHintStatus::Succeeded);
|
||||
if text.is_empty() {
|
||||
return Vec::new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user