Files
codex/codex-rs/prompts
rhan-oai 1145028ae4 Skip empty permissions messages in the initial context (#62933)
## Why

When the resolved permission and approval guidance is blank, the initial
context still includes a developer message containing only the permissions
wrapper.

## What changed

Omit that message when the guidance is empty or whitespace-only. Keep a
permissions checkpoint so later turns can report newly saved command
prefixes. Continue sending bundled approval guidance when it applies.

## Testing

Cover blank and bundled approval guidance and later command-prefix updates
with and without per-environment context. Update Guardian request snapshots
to reflect the omitted empty message.

GitOrigin-RevId: b1e2b6377733ec34b875b51d800922e15c267571
2026-11-21 08:39:16 +00:00
..