mirror of
https://github.com/openai/codex.git
synced 2026-10-21 18:51:31 +00:00
Fix typo in approval resolver name (#36822)
Rename `resolve_tool_apporval` to `resolve_tool_approval` and update its call sites in the tool orchestrator. GitOrigin-RevId: bc7d9ae675b45dd5b6b5b5643fd75e532f6314ca
This commit is contained in:
@@ -188,7 +188,7 @@ impl ApprovalResolution {
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) async fn resolve_tool_apporval<Rq, Out, T>(
|
||||
pub(super) async fn resolve_tool_approval<Rq, Out, T>(
|
||||
tool: &mut T,
|
||||
req: &Rq,
|
||||
permission_request_run_id: &str,
|
||||
|
||||
@@ -7,7 +7,7 @@ retry with an escalated sandbox strategy on denial (no re‑approval thanks to
|
||||
caching).
|
||||
*/
|
||||
use super::approvals::ApprovalReviewer;
|
||||
use super::approvals::resolve_tool_apporval;
|
||||
use super::approvals::resolve_tool_approval;
|
||||
use crate::network_policy_decision::network_approval_context_from_payload;
|
||||
use crate::tools::flat_tool_name;
|
||||
use crate::tools::network_approval::ActiveNetworkApproval;
|
||||
@@ -174,7 +174,7 @@ impl ToolOrchestrator {
|
||||
retry_reason: None,
|
||||
network_approval_context: None,
|
||||
};
|
||||
resolve_tool_apporval(
|
||||
resolve_tool_approval(
|
||||
tool,
|
||||
req,
|
||||
tool_ctx.call_id.as_str(),
|
||||
@@ -205,7 +205,7 @@ impl ToolOrchestrator {
|
||||
retry_reason: reason.clone(),
|
||||
network_approval_context: None,
|
||||
};
|
||||
resolve_tool_apporval(
|
||||
resolve_tool_approval(
|
||||
tool,
|
||||
req,
|
||||
tool_ctx.call_id.as_str(),
|
||||
@@ -402,7 +402,7 @@ impl ToolOrchestrator {
|
||||
};
|
||||
|
||||
let permission_request_run_id = format!("{}:retry", tool_ctx.call_id);
|
||||
resolve_tool_apporval(
|
||||
resolve_tool_approval(
|
||||
tool,
|
||||
req,
|
||||
&permission_request_run_id,
|
||||
|
||||
Reference in New Issue
Block a user