Skip to content

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

fix(mcp-ui): run the confined read on the scoped blocking pool

oxoxDev5b22da398cd8
diff --git a/crates/openhuman-core/src/mcp/ui/tools.rs b/crates/openhuman-core/src/mcp/ui/tools.rs
index e1f8d9a148..48a3fcce63 100644
--- a/crates/openhuman-core/src/mcp/ui/tools.rs
+++ b/crates/openhuman-core/src/mcp/ui/tools.rs
@@ -110,7 +110,7 @@ pub fn confine_path_in(roots: &[PathBuf], path: &str) -> Result<(PathBuf, PathBu
///
/// When the open is refused, the file is not regular, or it is too large.
pub async fn read_confined(root: PathBuf, resolved: PathBuf) -> Result<String, String> {
- tokio::task::spawn_blocking(move || {
+ crate::core::runtime::spawn_blocking_scoped(move || {
use std::io::Read;
let file = crate::agent::attachments::provider::open::secure_open(&resolved, &root)
.map_err(|error| {