mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Retire the unused Guardian extension prototype API (#45679)
## What changed - Mark `guardian_ext` as a removed compatibility flag. - Remove `InternalSessionSpawner`, `InternalSessionSpawnFuture`, `ApprovalReviewInput`, and `ApprovalReviewError` from the extension API, along with the spawner test. - Remove `NodeReplReviewEvidence::review_inputs` and make the core re-exports of `NodeReplReviewEvidenceMode` crate-private. GitOrigin-RevId: 1c532bc57264644cf521ef8077285a9b8ed67391
This commit is contained in:
1 parent
0265dd7b45
commit
1fd392f6b2
9 files changed
+4
-140
No files matched your search
@@ -98,7 +98,7 @@ pub(crate) use multi_agent_role_instructions::MultiAgentRoleInstructions;
|
||||
pub(crate) use multi_agent_usage_hint::MultiAgentUsageHint;
|
||||
pub(crate) use network_rule_saved::NetworkRuleSaved;
|
||||
pub use node_repl_review_evidence::NodeReplReviewEvidence;
|
||||
pub use node_repl_review_evidence::NodeReplReviewEvidenceMode;
|
||||
pub(crate) use node_repl_review_evidence::NodeReplReviewEvidenceMode;
|
||||
pub(crate) use node_repl_review_evidence::node_repl_review_evidence_mode;
|
||||
pub use permissions_instructions::ApprovalPromptContext;
|
||||
pub use permissions_instructions::PermissionsInstructions;
|
||||
|
||||
@@ -10,7 +10,7 @@ use std::sync::PoisonError;
|
||||
use codex_features::Feature;
|
||||
use codex_guardian_context::NodeReplContext;
|
||||
use codex_guardian_context::NodeReplResponse;
|
||||
pub use codex_guardian_context::NodeReplReviewEvidenceMode;
|
||||
pub(crate) use codex_guardian_context::NodeReplReviewEvidenceMode;
|
||||
use codex_protocol::models::ContentItem;
|
||||
use codex_protocol::models::ImageReference;
|
||||
use codex_protocol::user_input::UserInput;
|
||||
@@ -129,16 +129,6 @@ impl NodeReplReviewEvidence {
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Returns bounded REPL evidence using the existing Guardian text and image layout.
|
||||
pub fn review_inputs(&self, mode: NodeReplReviewEvidenceMode) -> Vec<UserInput> {
|
||||
if mode == NodeReplReviewEvidenceMode::Disabled {
|
||||
return Vec::new();
|
||||
}
|
||||
self.snapshot_since(/*reviewed_sequence*/ 0)
|
||||
.map(|snapshot| snapshot.context(mode).render_inputs())
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
pub(crate) fn record(
|
||||
&self,
|
||||
tool_name: &str,
|
||||
|
||||
Reference in new issue
Block a user