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:
pmccrary-oai authored and copyberry committed 2026-09-02 09:12:17 +00:00
1 parent eb10d91e48
commit bdfd769640
10 files changed
+118 -10

No files matched your search

+6
View File
@@ -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)),