mirror of
https://github.com/openai/codex.git
synced 2026-11-23 15:18:14 +00:00
Track history notes thread hint outcomes (#42247)
## What changed - Emit a `codex_thread_hint_status` analytics event for each native history-notes thread hint attempt. - Report whether retrieval was successful or failed along with thread context and timing, without including hint contents. - Treat valid empty responses as successful retrievals while continuing to omit them from the context window. ## Testing - Extend the app-server history-notes tests to verify success, empty-result success, and backend failure statuses. GitOrigin-RevId: b9462f312847e8c871ed2be0c8cf8df0928a7fdd
This commit is contained in:
1 parent
eb10d91e48
commit
bdfd769640
10 files changed
+118
-10
No files matched your search
@@ -505,6 +505,12 @@ impl AnalyticsEventsClient {
|
||||
))));
|
||||
}
|
||||
|
||||
pub fn track_thread_hint_status(&self, event: crate::thread_hint::ThreadHintStatusEvent) {
|
||||
self.record_fact(AnalyticsFact::Custom(
|
||||
CustomAnalyticsFact::ThreadHintStatus(Box::new(event)),
|
||||
));
|
||||
}
|
||||
|
||||
pub fn track_image_preparation(&self, fact: ImagePreparationFact) {
|
||||
self.record_fact(AnalyticsFact::Custom(
|
||||
CustomAnalyticsFact::ImagePreparation(Box::new(fact)),
|
||||
|
||||
Reference in new issue
Block a user