mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Callers need a way to keep encoded JSON payloads out of request diagnostics while preserving what the server receives. ## What changed Add `EncodedJsonBody::omit_from_logs()` to replace the trace body with `<redacted>` and show only the byte length in debug output. Preserve the setting through private JSON enrichment and request preparation. The setting leaves the wire payload and redirect policy unchanged. ## Testing Add a regression test that checks trace redaction and debug output for both plain and enriched bodies before and after preparation, and verifies that decompressing the wire body yields the expected bytes. GitOrigin-RevId: 5b1ae2c810242f8c7f35bcdf653af9127360c29c