mirror of
https://github.com/openai/codex.git
synced 2026-11-25 15:24:26 +00:00
Preserve per-image generation IDs in image generation analytics (#43953)
## What changed Parse optional `generation_id` values from image API responses and carry the selected image's ID through the image generation tool into analytics events. Keep the ID out of serialized extension items, JSON schemas, and TypeScript types. Responses without an ID remain supported. ## Testing Add coverage for distinct IDs in multi-image responses and responses without IDs. Extend analytics and app-server tests to verify that the selected image's ID reaches analytics, and item tests to verify that it is omitted from serialization and TypeScript types. GitOrigin-RevId: 70a600856990140b76fdbda51a0d73b3414338b1
This commit is contained in:
1 parent
102e1763b9
commit
929389f596
16 files changed
+107
-8
No files matched your search
@@ -2932,6 +2932,7 @@ fn tool_item_event(input: ToolItemEventInput<'_>) -> Option<TrackEventRequest> {
|
||||
saved_path_present: item.saved_path.is_some(),
|
||||
transparent_background: item.transparent_background,
|
||||
imagegen_request_id: item.imagegen_request_id.clone(),
|
||||
generation_id: item.generation_id.clone(),
|
||||
},
|
||||
},
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user