The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(architecture): update references from CEF to Wry webview
Steven Enamakel0b82b0ef38b3
diff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.mdindex 1b9cb368e6..7006d622e6 100644--- a/gitbooks/developing/architecture.md+++ b/gitbooks/developing/architecture.md@@ -89,7 +89,7 @@ OpenHuman chose Tauri + Rust over Electron for fundamental performance and secur| Metric | OpenHuman (Tauri + Rust) | Typical Electron App || ------------------------- | -------------------------------------------------------------------------- | ---------------------------------------- |-| Binary size | Feature-dependent (CEF runtime dominates) | ~150 MB+ |+| Binary size | Feature-dependent (native Wry webview; no bundled Chromium) | ~150 MB+ || Memory per tool execution | Native Rust (no per-tool VM); shared managed Node runtime for helper calls | ~150 MB+ (Chromium renderer per process) || Cold startup | Sub-500ms | 2-5 seconds || Garbage collection pauses | None (Rust ownership model) | V8 GC pauses |@@ -315,7 +315,7 @@ Core subsystems run on published `tiny*` crates, vendored as git submodules unde| **HTTP** | reqwest | Async HTTP with rustls + native-tLS dual support || **Encryption** | aes-gcm + argon2 | AES-256-GCM encryption, Argon2id key derivation || **Scheduling** | cron crate + `cron` domain | Standard cron expressions, `scheduler_gate`-gated |-| **Telegram** | CEF webview provider | Embedded webview + `telegram_scanner` (no bot API client) |+| **Telegram** | Embedded (Wry) webview provider | Embedded webview + `telegram_scanner` (no bot API client) || **Realtime** | Socket.io (client) | Bidirectional event-based communication || **AI** | MCP (JSON-RPC 2.0) | Standardized tool protocol for LLM integration || **Search** | OpenAI embeddings + SQLite FTS5 | Hybrid semantic + keyword search |diff --git a/gitbooks/developing/architecture/frontend.md b/gitbooks/developing/architecture/frontend.mdindex c9dc658613..8b8dc32a0a 100644--- a/gitbooks/developing/architecture/frontend.md+++ b/gitbooks/developing/architecture/frontend.md@@ -113,7 +113,7 @@ App.tsx└─ AppShell (desktop or mobile)├─ AppRoutes - PublicRoute / ProtectedRoute / DefaultRedirect├─ SettingsModal - overlay mounted when the URL is /settings/*- └─ WebviewHost - active connected-app CEF webview overlay+ └─ WebviewHost - active connected-app (Wry) webview overlay```### Services layer (conceptual)@@ -160,7 +160,7 @@ Authoritative list = the `reducer` map in `store/index.ts`. One-line purposes:| Slice | Purpose | Persisted? || -------------------- | ----------------------------------------------------------------------- | -------------------------------------------------------------- |-| `accounts` | Connected web-app (CEF webview) accounts + rail ordering | `accounts`, `order`, `lastActiveAccountId` (not the active id) |+| `accounts` | Connected web-app (Wry webview) accounts + rail ordering | `accounts`, `order`, `lastActiveAccountId` (not the active id) || `agentProfiles` | Agent profile data | no || `announcement` | Harness-init announcement banner, seen ids | `shownIds` || `backendMeet` | Backend-driven Google Meet call state (join/leave, transcript, replies) | no |@@ -363,7 +363,7 @@ mascot context value is deliberately non-reactive — reactive state lives inRedux or in the send-binding external store instead. A reactive context valuewould reconcile the whole chat tree every frame, which is the stall #5357 had tofix. And the overlay only mounts while the agent account is selected: HTML paints-_behind_ the native CEF provider webviews, so a fixed overlay left alive under+_behind_ the native (Wry) provider webviews, so a fixed overlay left alive underWhatsApp/Slack would be an invisible canvas still burning frames.The mascot face comes from `useHumanMascot`, which subscribes to chat lifecyclediff --git a/gitbooks/developing/architecture/tauri-shell.md b/gitbooks/developing/architecture/tauri-shell.mdindex c90480544f..59696d55e5 100644--- a/gitbooks/developing/architecture/tauri-shell.md+++ b/gitbooks/developing/architecture/tauri-shell.md@@ -245,7 +245,7 @@ Registered in **`lib.rs`** at startup under the event-bus native-request methodmain thread.Why: enigo's macOS keyboard-layout lookup (`TSMGetInputSourceProperty`) traps-(`_dispatch_assert_queue_fail` / `EXC_BREAKPOINT`) and crashes the CEF host when+(`_dispatch_assert_queue_fail` / `EXC_BREAKPOINT`) and crashes the desktop host whencalled off the main thread. The `mouse` / `keyboard` tools therefore never callenigo on their tokio worker; they build a closure and dispatch it here, wherethe shell runs it via `AppHandle::run_on_main_thread`.diff --git a/gitbooks/developing/e2e-testing.md b/gitbooks/developing/e2e-testing.mdindex 01fd3094f1..34b7cdaf25 100644--- a/gitbooks/developing/e2e-testing.md+++ b/gitbooks/developing/e2e-testing.md@@ -14,7 +14,7 @@ Desktop E2E tests use **WebDriverIO (WDIO)** to drive the Tauri app through Appi| **Linux / Appium Chromium** | Appium Chromium | 4723 | Debug binary | CSS / DOM || **macOS / Appium Chromium** | Appium Chromium | 4723 | `.app` bundle | CSS / DOM |-OpenHuman's desktop app currently uses the CEF runtime (`tauri-runtime-cef`). CI drives the Linux debug binary with Appium's Chromium driver; manual macOS and Windows E2E use the same Chromium-driver backend.+OpenHuman's desktop app runs on Tauri's native Wry webview (the CEF runtime was removed in #5478). CI drives the Linux debug binary under Xvfb; the macOS / Windows Chromium-driver backend attached over CEF's remote-debugging port and no longer works — those platforms have no desktop E2E coverage until a native driver (Appium Mac2 / WinAppDriver) lands (#5485).---diff --git a/gitbooks/developing/testing-strategy.md b/gitbooks/developing/testing-strategy.mdindex 7023509dd4..8ccc6100f1 100644--- a/gitbooks/developing/testing-strategy.md+++ b/gitbooks/developing/testing-strategy.md@@ -16,7 +16,7 @@ How OpenHuman tests its product. Source of truth for "where does my test go?". C| **Rust unit** | `#[cfg(test)] mod tests` inside the same `*.rs` file, or sibling `tests.rs`, or `tests/` subdir under a domain (e.g. `crates/openhuman-core/src/channels/tests/`) | Pure domain logic, schemas, RPC handler shape, in-memory state machines | `cargo test` || **Rust integration** | `tests/*.rs` at repo root | Full domain wiring with real Tokio runtime, mock external services, JSON-RPC end-to-end (`tests/json_rpc_e2e.rs`), domain × domain interactions | `pnpm test:rust` (which calls `bash scripts/test-rust-with-mock.sh`) || **Vitest unit** | Co-located as `*.test.ts(x)` next to source under `app/src/**`, or under `app/src/**/__tests__/` | React components, hooks, store slices, pure utilities, service-layer adapters | `pnpm test:unit` |-| **WDIO E2E** | `app/test/e2e/specs/*.spec.ts` | Full desktop flow: UI → Tauri → in-process core → JSON-RPC; user-visible behaviour | All platforms: Appium Chromium driver (port 4723) against the CEF runtime. See [E2E Testing](e2e-testing.md). |+| **WDIO E2E** | `app/test/e2e/specs/*.spec.ts` | Full desktop flow: UI → Tauri → in-process core → JSON-RPC; user-visible behaviour | All platforms: Linux CI drives the Wry-based debug build (macOS/Windows desktop E2E is disabled until a native driver lands, #5485). See [E2E Testing](e2e-testing.md). || **Manual smoke** | [`docs/RELEASE-MANUAL-SMOKE.md`](../../docs/RELEASE-MANUAL-SMOKE.md) | OS-level surfaces drivers cannot assert: TCC permission prompts, Gatekeeper, code signing, DMG install, OS-native toasts | Human at release-cut, signed off in release PR |---