Files
codex/codex-rs/core/tests/suite
ioanbudea-OAI bfb5f7d83b Keep active turns running when /compact is rejected (#63428)
## Why

Manual compaction could interrupt a running turn before discovering that
the session settings prevent compaction. This can happen when a policy
refresh requires auto review for the current model.

## What changed

Validate the session settings before interrupting the active turn for
`/compact`. If validation fails during a turn, emit a warning and leave
the turn running. If the session is idle, report a bad request and set
the agent status to errored.

## Testing

Add a regression test that verifies the running turn completes after
a compaction warning and that retrying `/compact` while idle reports an
error.

GitOrigin-RevId: 7e841450461b78661c026a348a610aefa24d8a77
2026-11-23 20:26:13 +00:00
..
…