Files
codex/codex-rs
jif 30d71606a1 Allow callers to redact encoded JSON request bodies from logs (#64003)
## 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
2026-11-25 22:47:37 +00:00
..
…
…
…