mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
## Why Clients need a way to update individual turn metadata entries without replacing the existing client metadata map. ## What changed Add the experimental `responsesapiClientMetadataPatch` field to `turn/start` and `turn/steer`. Patches add or overwrite entries while retaining other keys and apply after `responsesapiClientMetadata` when both are supplied. The existing field retains replacement semantics, including clearing unprotected entries with an empty map. Continue protecting reserved metadata keys and preserving targeted `misalignment_override` continuations across updates. ## Testing Extend the app-server metadata integration test to cover replacement and patch steering, patch precedence at turn start, preservation of unrelated entries during patches, and protection of targeted continuations. GitOrigin-RevId: 8c4da3ba1b87329da20b5295846bdcf3a88126de