mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add elicitation classification support to app and MCP analytics (#45649)
## What changed Add an optional `elicitation_type` to app-used and MCP tool-call events, with `auth_or_link` and `approval` classifications and `null` for unclassified calls. Existing core app-use tracking passes `None`. Expose an API to queue MCP classifications by thread, turn, and item before completion. Preserve them across turn completion, consume them on item completion, and clear them on thread closure. Bound pending classifications to 256 entries, evicting the oldest when full. ## Testing Add coverage for serialization, first-classification retention during app-use deduplication, per-call classification across turn completion, pending-state eviction and cleanup, and exclusion of tool arguments from emitted events. GitOrigin-RevId: 185a2ccb38153e123fc731231edff0259a26bce3
This commit is contained in:
1 parent
a8964cb1ba
commit
b0af519c39
9 files changed
+421
-42
No files matched your search
@@ -1090,6 +1090,7 @@ async fn maybe_track_codex_app_used(
|
||||
app_name,
|
||||
invocation_type: Some(invocation_type),
|
||||
},
|
||||
/*elicitation_type*/ None,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -235,6 +235,7 @@ async fn thread_analytics_opt_out_overrides_shared_client() {
|
||||
app_name: None,
|
||||
invocation_type: None,
|
||||
},
|
||||
/*elicitation_type*/ None,
|
||||
);
|
||||
services.analytics_events_client.flush().await;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user