mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Include session IDs in tool item analytics events (#32903)
## What changed - Add `session_id` to the shared tool item event payload, sourced from the thread metadata. - Preserve the parent session ID on tool events emitted by subagent threads. ## Testing - Cover serialization of the session ID for command execution events, subagent tool events, and every supported completed tool item type. GitOrigin-RevId: 73afc0e1be1ddec4fb5a42f43a23f1e87360e68f
This commit is contained in:
1 parent
4657ab06c6
commit
7f3eb8a223
3 files changed
+51
-15
No files matched your search
@@ -518,6 +518,7 @@ pub(crate) enum ToolItemFailureKind {
|
||||
#[derive(Serialize)]
|
||||
pub(crate) struct CodexToolItemEventBase {
|
||||
pub(crate) thread_id: String,
|
||||
pub(crate) session_id: String,
|
||||
pub(crate) turn_id: String,
|
||||
/// App-server ThreadItem.id. For tool-originated items this generally
|
||||
/// corresponds to the originating core call_id.
|
||||
|
||||
Reference in new issue
Block a user