Skip to content

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

chore(test): remove harness search tool-flow specs

Steven Enamakelcf6b2175e7be
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.sh
index 3f2579a56c..889da632ab 100755
--- a/app/scripts/e2e-run-all-flows.sh
+++ b/app/scripts/e2e-run-all-flows.sh
@@ -315,7 +315,6 @@ if should_run_suite "webhooks"; then
run "test/e2e/specs/webhooks-tunnel-flow.spec.ts" "webhooks-tunnel" "webhooks"
run "test/e2e/specs/harness-channel-bridge-flow.spec.ts" "harness-channel-bridge" "webhooks"
run "test/e2e/specs/harness-composio-tool-flow.spec.ts" "harness-composio-tool" "webhooks"
- run "test/e2e/specs/harness-search-tool-flow.spec.ts" "harness-search-tool" "webhooks"
_mini_summary "webhooks"
fi
diff --git a/app/test/e2e/specs/harness-search-tool-flow.spec.ts b/app/test/e2e/specs/harness-search-tool-flow.spec.ts
deleted file mode 100644
index eeb58cf1f7..0000000000
--- a/app/test/e2e/specs/harness-search-tool-flow.spec.ts
+++ /dev/null
@@ -1,337 +0,0 @@
-// @ts-nocheck
-/**
- * Harness — Search tool-flow (WS-D spec 3).
- *
- * Exercises the agent harness routing prompts that trigger search-related
- * tool calls: memory recall, web search, and file read.
- *
- * Actual tool names discovered in crates/openhuman-core/src/tools/impl/:
- * - "memory_recall" — recall / search personal memories
- * - "web_search_tool" — search the web (NOT "web_search")
- * - "web_answer_tool" — grounded answer with citations (search role tools)
- * - "file_read" — read a file from the filesystem
- *
- * Mock surface notes:
- * - memory_recall / web_search_tool / file_read all route to the LLM endpoint.
- * When the LLM emits a tool_call for these, the core attempts to execute the
- * tool using in-process handlers (no external mock endpoint required).
- * - For web_search_tool the core may call a real search API or the Apify mock.
- * We use `llmForcedResponses` to drive both turns so the outcome is
- * deterministic regardless of whether the tool succeeds or fails — the second
- * turn canned reply is always returned.
- * - For file_read the tool may attempt to read a real path. If path resolution
- * fails the core should return an error result and the second LLM turn still
- * fires. Use a clearly fictional path so no real data is read.
- *
- * Scenarios:
- * S3.1 — Memory recall: "what did we discuss about project Atlas"
- * → LLM emits memory_recall tool call → canned content in second turn
- * → UI shows final reply citing the recalled content.
- * S3.2 — Web search: "search for Rust async best practices"
- * → LLM emits web_search_tool tool call → canned results in second turn
- * → UI shows final reply.
- * S3.3 — File read: "read the README"
- * → LLM emits file_read tool call → canned snippet in second turn
- * → UI shows final reply containing the snippet.
- * S3.4 — Web answer: "what is the capital of Australia"
- * → LLM emits web_answer_tool tool call (the grounded-answer role
- * tool, served by Gemini by default) → canned final reply.
- *
- * Observation strategy:
- * Tool call LLM requests: second LLM turn body will contain the tool name
- * in the messages array (as a tool-result message). `waitForToolCallInMockLog`
- * with source='llm' searches for the tool name in LLM completions request bodies.
- *
- * TODO(ws-a-followup): If the core executes memory_recall and returns real
- * memory content, the second forced response may be overridden. In practice
- * the llmForcedResponses queue still pops in order, so the second turn always
- * returns the CANARY string regardless of what the tool returned.
- */
-import { waitForApp } from '../helpers/app-helpers';
-import {
- chatMounted,
- clickByTitle,
- clickSend,
- getSelectedThreadId,
- typeIntoComposer,
- waitForAssistantReplyContaining,
- waitForSocketConnected,
-} from '../helpers/chat-harness';
-import { textExists } from '../helpers/element-helpers';
-import { resetApp } from '../helpers/reset-app';
-import { navigateViaHash } from '../helpers/shared-flows';
-import {
- clearRequestLog,
- getRequestLog,
- resetMockBehavior,
- setMockBehavior,
- startMockServer,
- stopMockServer,
-} from '../mock-server';
-
-const LOG_PREFIX = '[HarnessSearch]';
-const USER_ID = 'e2e-harness-search-tool-flow';
-
-// ---------------------------------------------------------------------------
-// Shared helpers
-// ---------------------------------------------------------------------------
-
-async function navigateChatAndSend(prompt: string): Promise<void> {
- await navigateViaHash('/chat');
- await browser.waitUntil(async () => await chatMounted(), {
- timeout: 15_000,
- timeoutMsg: 'Conversations panel did not mount',
- });
- expect(await clickByTitle('New thread', 8_000)).toBe(true);
- await browser.waitUntil(async () => await getSelectedThreadId(), {
- timeout: 8_000,
- timeoutMsg: 'thread.selectedThreadId never populated',
- });
-
- await typeIntoComposer(prompt);
- const socketReady = await waitForSocketConnected(30_000);
- if (!socketReady) {
- console.warn(`${LOG_PREFIX} socket did not connect within 30s — send may fail`);
- }
- expect(
- await browser.waitUntil(async () => await clickSend(), {
- timeout: 15_000,
- timeoutMsg: 'Send button never enabled',
- })
- ).toBe(true);
- console.log(`${LOG_PREFIX} Sent: "${prompt.slice(0, 80)}"`);
-}
-
-/** Check if any LLM completions request body contains the tool name as a
- * function name reference (in tool_calls or tool result messages). */
-function findToolInLlmLog(
- log: Array<{ method: string; url: string; body?: string }>,
- toolName: string
-): boolean {
- return log.some(
- r =>
- r.method === 'POST' &&
- r.url.includes('/chat/completions') &&
- typeof r.body === 'string' &&
- r.body.includes(`"${toolName}"`)
- );
-}
-
-// ---------------------------------------------------------------------------
-// Suite
-// ---------------------------------------------------------------------------
-
-describe('Harness - Search tool-flow', () => {
- before(async function beforeSuite() {
- this.timeout(90_000);
- console.log(`${LOG_PREFIX} Starting mock server and resetting app`);
- await startMockServer();
- await waitForApp();
- await resetApp(USER_ID);
- console.log(`${LOG_PREFIX} Suite setup complete`);
- });
-
- after(async () => {
- resetMockBehavior();
- await stopMockServer();
- console.log(`${LOG_PREFIX} Suite teardown complete`);
- });
-
- // ── S3.1 — Memory recall ──────────────────────────────────────────────────
-
- it('S3.1 — memory_recall: "what did we discuss about project Atlas" → final reply cites recalled content', async function () {
- this.timeout(120_000);
- console.log(`${LOG_PREFIX} S3.1: begin`);
-
- clearRequestLog();
- resetMockBehavior();
-
- const CANARY = 'canary-memory-recall-a1b2';
-
- // Tool name: "memory_recall" (crates/openhuman-core/src/tools/impl/memory/recall.rs)
- const FORCED = [
- {
- content: '',
- toolCalls: [
- {
- id: 'call_memory_recall_1',
- name: 'memory_recall',
- arguments: JSON.stringify({ namespace: 'global', query: 'project Atlas' }),
- },
- ],
- },
- {
- // Second turn: LLM receives whatever the tool returned (or an error if
- // the tool could not find any memory) and generates a final answer.
- content: `Based on my memory search, we discussed project Atlas in relation to the Q4 infrastructure migration. ${CANARY}`,
- },
- ];
- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));
- setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await navigateChatAndSend('what did we discuss about project Atlas');
-
- // Wait for the final reply canary.
- await browser.waitUntil(async () => await textExists(CANARY), {
- timeout: 60_000,
- timeoutMsg: `S3.1: memory-recall canary "${CANARY}" never appeared`,
- });
- console.log(`${LOG_PREFIX} S3.1: canary visible`);
-
- // UI: final reply contains the recalled reference.
- expect(await waitForAssistantReplyContaining('project Atlas', { logPrefix: LOG_PREFIX })).toBe(
- true
- );
-
- // LLM mock log: at minimum two completions requests (tool call turn + final answer turn).
- const log = getRequestLog() as Array<{ method: string; url: string; body?: string }>;
- const llmHits = log.filter(r => r.method === 'POST' && r.url.includes('/chat/completions'));
- console.log(`${LOG_PREFIX} S3.1: ${llmHits.length} LLM completion request(s)`);
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
-
- // Check whether the tool name appears in one of the LLM request bodies
- // (the second turn carries the tool result message which includes the
- // function name). This is best-effort — if tool execution fails the core
- // may still send two LLM turns without embedding the function name.
- const foundInLog = findToolInLlmLog(log, 'memory_recall');
- if (foundInLog) {
- console.log(`${LOG_PREFIX} S3.1: "memory_recall" found in LLM request log`);
- } else {
- console.warn(
- `${LOG_PREFIX} S3.1: "memory_recall" not found in LLM request bodies. ` +
- `The tool call was emitted (forced response) but the result may not ` +
- `have been echoed back in the same request format. ` +
- `TODO(ws-a-followup): verify memory_recall tool-result message format.`
- );
- // Still pass: the forced-response CANARY proves the two-turn sequence completed.
- }
-
- console.log(`${LOG_PREFIX} S3.1: PASSED`);
- });
-
- // ── S3.2 — Web search ────────────────────────────────────────────────────
-
- it('S3.2 — web_search_tool: "search for Rust async best practices" → final reply cites results', async function () {
- this.timeout(120_000);
- console.log(`${LOG_PREFIX} S3.2: begin`);
-
- clearRequestLog();
- resetMockBehavior();
-
- const CANARY = 'canary-web-search-c3d4';
-
- // Tool name: "web_search_tool" (crates/openhuman-core/src/tools/impl/network/web_search.rs)
- // NOTE: NOT "web_search" — the actual registered name is "web_search_tool".
- const FORCED = [
- {
- content: '',
- toolCalls: [
- {
- id: 'call_web_search_1',
- name: 'web_search_tool',
- arguments: JSON.stringify({ query: 'Rust async best practices' }),
- },
- ],
- },
- {
- content: `Here are the top results for Rust async best practices: use tokio for runtimes, prefer async/await over manual Future impls. ${CANARY}`,
- },
- ];
- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));
- setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await navigateChatAndSend('search for Rust async best practices');
-
- await browser.waitUntil(async () => await textExists(CANARY), {
- timeout: 60_000,
- timeoutMsg: `S3.2: web-search canary "${CANARY}" never appeared`,
- });
- console.log(`${LOG_PREFIX} S3.2: canary visible`);
-
- // UI: final reply contains search result content.
- expect(await waitForAssistantReplyContaining('Rust async', { logPrefix: LOG_PREFIX })).toBe(
- true
- );
-
- const log = getRequestLog() as Array<{ method: string; url: string; body?: string }>;
- const llmHits = log.filter(r => r.method === 'POST' && r.url.includes('/chat/completions'));
- console.log(`${LOG_PREFIX} S3.2: ${llmHits.length} LLM completion request(s)`);
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
-
- const foundInLog = findToolInLlmLog(log, 'web_search_tool');
- if (foundInLog) {
- console.log(`${LOG_PREFIX} S3.2: "web_search_tool" found in LLM request log`);
- } else {
- console.warn(
- `${LOG_PREFIX} S3.2: "web_search_tool" not found in LLM request bodies. ` +
- `Tool call was emitted but may not appear in the tool-result message format. ` +
- `TODO(ws-a-followup): verify web_search_tool mock routing.`
- );
- }
-
- console.log(`${LOG_PREFIX} S3.2: PASSED`);
- });
-
- // ── S3.4 — Web answer ────────────────────────────────────────────────────
-
- it('S3.4 — web_answer_tool: "what is the capital of Australia" → final reply', async function () {
- this.timeout(120_000);
- console.log(`${LOG_PREFIX} S3.4: begin`);
-
- clearRequestLog();
- resetMockBehavior();
-
- const CANARY = 'canary-web-answer-g7h8';
-
- // Role tool: "web_answer_tool" returns a grounded answer with citations,
- // served by the first usable provider in the answer role (Gemini by
- // default). Whether it succeeds against the mock or fails, the forced
- // second turn always returns the canary.
- const FORCED = [
- {
- content: '',
- toolCalls: [
- {
- id: 'call_web_answer_1',
- name: 'web_answer_tool',
- arguments: JSON.stringify({ query: 'capital of Australia' }),
- },
- ],
- },
- { content: `The capital of Australia is Canberra. ${CANARY}` },
- ];
- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));
- setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await navigateChatAndSend('what is the capital of Australia');
-
- await browser.waitUntil(async () => await textExists(CANARY), {
- timeout: 60_000,
- timeoutMsg: `S3.4: web-answer canary "${CANARY}" never appeared`,
- });
- expect(await waitForAssistantReplyContaining('Canberra', { logPrefix: LOG_PREFIX })).toBe(true);
-
- const log = getRequestLog() as Array<{ method: string; url: string; body?: string }>;
- const llmHits = log.filter(r => r.method === 'POST' && r.url.includes('/chat/completions'));
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
- expect(findToolInLlmLog(log, 'web_answer_tool')).toBe(true);
- const toolResults = log.flatMap(request => {
- if (!request.body) return [];
- try {
- const body = JSON.parse(request.body) as {
- messages?: Array<{ role?: string; content?: string }>;
- };
- return (body.messages ?? [])
- .filter(message => message.role === 'tool')
- .map(message => message.content ?? '');
- } catch {
- return [];
- }
- });
- expect(
- toolResults.some(result => result.includes('Canberra') && /https?:\/\//.test(result))
- ).toBe(true);
-
- console.log(`${LOG_PREFIX} S3.4: PASSED`);
- });
-});
diff --git a/app/test/playwright/specs/harness-search-tool-flow.spec.ts b/app/test/playwright/specs/harness-search-tool-flow.spec.ts
deleted file mode 100644
index 55e564ae29..0000000000
--- a/app/test/playwright/specs/harness-search-tool-flow.spec.ts
+++ /dev/null
@@ -1,220 +0,0 @@
-import { expect, type Page, test } from '@playwright/test';
-
-import { agentMessageText } from '../helpers/chat-locators';
-import {
- bootAuthenticatedPage,
- dismissWalkthroughIfPresent,
- waitForAppReady,
-} from '../helpers/core-rpc';
-
-const MOCK_ADMIN_BASE = `http://127.0.0.1:${process.env.E2E_MOCK_PORT || '18473'}`;
-const USER_ID = 'pw-harness-search-tool-flow';
-
-interface MockRequest {
- method: string;
- url: string;
- body?: string;
-}
-
-async function resetMock(): Promise<void> {
- await fetch(`${MOCK_ADMIN_BASE}/__admin/reset`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({}),
- });
-}
-
-async function setMockBehavior(key: string, value: string): Promise<void> {
- await fetch(`${MOCK_ADMIN_BASE}/__admin/behavior`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({ key, value }),
- });
-}
-
-async function requests(): Promise<MockRequest[]> {
- const response = await fetch(`${MOCK_ADMIN_BASE}/__admin/requests`);
- const payload = (await response.json()) as { data?: MockRequest[] };
- return Array.isArray(payload.data) ? payload.data : [];
-}
-
-async function openChat(page: Page): Promise<void> {
- await bootAuthenticatedPage(page, USER_ID, '/chat');
- await page.goto('/#/chat');
- await waitForAppReady(page);
- await dismissWalkthroughIfPresent(page);
- await expect(page.getByTestId('chat-message-input')).toBeVisible();
-}
-
-async function selectedThreadId(page: Page): Promise<string | null> {
- return page.evaluate(() => {
- const store = (
- window as unknown as {
- __OPENHUMAN_STORE__?: {
- getState?: () => { thread?: { selectedThreadId?: string | null } };
- };
- }
- ).__OPENHUMAN_STORE__;
- return store?.getState?.().thread?.selectedThreadId ?? null;
- });
-}
-
-async function createNewThread(page: Page): Promise<string> {
- const before = await selectedThreadId(page);
- await dismissWalkthroughIfPresent(page);
- const sidebarButton = page.getByTestId('new-thread-sidebar-button');
- if (await sidebarButton.isVisible().catch(() => false)) {
- await sidebarButton.click({ force: true });
- } else {
- await page.getByTestId('new-thread-button').click({ force: true });
- }
- const changed = await expect
- .poll(
- async () => {
- const current = await selectedThreadId(page);
- return current && current !== before ? current : null;
- },
- { timeout: 10_000 }
- )
- .not.toBeNull()
- .then(
- () => true,
- () => false
- );
- const id = await selectedThreadId(page);
- if (changed && id) return id;
- if (id) return id;
- if (before) return before;
- throw new Error('selectedThreadId was not populated');
-}
-
-async function waitForSocketConnected(page: Page): Promise<void> {
- await expect
- .poll(
- async () =>
- page.evaluate(() => {
- const store = (
- window as unknown as {
- __OPENHUMAN_STORE__?: {
- getState?: () => { socket?: { byUser?: Record<string, { status?: string }> } };
- };
- }
- ).__OPENHUMAN_STORE__;
- const byUser = store?.getState?.().socket?.byUser ?? {};
- return Object.values(byUser).some(entry => entry?.status === 'connected');
- }),
- { timeout: 30_000 }
- )
- .toBe(true);
-}
-
-async function sendMessage(page: Page, prompt: string): Promise<void> {
- await waitForSocketConnected(page);
- await dismissWalkthroughIfPresent(page);
- await page.getByTestId('chat-message-input').fill(prompt);
- await dismissWalkthroughIfPresent(page);
- await expect(page.getByTestId('send-message-button')).toBeEnabled();
- await page.getByTestId('send-message-button').click();
-}
-
-async function toolTimelineIncludes(
- page: Page,
- threadId: string,
- toolName: string
-): Promise<boolean> {
- return page.evaluate(
- ({ currentThreadId, expectedTool }) => {
- const store = (
- window as unknown as {
- __OPENHUMAN_STORE__?: {
- getState?: () => {
- chatRuntime?: { toolTimelineByThread?: Record<string, Array<{ name?: string }>> };
- };
- };
- }
- ).__OPENHUMAN_STORE__;
- const entries =
- store?.getState?.().chatRuntime?.toolTimelineByThread?.[currentThreadId] ?? [];
- return entries.some(entry => entry.name === expectedTool);
- },
- { currentThreadId: threadId, expectedTool: toolName }
- );
-}
-
-test.describe('Harness - Search tool-flow', () => {
- test.beforeEach(async ({ page }) => {
- await resetMock();
- await openChat(page);
- await createNewThread(page);
- });
-
- test('memory_recall prompt completes the two-turn sequence', async ({ page }) => {
- const CANARY = 'canary-memory-recall-a1b2';
- const forced = [
- {
- content: '',
- toolCalls: [
- {
- id: 'call_memory_recall_1',
- name: 'memory_recall',
- arguments: JSON.stringify({ namespace: 'global', query: 'project Atlas' }),
- },
- ],
- },
- {
- content: `Based on my memory search, we discussed project Atlas in relation to the Q4 infrastructure migration. ${CANARY}`,
- },
- ];
- await setMockBehavior('llmForcedResponses', JSON.stringify(forced));
- await setMockBehavior('llmStreamChunkDelayMs', '10');
-
- const threadId = await selectedThreadId(page);
- expect(threadId).not.toBeNull();
- await sendMessage(page, 'what did we discuss about project Atlas');
- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
- await expect(agentMessageText(page, /Based on my memory search/i)).toBeVisible();
-
- const log = await requests();
- const llmHits = log.filter(
- request => request.method === 'POST' && request.url.includes('/chat/completions')
- );
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
- expect(await toolTimelineIncludes(page, threadId!, 'memory_recall')).toBe(true);
- });
-
- test('web_search_tool prompt completes the two-turn sequence', async ({ page }) => {
- const CANARY = 'canary-web-search-c3d4';
- const forced = [
- {
- content: '',
- toolCalls: [
- {
- id: 'call_web_search_1',
- name: 'web_search_tool',
- arguments: JSON.stringify({ query: 'Rust async best practices' }),
- },
- ],
- },
- {
- content: `Here are the top results for Rust async best practices: use tokio for runtimes, prefer async/await over manual Future impls. ${CANARY}`,
- },
- ];
- await setMockBehavior('llmForcedResponses', JSON.stringify(forced));
- await setMockBehavior('llmStreamChunkDelayMs', '10');
-
- const threadId = await selectedThreadId(page);
- expect(threadId).not.toBeNull();
- await sendMessage(page, 'search for Rust async best practices');
- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
- await expect(
- agentMessageText(page, /Here are the top results for Rust async best practices/i)
- ).toBeVisible();
-
- const log = await requests();
- const llmHits = log.filter(
- request => request.method === 'POST' && request.url.includes('/chat/completions')
- );
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
- expect(await toolTimelineIncludes(page, threadId!, 'web_search_tool')).toBe(true);
- });
-});
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index 071b02a5e0..2ab2724016 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -337,11 +337,11 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ----- | ---------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 7.2.1 | HTTP / API Requests | RU+WD | `service-connectivity-flow.spec.ts` | ✅ | |
-| 7.2.2 | Web Search Execution | WD | `harness-search-tool-flow.spec.ts::S3.2` | ✅ | **Citation corrected 2026-09-24:** the row cited `skill-execution-flow.spec.ts`, whose three tests are login-shell / core.ping / installed-tools and touch no search path. `harness-search-tool-flow.spec.ts::S3.2` drives `web_search_tool` end to end and asserts the final reply cites results; it runs in the `webhooks` suite |
+| 7.2.2 | Web Search Execution | RU+PW | `tests/raw_coverage/worker_b_domain_e2e.rs::tools_web_search_success_path_uses_backend_session_and_shapes_results`, `app/test/playwright/specs/tool-call-presentation.spec.ts` | ✅ | The host RPC test exercises search against the loopback backend and verifies the returned result shape; the browser test checks that a streamed `web_search_tool` call is presented in the chat timeline as “Searched the web” with its hits. The managed TinySearch grounded-answer module continuation is covered separately in 7.2.6. |
| 7.2.3 | TinyFish Integration Tools | RU | `vendor/tinysearch` provider tests, `crates/openhuman-core/src/modules/search/config_tests.rs`, `crates/openhuman-core/src/search/providers_tests.rs` | ✅ | TinyFish is a managed TinySearch provider serving the search and contents roles; host tests cover its managed-only route and usability; request mapping is tested in the module |
| 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/in_process/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+WD | `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/integrations/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`, `app/test/e2e/specs/chip-tabs-keyboard.spec.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 | Multi-provider roles, fallback and grounded answers | RU+RI+VU+WD | `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/integrations/recorded_tools_tests.rs`, `crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs`, `tests/raw_coverage/worker_b_domain_e2e.rs::tools_web_answer_uses_managed_gemini_grounding_and_returns_citations`, `tests/agent_harness_e2e.rs::managed_tinysearch_answer_reaches_followup_model_request`, `app/src/components/settings/panels/SearchPanel.test.tsx`, `app/src/features/conversations/tools/parseWebSearchResult.test.ts`, `app/test/e2e/specs/chip-tabs-keyboard.spec.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; the registry-pinned TinySearch module calls managed Gemini and its grounded answer and source reach the next model request; 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.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 |
| 7.2.9 | Per-agent pinned search keys (embedded hosts) | RU+RI | `crates/openhuman-core/src/config/schema/tools/search_host_tests.rs`, `crates/openhuman-core/src/modules/search/config_tests.rs`, `crates/openhuman-core/src/modules/search/proxy_tests.rs`, `tests/search_pinned_keys_e2e.rs` | ✅ | Two agents in one process search through the loaded TinySearch module with their own in-memory keys against a loopback provider; each call carries its own key, in turn and concurrently, and no key reaches the environment, a file or a log line |