Skip to content

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

Merge remote-tracking branch 'upstream/main' into desktop-integration

Steven Enamakelc34234c51cf7
diff --cc .gitmodules
index 62ae9e275b,ccb6010428..4715c9064a
--- a/.gitmodules
+++ b/.gitmodules
@@@ -54,6 -54,6 +54,9 @@@
[submodule "vendor/tinyskills"]
path = vendor/tinyskills
url = https://github.com/tinyhumansai/tinyskills
+[submodule "vendor/tinydesktop"]
+ path = vendor/tinydesktop
+ url = https://github.com/tinyhumansai/tinydesktop.git
+ [submodule "vendor/tinybrowser"]
+ path = vendor/tinybrowser
+ url = https://github.com/tinyhumansai/tinybrowser.git
diff --cc app/src/pages/Skills.tsx
index d35d533d57,b5b392b7c6..aabdc4d14f
--- a/app/src/pages/Skills.tsx
+++ b/app/src/pages/Skills.tsx
@@@ -450,10 -450,10 +451,11 @@@ type ConnectionsTab
| 'voice'
| 'embeddings'
| 'search'
+ | 'browser'
| 'usage'
| 'composio-key'
- | 'wallet';
+ | 'wallet'
+ | 'desktop';
/**
* Tabs that render a relocated settings panel inside the shared card surface.
@@@ -531,10 -531,10 +535,11 @@@ export default function Skills()
raw === 'voice' ||
raw === 'embeddings' ||
raw === 'search' ||
+ raw === 'browser' ||
raw === 'usage' ||
raw === 'composio-key' ||
- raw === 'wallet'
+ raw === 'wallet' ||
+ raw === 'desktop'
)
return raw;
// Legacy back-compat aliases
diff --cc crates/openhuman-core/Cargo.toml
index 5e435f551c,d23ae6aff7..c4528cc199
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@@ -332,7 -332,9 +332,10 @@@ tinychannels = { version = "0.1", featu
# --features flows` would carry `ureq` and the archive stack for a host that
# never loads a module. The kernel-floor ratchet catches exactly that, and did.
tinybus = { path = "../../vendor/tinybus/crates/tinybus", default-features = false, features = ["macros", "uds"] }
+tinydesktop-bus = { path = "../../vendor/tinydesktop/crates/tinydesktop-bus", optional = true }
+ tinybrowser-bus = { path = "../../vendor/tinybrowser/crates/tinybrowser-bus" }
+ tinybrowser-control = { path = "../../vendor/tinybrowser/crates/tinybrowser-control", default-features = false }
+ tinyjevclient = { path = "../../vendor/tinybrowser/vendor/tinyjevclient/crates/tinyjevclient" }
# Portable skill metadata, parsing, discovery, and filesystem hardening.
tinyskills = { path = "../../vendor/tinyskills/crates/tinyskills" }
serde = { version = "1", features = ["derive"] }
diff --cc crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
index 30f028dd36,ff6dea1ef5..2be8379bbb
--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
@@@ -244,26 -244,31 +244,50 @@@ fn an_undenied_wildcard_scope_projects_
);
}
+#[test]
+fn named_tool_search_grants_deferred_tools_to_hosted_run() {
+ let mut with_search = synthetic("searcher", AgentTier::Chat, &[]);
+ with_search.tools = ToolScope::Named(vec!["tool_search".to_owned()]);
- let registry =
- registry_of(vec![with_search.clone()]).with_session_deferred_tools(Arc::new(vec![
- "desktop_list_apps".to_owned(),
- "desktop_goal".to_owned(),
- ]));
++ let registry = registry_of(vec![with_search.clone()]).with_deferred_tools(Arc::new(vec![
++ "desktop_list_apps".to_owned(),
++ "desktop_goal".to_owned(),
++ ]));
+ let tools = registry.project(&with_search).tools;
+ assert!(tools.iter().any(|name| name == "tool_search"));
+ assert!(tools.iter().any(|name| name == "desktop_list_apps"));
+ assert!(tools.iter().any(|name| name == "desktop_goal"));
+
+ let mut without_search = synthetic("no-search", AgentTier::Chat, &[]);
+ without_search.tools = ToolScope::Named(vec!["file_read".to_owned()]);
+ let tools = registry.project(&without_search).tools;
+ assert!(!tools.iter().any(|name| name.starts_with("desktop_")));
+}
+
+ #[test]
+ fn named_discovery_scope_authorizes_only_registered_deferred_tools() {
+ let mut def = synthetic("searcher", AgentTier::Chat, &[]);
+ def.tools = ToolScope::Named(vec!["file_read".into(), "tool_search".into()]);
+ def.disallowed_tools = vec!["blocked_*".into()];
+ let projected = registry_of(vec![def.clone()])
+ .with_deferred_tools(Arc::new(vec![
+ "browser_open".into(),
+ "browser".into(),
+ "blocked_secret".into(),
+ ]))
+ .project(&def);
+ assert!(projected.tools.contains(&"browser_open".to_string()));
+ assert!(projected.tools.contains(&"browser".to_string()));
+ assert!(!projected.tools.contains(&"blocked_secret".to_string()));
+
+ def.tools = ToolScope::Named(vec!["file_read".into()]);
+ let without_discovery = registry_of(vec![def.clone()])
+ .with_deferred_tools(Arc::new(vec!["browser_open".into()]))
+ .project(&def);
+ assert!(!without_discovery
+ .tools
+ .contains(&"browser_open".to_string()));
+ }
+
/// A wildcard scope carrying a denylist must be materialised against the
/// registered tool list, not projected as the unrestricted marker — which
/// would hand every denied tool straight back.
diff --cc crates/openhuman-core/src/modules/mod.rs
index c244c46410,856870ccf2..552df0755f
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@@ -39,8 -41,9 +41,10 @@@
//! - [`boot`] — what happens at startup.
pub mod boot;
+ pub mod browser;
+ pub mod browser_task;
pub mod connectors;
+pub mod desktop;
#[cfg(feature = "documents")]
pub mod documents;
pub mod host;
diff --cc crates/openhuman-core/src/modules/registry.rs
index 57346f91d7,72f1e9a3f9..f61367dc2d
--- a/crates/openhuman-core/src/modules/registry.rs
+++ b/crates/openhuman-core/src/modules/registry.rs
@@@ -34,7 -34,7 +34,8 @@@
#[path = "registry_tests.rs"]
mod tests;
+ mod records_browser;
+mod records_desktop;
mod records_docs_wallet;
mod records_extra;
mod records_mcp_connectors;
@@@ -43,7 -43,7 +44,8 @@@ mod records_runtime
mod records_voice;
use crate::modules::types::ModuleRecord;
+ use records_browser::TINYBROWSER;
+use records_desktop::TINYDESKTOP;
use records_docs_wallet::{TINYDOCS, TINYWALLET};
use records_extra::{TINYBOX, TINYCHANNELS, TINYHOSTS};
use records_mcp_connectors::{TINYCONNECTORS, TINYMCP};
@@@ -53,7 -53,7 +55,8 @@@ use records_voice::TINYVOICE
/// Every module this build can load.
pub const ALL: &[ModuleRecord] = &[
+ TINYDESKTOP,
+ TINYBROWSER,
TINYDOCS,
TINYWALLET,
TINYMEMORY,
diff --cc docs/RELEASE-MANUAL-SMOKE.md
index 3dc69ed112,f203fde2ca..97f4e98f99
--- a/docs/RELEASE-MANUAL-SMOKE.md
+++ b/docs/RELEASE-MANUAL-SMOKE.md
@@@ -25,10 -25,10 +25,14 @@@ Applies to every release, all platforms
- [ ] **An existing chat accepts another turn after restart** — Send a message and wait for its reply, fully quit OpenHuman, then reopen that conversation and send a second message. Expected: the second reply streams normally, retains the earlier context, and does not show a generic error. Repeat after the conversation has compacted if a long-running test profile is available (#6608).
- [ ] **A failed chat turn does not offer an invalid regenerate action** — Trigger a provider failure in a test profile and inspect its error card. Expected: the diagnostic text remains visible, with no Retry or Refresh button on that failed message. A completed assistant reply still offers Refresh (#6613).
+### Native desktop control
+
+- [ ] **Connections enables the published desktop module on an unlocked macOS or Windows session** — Open Connections → Desktop, enable it, grant Accessibility if prompted, and run the read-only test. Expected: the module loads from the pinned release, the panel reports the actual permission state, and the test sees an accessibility snapshot. Screen Recording is required only when testing capture. A locked macOS screen must not be reported as a successful probe.
+- [ ] **An agent completes a disposable desktop task without an approval wait by default** — In a fresh thread, ask the orchestrator to use a harmless app such as TextEdit or Calculator, make one visible change, and verify it through a new accessibility snapshot. Expected: `tool_search` discovers the deferred desktop tool, the released module performs the action, no approval card parks the turn, and the observed app state matches the request. Disable Desktop afterward and verify a subsequent tool call is refused.
+ ### Browser module
+
+ - [ ] **Browser readiness and setup** — Open Settings > Connections > Browser on each desktop platform. Expected: the checksum-pinned TinyBrowser module downloads and passes TinyBus admission, module and Chrome readiness are reported separately, Test works, and saved viewport, profile, download folder, task limits, and allowed websites survive relaunch.
+ - [ ] **Browser task and policy** — With an allowed Selenium test site, use a conversation to submit its web form and download File 1. Expected: `tool_search` discovers `browser`, consequential actions wait for the exact host approval, the submitted page shows “Received!”, and a completed download is verified on disk. Then restrict allowed websites and confirm a disallowed navigation is blocked.
### Checkbox appearance
diff --cc scripts/ci/check-module-pins.mjs
index 0afce2d7bf,61e6f89ef7..1a59d4f5aa
--- a/scripts/ci/check-module-pins.mjs
+++ b/scripts/ci/check-module-pins.mjs
@@@ -77,10 -77,7 +77,11 @@@ const ROOT = resolve(process.argv[2] ?
// ship out of the tinyruntime release, so they are checked against
// `vendor/tinyruntime` via `sharesWith`.
const PIN_MAP = {
+ tinydesktop: { submodule: "vendor/tinydesktop" },
+ tinybox: { submodule: "vendor/tinybox" },
+ tinychannels: { submodule: "vendor/tinychannels" },
+ tinyhosts: { submodule: "vendor/tinyhosts" },
+ tinybrowser: { submodule: "vendor/tinybrowser" },
tinydocs: { submodule: "vendor/tinydocs" },
tinywallet: { submodule: "vendor/tinywallet" },
tinymemory: { submodule: "vendor/tinymemory" },