mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
## Why Cloning `ResponseItem::AdditionalTools` deep-copies its tool declarations for history and request copies. ## What changed Store `tools` in an `Arc<[serde_json::Value]>` so clones share immutable declarations. Update constructors and existing test fixtures to use the shared representation. GitOrigin-RevId: eb8831774afb45fe8431a796f34ae9d1243e884a