Skip to content

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

fix(settings): revert mode change when persist fails

Steven Enamakel5bf002411b34
diff --git a/app/src/components/settings/panels/SearchPanelAllowedSites.tsx b/app/src/components/settings/panels/SearchPanelAllowedSites.tsx
index 08e948dba3..c9c819513c 100644
--- a/app/src/components/settings/panels/SearchPanelAllowedSites.tsx
+++ b/app/src/components/settings/panels/SearchPanelAllowedSites.tsx
@@ -61,12 +61,11 @@ const SearchPanelAllowedSites = ({ settings, saving, persist, t }: Props) => {
// host editor (its Save button persists the list), keeping what was typed.
const selectMode = (next: AccessMode) => {
if (saving) return;
+ const previous = mode;
setMode(next);
- if (next === 'all') {
- void persist({ allow_all: true });
- } else if (next === 'block') {
- void persist({ allowed_domains: [], allow_all: false });
- }
+ const update =
+ next === 'all' ? { allow_all: true } : next === 'block' ? { allowed_domains: [], allow_all: false } : null;
+ if (update) void persist(update).then(ok => { if (!ok) setMode(previous); });
};
const persistAllowedDomains = () => {
diff --git a/crates/openhuman-core/src/mcp/server/README.md b/crates/openhuman-core/src/mcp/server/README.md
index 8f745749a6..45e197464e 100644
--- a/crates/openhuman-core/src/mcp/server/README.md
+++ b/crates/openhuman-core/src/mcp/server/README.md
@@ -65,7 +65,7 @@ It does **not** own any agent tools in the `tools.rs`/`crates/openhuman-core/src
- Read-only (`ToolOperation::Read`): `core.list_tools`, `core.tool_instructions`, `agent.list_subagents`, `memory.search`, `memory.recall`, `tree.read_chunk`, `tree.browse`, `tree.top_entities`, `tree.list_sources`, `web_search`, `web_answer`, `searxng_search` (listed only when a search provider can serve them; `crate::search::providers`).
- Act-policy (`ToolOperation::Act`): `agent.run_subagent` (annotated destructive/open-world; rejects `integrations_agent`), and the write tools `memory.store`, `memory.note`, `tree.tag` (annotated destructive/idempotent, local-only).
-Argument bounds enforced in-layer: `k`/limits capped at `MAX_LIMIT` (50), default 10; `tree.tag` capped at 50 tags / 128 bytes per tag; SearXNG `max_results` capped at `SEARXNG_MAX_RESULTS`. Write tools derive deterministic upsert keys (`mcp-store-<slug>`, `mcp-note-<chunk_id>`, `mcp-tag-<chunk_id>`).
+Argument bounds enforced in-layer: `k`/limits capped at `MAX_LIMIT` (50), default 10; `tree.tag` capped at 50 tags / 128 bytes per tag; Search tool `max_results` capped at `SEARCH_MAX_RESULTS`. Write tools derive deterministic upsert keys (`mcp-store-<slug>`, `mcp-note-<chunk_id>`, `mcp-tag-<chunk_id>`).
## Events
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index 30cf63674f..59d9de8dad 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -332,7 +332,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| 7.2.4 | Exa search (managed + BYOK) | RU+RI+VU | `vendor/tinysearch` provider tests, `crates/openhuman-core/src/modules/search/config_tests.rs`, `tests/raw_coverage/worker_b_raw_coverage_e2e.rs::tools_web_search_success_path_uses_backend_session_and_shapes_results`, `crates/openhuman-core/src/config/ops/search_tests.rs`, `app/src/components/settings/panels/SearchPanel.test.tsx` | ✅ | Managed Exa posts `{objective, searchQueries}` (no `mode`) to `/agent-integrations/exa/search` through the loaded TinySearch module against a local backend; direct Exa keeps its key private in the module configuration; the panel switches route and saves/clears the key |
| 7.2.5 | Tavily BYOK search + extract (direct API) | RU+RI+VU | `vendor/tinysearch` provider tests, `crates/openhuman-core/src/config/ops_loader_and_search_tests.rs` (`apply_search_settings_stores_and_clears_tavily_key`), `tests/config_auth_app_state_connectivity_e2e.rs`, `app/src/components/settings/panels/SearchPanel.test.tsx` | ✅ | Tavily serves the search and contents roles with the user's key; the key round-trips through the settings RPC and secret encryption and is never returned; clearing it drops Tavily from `effective_roles` |
| 7.2.6 | Multi-provider roles, fallback and grounded answers | RU+RI+VU | `crates/openhuman-core/src/search/{providers,render,tools,bus}_tests.rs`, `crates/openhuman-core/src/config/schema/tools/search_search_config_tests_tests.rs`, `crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs`, `crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs`, `tests/raw_coverage/worker_b_raw_coverage_e2e.rs::tools_web_answer_uses_managed_gemini_grounding_and_returns_citations`, `app/src/components/settings/panels/SearchPanel.test.tsx`, `app/src/features/conversations/tools/parseWebSearchResult.test.ts` | ✅ | Several providers at once: one agent tool per role (`web_search_tool`, `web_answer_tool`, `web_contents_tool`) served by the first usable provider with fallback (module tests); managed providers need a session and refresh on `CredentialChanged`; managed Gemini grounding returns an answer with citations end to end; single-engine settings migrate on load and Parallel stays as an own-key-only provider; resumed threads keep recorded role tools; chat renders answers, citations and fallback |
-| 7.2.6 | Backend socket connect deadline + reconnect diagnostics | RU | `crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs` (`connect_with_redirects_times_out_when_upgrade_never_answers`, `connect_timeout_is_not_tighter_than_a_handshake_read`, `ws_loop_reports_reconnecting_between_attempts`, `ws_loop_reconnects_after_ping_deadline_on_a_silent_server`), `crates/openhuman-core/src/core/observability_error_classification_network_tests.rs` (`classifies_socket_connect_deadline_as_network_unreachable`) (#6256) | ✅ | One connect attempt (DNS + TCP + TLS + upgrade) is bounded at 10 s per redirect hop and fails as the `operation timed out` transport shape the Sentry classifier demotes; the loop reports `reconnecting` between attempts and `disconnected` only when stopped; the ping-timeout warning carries connection age / EIO pings received / frames sent, and a handshake after an outage logs `Reconnected after …` |
+| 7.2.8 | Backend socket connect deadline + reconnect diagnostics | RU | `crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs` (`connect_with_redirects_times_out_when_upgrade_never_answers`, `connect_timeout_is_not_tighter_than_a_handshake_read`, `ws_loop_reports_reconnecting_between_attempts`, `ws_loop_reconnects_after_ping_deadline_on_a_silent_server`), `crates/openhuman-core/src/core/observability_error_classification_network_tests.rs` (`classifies_socket_connect_deadline_as_network_unreachable`) (#6256) | ✅ | One connect attempt (DNS + TCP + TLS + upgrade) is bounded at 10 s per redirect hop and fails as the `operation timed out` transport shape the Sentry classifier demotes; the loop reports `reconnecting` between attempts and `disconnected` only when stopped; the ping-timeout warning carries connection age / EIO pings received / frames sent, and a handshake after an outage logs `Reconnected after …` |
| 7.2.7 | Connectivity chip — core↔hosted backend link | VU | `app/src/services/__tests__/coreHealthMonitor.test.ts`, `app/src/store/__tests__/connectivitySlice.test.ts`, `app/src/store/__tests__/connectivitySelectors.test.ts`, `app/src/components/__tests__/ConnectionIndicator.test.tsx` (#6256) | ✅ | `connectivity_diag.socket_state` + `socket_loop_active` are mirrored into `connectivity.hosted` by the health poll; with the loop alive, `connecting` / `reconnecting` / `disconnected` (server closed the namespace) render the amber `hosted-degraded` chip, ranked below every other channel; `socket_loop_active=false` or `uninitialized` collapse to `unknown` (no chip: signed out, local session, boot) unless `socket_loop_stopped_on_failure` says the loop exited on an unusable session, which renders `hosted-stopped` with "sign in again" copy; `error` (server error event on a live transport) is stored but is not a chip state; a degraded link selects the 5 s poll so recovery shows within seconds |
---
diff --git a/scripts/ci/check-module-pins.mjs b/scripts/ci/check-module-pins.mjs
index 1a59d4f5aa..0dabf13b62 100755
--- a/scripts/ci/check-module-pins.mjs
+++ b/scripts/ci/check-module-pins.mjs
@@ -77,6 +77,7 @@ const ROOT = resolve(process.argv[2] ?? join(HERE, "..", ".."));
// ship out of the tinyruntime release, so they are checked against
// `vendor/tinyruntime` via `sharesWith`.
const PIN_MAP = {
+ tinysearch: { submodule: "vendor/tinysearch" },
tinydesktop: { submodule: "vendor/tinydesktop" },
tinybox: { submodule: "vendor/tinybox" },
tinychannels: { submodule: "vendor/tinychannels" },