mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
## Why Guardian reviews must stop when their parent shuts down or their history is reset. Shutdown must also finish reviewer cleanup before closing the parent's persistent history, including when a review is waiting to retry after a rate limit. ## What changed - Let the Guardian extension own reviewer startup, prewarming, and shutdown through `ThreadManager`, tracking and joining outstanding work during teardown. - Cancel reviews on history reset or parent shutdown and reject decisions returned after cancellation, including cached extension decisions. - Keep background prewarm previews from overwriting the active turn's model metadata. ## Testing Extend regression coverage to verify reviewer cleanup after parent shutdown, prompt shutdown during a 60-second Guardian retry with the network request denied, and preservation of active model review requirements during prewarming. GitOrigin-RevId: 05efc369b9a1642a10365eac8a09da77f3f6e28c
8 lines
366 B
Rust
8 lines
366 B
Rust
//! Context adapter types used by the host-installed synchronous Guardian extension.
|
|
//! The extension supplies agent startup and owns the reviewer pool and its lifecycle.
|
|
|
|
pub use crate::guardian::GuardianReviewSession;
|
|
pub use crate::guardian::GuardianReviewState;
|
|
pub use crate::guardian::PreparedGuardianContext;
|
|
pub use crate::guardian::prepare_review_prewarm;
|