mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
Honor PreToolUse ask after network denials
This commit is contained in:
@@ -417,7 +417,7 @@ impl NetworkApprovalService {
|
||||
|
||||
{
|
||||
let denied_hosts = self.session_denied_hosts.lock().await;
|
||||
if denied_hosts.contains(&key) {
|
||||
if denied_hosts.contains(&key) && !pre_tool_use_asks_user {
|
||||
return NetworkDecision::deny(REASON_NOT_ALLOWED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user