Skip to content

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

merge: sync main into feat/7202-mcp-apps-in-chat

oxoxDev65d798a009e1
diff --cc Cargo.lock
index 7f7c49cfe7,700c91f6c6..31eab5c03e
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -8082,35 -8086,9 +8096,35 @@@ dependencies =
"url",
]
+[[package]]
+name = "tinymcp"
+version = "0.17.0"
+dependencies = [
+ "base64 0.23.1",
+ "dirs 7.0.0",
+ "futures-util",
+ "parking_lot",
+ "regex",
+ "reqwest 0.12.28",
+ "serde",
+ "serde_json",
+ "sha2 0.11.0",
+ "thiserror 2.0.20",
+ "tinymcp-bus",
+ "tinystoragedrivers-core",
- "tinystoragedrivers-secrets 0.7.0 (git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v0.7.0)",
++ "tinystoragedrivers-secrets",
+ "tinytools",
+ "tinytools-std",
+ "tokio",
+ "tracing",
+ "url",
+ "urlencoding",
+ "uuid",
+]
+
[[package]]
name = "tinymcp-bus"
-version = "0.16.1"
+version = "0.17.0"
dependencies = [
"schemars",
"serde",
diff --cc crates/openhuman-app/Cargo.lock
index 1c6c9c0761,7ac3413bf3..e3d65095e9
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@@ -6462,10 -6452,10 +6463,10 @@@ source = "registry+https://github.com/r
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.3.4",
+ "getrandom 0.4.3",
"once_cell",
"rustix 1.1.5",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@@ -7117,35 -7120,9 +7131,35 @@@ dependencies =
"url",
]
+[[package]]
+name = "tinymcp"
+version = "0.17.0"
+dependencies = [
+ "base64 0.23.1",
+ "dirs 7.0.0",
+ "futures-util",
+ "parking_lot",
+ "regex",
+ "reqwest 0.12.28",
+ "serde",
+ "serde_json",
+ "sha2 0.11.0",
+ "thiserror 2.0.20",
+ "tinymcp-bus",
+ "tinystoragedrivers-core",
- "tinystoragedrivers-secrets 0.7.0 (git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v0.7.0)",
++ "tinystoragedrivers-secrets",
+ "tinytools",
+ "tinytools-std",
+ "tokio",
+ "tracing",
+ "url",
+ "urlencoding",
+ "uuid",
+]
+
[[package]]
name = "tinymcp-bus"
-version = "0.16.1"
+version = "0.17.0"
dependencies = [
"schemars 1.2.2",
"serde",
diff --cc docs/TEST-COVERAGE-MATRIX.md
index abe6bfa13f,195188465d..720d80766a
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@@ -196,8 -196,7 +196,8 @@@ Local inference runs against a runtime
| 4.2.10 | Durable agent reply (core stores it before announcing `chat_done`) | RU+VU | `crates/openhuman-core/src/web_chat/reply_persistence_tests.rs`, `crates/openhuman-core/src/web_chat/presentation_tests.rs`, `app/src/providers/__tests__/ChatRuntimeProvider.test.tsx` | ✅ | `deliver_response` persists an unsegmented reply under `agent:<request_id>` before publishing the terminal event, so a dropped socket, a failed `threads_message_append` or a reloaded webview costs a repaint rather than the answer; the client's append collapses onto that row by id. RU covers the write, its idempotency, the empty-reply and missing-thread paths, and that delivery still announces when the store refuses. VU covers the mirrored id, the segmented exception, the refetch that recovers a failed append, and the reconnect that rejoins orphaned thread rooms. WD E2E (kill the append mid-turn) is a follow-up |
| 4.2.11 | Links open in the default browser; the main webview never loads a remote page | RU+VU+MS | `crates/openhuman-app/src/external_navigation_tests.rs`, `app/src/utils/openUrl.test.ts`, `app/src/utils/externalLinkGuard.test.ts`, `app/src/components/Announcement/AnnouncementModal.test.tsx`, release-manual-smoke | 🟡 | RU covers the shell's navigation policy: remote http(s) navigation of `main` is cancelled and handed to the OS opener; `tauri://localhost`, `tauri.localhost`, `about:`/`data:`/`blob:` and the `tauri dev` server stay in the webview; other webviews are untouched. VU covers `openUrl` never falling back to `window.open` in the desktop shell (including the IPC bridge bootstrap gap) and the click guard. Real macOS click verified manually; automated desktop E2E is a follow-up (the WDIO desktop runner still assumes CEF) |
| 4.2.12 | Live stream renders like the reopened thread (parity, append-only, atomic settle) | VU+WD | `app/src/providers/__tests__/liveHistoryParity.test.tsx`, `app/src/store/__tests__/chatRuntimeSlice.liveParity.test.ts`, `app/src/features/conversations/derived/mapDisplayItems.test.ts`, `app/src/services/chatDeltaCoalescer.test.ts`, `app/src/features/conversations/components/AssistantUiToolCall.disclosure.test.tsx`, `app/src/components/assistant-ui/elements/reasoning-panel.test.tsx`, `app/src/components/assistant-ui/thread.followBottom.test.tsx`, `chat-live-history-parity.spec.ts` | ✅ | One scripted turn (`app/src/test/fixtures/streamedTurn.ts`) is told as socket events and as the core transcript. VU drives it through the real socket handlers: the settled reply equals the reload projection, the tail is append-only while it streams, and `chat_done` swaps tail for reply in one store update at one index. Also covered: in-place sub-agent promotion on both sides, args-delta row adoption, a superseded settle, frame-coalesced deltas, disclosure state across remounts, and following that survives a collapse. WD samples the real DOM while streaming, checks the viewport still follows, and compares with the reopened thread |
- | 4.2.13 | Final-reply remix with region slang and memes (TinyMemes, `OPENHUMAN_TINYMEMES` off/on/ab) | RU+VU | `crates/openhuman-core/src/tinymemes/arm_tests.rs`, `crates/openhuman-core/src/tinymemes/mod_tests.rs`, `crates/openhuman-core/src/tinymemes/callbacks_tests.rs`, `crates/openhuman-core/src/tinymemes/history_tests.rs`, `crates/openhuman-core/src/tinymemes/remixed_tests.rs`, `crates/openhuman-core/src/tinymemes/inference_tests.rs`, `crates/openhuman-core/src/web_chat/progress_bridge_tests.rs::hold_text_stream_suppresses_text_delta_but_keeps_interim`, `app/src/components/markdown/MarkdownImage.test.tsx` | 🟡 | Off by default. RU covers the flag (runtime value over the build-time default), stable per-thread A/B buckets, delivered-history conversion with remixed turns tagged, OpenRouter reasoning-off routing, and that treatment threads hold `text_delta` while interim narration still flushes. VU covers capped, lazy, no-referrer meme images. The engine itself (Jev reading, rating, rewrite, meme and slang vetting) runs in the `tinymemes` module and is tested in `tinyhumansai/tinymemes`; the host side is covered with a scripted remixer and the served Complete/Evaluate/Search/LoadIndex/SaveIndex/Deliver callbacks. WD E2E of a remixed turn is a follow-up |
+ | 4.2.13 | Final-reply remix with region slang and memes (TinyMemes, `OPENHUMAN_TINYMEMES` off/on/ab) | RU+VU | `crates/openhuman-core/src/tinymemes/arm_tests.rs`, `crates/openhuman-core/src/tinymemes/mod_tests.rs`, `crates/openhuman-core/src/tinymemes/callbacks_tests.rs`, `crates/openhuman-core/src/tinymemes/history_tests.rs`, `crates/openhuman-core/src/tinymemes/docs_tests.rs`, `crates/openhuman-core/src/tinymemes/service_tests.rs`, `crates/openhuman-core/src/tinymemes/e2e_tests.rs`, `crates/openhuman-core/src/tinymemes/inference_tests.rs`, `crates/openhuman-core/src/web_chat/progress_bridge_tests.rs::hold_text_stream_suppresses_text_delta_but_keeps_interim`, `app/src/components/markdown/MarkdownImage.test.tsx` | 🟡 | Off by default. RU covers the flag (runtime value over the build-time default), stable per-thread A/B buckets, delivered-history conversion with message ids (the module tags remixed turns from its own ring), the one-shot adoption of the legacy `remixed.json`/index files into storage, host-callback authentication (module peer only, live correlation id only) and per-workspace concurrency, OpenRouter reasoning-off routing, and that treatment threads hold `text_delta` while interim narration still flushes. VU covers capped, lazy, no-referrer meme images. The engine itself (Jev reading, rating, rewrite, meme and slang vetting) runs in the `tinymemes` module and is tested in `tinyhumansai/tinymemes`; the host side is covered with a scripted remixer and the served Complete/Evaluate/Search/LoadIndex/SaveIndex/Deliver/End callbacks; `e2e_tests.rs` drives the real compiled module (runs where a module library is staged). WD E2E of a remixed turn is a follow-up |
+| 4.2.14 | Tool UI widgets in chat (MCP Apps `ui://` and Apps SDK templates) | RU+VU | `crates/openhuman-core/src/mcp/ui/resolve_tests.rs`, `crates/openhuman-core/src/mcp/ui/ops_tests.rs`, `crates/openhuman-core/src/mcp/ui/decorate_tests.rs`, `crates/openhuman-core/src/mcp/ui/tools_tests.rs`, `crates/openhuman-app/src/widget_scheme_tests.rs`, `app/src/features/conversations/tools/mcpUi/mcpAppBridge.test.ts`, `app/src/features/conversations/tools/mcpUi/McpAppFrame.test.tsx`, `app/src/components/assistant-ui/thread.mcpWidgets.test.tsx` | 🟡 | RU covers template resolution, resource reads, widget tool-call policy, result decoration and the `ohwidget://` proxy scheme. VU covers the bridge, the sandboxed frame, link and QR fallback, and widget placement in the assistant turn. The live widget round-trip against a real MCP server is manual smoke only |
### 4.3 Tool Invocation
diff --cc scripts/ci/process-statics.json
index 0b92d53cba,a993635381..31e15bc290
--- a/scripts/ci/process-statics.json
+++ b/scripts/ci/process-statics.json
@@@ -1,12 -1,22 +1,32 @@@
[
+ {
+ "file": "crates/openhuman-core/src/mcp/ui/cache.rs",
+ "scope": "",
+ "name": "STORE",
+ "type": "LazyLock<Mutex<Store>>",
+ "count": 1,
+ "category": "B",
+ "reason": "Every entry key is prefixed with the calling tenant's profile and agent scope through tenant_key, and a SaaS call with no tenant scope gets an isolated key that never matches.",
+ "verification": "mcp/ui/cache_tests.rs: entries_are_not_shared_across_tenants"
++ },
+ {
+ "file": "crates/openhuman-core/src/tinymemes/callbacks.rs",
+ "scope": "",
+ "name": "REGISTRY",
+ "type": "LazyLock<Mutex<HashMap<String,Entry>>>",
+ "count": 1,
+ "category": "B",
+ "reason": "Keyed by a random per-remix correlation id; each entry holds the registering caller's config, CoreContext and memory identity, which every callback re-enters. Callbacks are accepted only from the module peer (bus name owner) for a live id, and the entry is retired by End, a failed call, or an age sweep.",
+ "verification": "tinymemes/service_tests.rs: only_the_module_may_call_back_and_only_for_a_live_remix; tinymemes/callbacks_tests.rs: callbacks_run_as_the_identity_that_registered_the_remix"
+ },
+ {
+ "file": "crates/openhuman-core/src/tinymemes/service.rs",
+ "scope": "",
+ "name": "FOREGROUND",
+ "type": "std::sync::LazyLock<std::sync::Mutex<std::collections::HashMap<String,std::sync::Arc<tokio::sync::Mutex<()>>>>, >",
+ "count": 1,
+ "category": "B",
+ "reason": "Holds only unit mutexes. The key is the workspace directory plus the acting memory identity, so different scopes never share or wait on a lock and no tenant data is stored.",
+ "verification": "tinymemes/service_tests.rs: foreground_remixes_share_a_lock_per_workspace_and_never_across_workspaces"
}
]