mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Wire Guardian V3 housekeeping into the app server (#61797)
## What changed - Install Guardian V3 with a local message-board host when the server enables `features.guardianv3.enabled`, independently of thread overrides. - Clear inherited user, thread, and project instructions from Guardian V3 private threads and skip repository instruction discovery. ## Testing Add integration coverage for routing the first live message while the actor is still sampling, for both new and resumed threads. Verify that resumed history is skipped, `AGENTS.md` reaches only the actor, and thread overrides cannot enable or disable server-level housekeeping. GitOrigin-RevId: 3f3ae1be404c9e17b73eea12c95f5a95c96052cf
This commit is contained in:
@@ -75,6 +75,14 @@ impl PreparedGuardianContext {
|
||||
}
|
||||
|
||||
impl PreparedGuardianContext {
|
||||
/// Start with no parent user, thread or project instructions and skip repository discovery.
|
||||
pub fn without_parent_instructions(mut self) -> Self {
|
||||
self.key.user_instructions = None;
|
||||
self.key.thread_instructions = None;
|
||||
self.key.project_instructions = Some(Arc::default());
|
||||
self
|
||||
}
|
||||
|
||||
pub fn reuse_key(
|
||||
&self,
|
||||
previous: Option<&GuardianReviewSession>,
|
||||
|
||||
Reference in New Issue
Block a user