Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/tools/impl/browser/browser.rs,crates/openhuman-core/s

Steven Enamakel91b96fa10032
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rs
index 5edd81add7..40dfea3adb 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@ -7,6 +7,8 @@ mod pending;
mod session_pool;
#[path = "browser_task_actions.rs"]
mod task_actions;
+#[path = "browser_unattended.rs"]
+mod unattended;
use crate::modules::browser::BrowserClient;
use crate::security::approval::{ApprovalGate, GateOutcome};
use crate::security::SecurityPolicy;
@@ -340,7 +342,7 @@ impl BrowserTool {
}
let pending = slot.take().expect("pending checked above");
drop(slot);
- let approved = approve_task_action(&pending).await?;
+ let approved = approve_task_action(&pending, &self.client.config().browser).await?;
let view = crate::modules::browser_task::resume(
self.client.config(),
ContinueTaskRequest {
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs b/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs
index 552ff5cf3b..094a7a4ef4 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser_task_actions.rs
@@ -44,7 +44,10 @@ pub(super) fn task_inputs(args: &Value) -> anyhow::Result<BTreeMap<String, Strin
/// Ask the host approval gate about a paused task's exact action. A missing
/// gate denies: a task never takes an irreversible step unapproved.
-pub(super) async fn approve_task_action(pending: &Pending) -> anyhow::Result<bool> {
+pub(super) async fn approve_task_action(
+ pending: &Pending,
+ _browser: &crate::config::BrowserConfig,
+) -> anyhow::Result<bool> {
let gate = ApprovalGate::try_global().ok_or_else(|| {
anyhow::anyhow!("[policy-denied] Browser action needs an interactive host approval gate")
})?;