Skip to content

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

docs(agents, readme): clarify coreRpcClient routing logic

Steven Enamakel8b792cc0c27d
diff --git a/AGENTS.md b/AGENTS.md
index 921b2ab0a1..7b007167eb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -155,8 +155,9 @@ generated documentation blocks.
`app/src/store/index.ts`.
- Persist user state through `userScopedStorage`, not ad hoc
`localStorage`.
-- Use `coreRpcClient` for core RPC. It delegates to the
- `relay_http_rpc` Tauri command.
+- Use `coreRpcClient` for core RPC. It `fetch()`es the loopback core
+ directly and routes only non-loopback plain-`http://` runtimes (blocked as
+ mixed content, #3865) through the `relay_http_rpc` Tauri command.
- Auth state comes from `CoreStateProvider` and
`fetchCoreAppSnapshot()`.
- Routes are defined in `AppRoutes.tsx`. Check that file before adding links
diff --git a/crates/openhuman-app/README.md b/crates/openhuman-app/README.md
index 6bc8d938b6..1738ac3643 100644
--- a/crates/openhuman-app/README.md
+++ b/crates/openhuman-app/README.md
@@ -36,8 +36,10 @@ as distinct Rust types.
- **`openhuman-rpc`** (`http-client` feature): `core_rpc.rs` re-exports
`bearer_header` (as `relay_bearer_header`), `redact_url_for_log`, and
`HttpRpcResponse` (as `RelayHttpResponse`) crate-wide, and wraps
- `openhuman_rpc::post_json_rpc` for the `relay_http_rpc` command that the
- frontend's `coreRpcClient` goes through.
+ `openhuman_rpc::post_json_rpc` for the `relay_http_rpc` command, which the
+ frontend's `coreRpcClient` uses only when `rpcUrlNeedsShellRelay()` says a
+ non-loopback plain-`http://` runtime would be blocked as mixed content
+ (#3865); loopback and `https://` URLs are fetched directly from the webview.
- **`openhuman_core`** (path dependency, package `openhuman`,
`default-features = false`): the embedded core does not inherit the core
crate's default feature set, so every product gate