mirror of
https://github.com/openai/codex.git
synced 2026-11-07 16:35:32 +00:00
Correlate code mode tool analytics with model responses (#36729)
## What changed - Emit dynamic tool-call analytics for code mode `exec` and `wait` calls, including duration and terminal status. - Associate code-mode cells and their nested tool calls with the originating and subsequent model response IDs. - Buffer correlated tool events until the next response is known, while flushing pending events when turns, threads, or the analytics queue close. ## Testing - Add reducer coverage for correlating `exec`, `wait`, and nested tool events across turns. - Add an app-server test that verifies production analytics include the cell and response IDs for a code-mode `exec` call. GitOrigin-RevId: 8b34ab59c1ad68ebbd57f9c8a05f19ab04df48a4
This commit is contained in:
1 parent
dae2122214
commit
155f1ca9e5
13 files changed
+797
-35
No files matched your search
@@ -145,6 +145,10 @@ fn sample_mcp_tool_call_event(thread_id: &str, plugin_id: Option<&str>) -> Track
|
||||
session_id: format!("session-{thread_id}"),
|
||||
turn_id: "turn-1".to_string(),
|
||||
item_id: format!("item-{thread_id}"),
|
||||
cell_id: None,
|
||||
parent_call_id: None,
|
||||
originating_response_id: None,
|
||||
subsequent_response_id: None,
|
||||
app_server_client: CodexAppServerClientMetadata {
|
||||
product_client_id: "codex_desktop".to_string(),
|
||||
client_name: None,
|
||||
|
||||
Reference in new issue
Block a user