diff --git a/src/agent.rs b/src/agent.rs index 876cf40..6409e30 100644 --- a/src/agent.rs +++ b/src/agent.rs @@ -817,7 +817,7 @@ pub fn spawn(job: Job, bot_id: u64, tx: Sender<(u64, StreamEvent)>, cancel: Arc< let ids = tools::RunIds { conversation: bot_id.to_string(), request: call.id.clone() }; let (out, ok) = if is_mac { crate::macapps::run(&call.name, &call.args) - } else if let (true, Some(host)) = (is_screen, on_device.as_ref()) { + } else if let (true, Some(host)) = (is_screen || is_web, on_device.as_ref()) { match crate::remote::run_on_device(host, &call.name, &call.args, &job.via_name) { Ok(v) => { image = v["image"].as_str().map(String::from);