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
test(e2e): remove S3.3 file_read tool-flow spec
Steven Enamakel22eadbb02b93
diff --git a/app/test/e2e/specs/harness-search-tool-flow.spec.ts b/app/test/e2e/specs/harness-search-tool-flow.spec.tsindex 61fd6f90b1..eeb58cf1f7 100644--- a/app/test/e2e/specs/harness-search-tool-flow.spec.ts+++ b/app/test/e2e/specs/harness-search-tool-flow.spec.ts@@ -272,75 +272,6 @@ describe('Harness - Search tool-flow', () => {console.log(`${LOG_PREFIX} S3.2: PASSED`);});- // ── S3.3 — File read ─────────────────────────────────────────────────────-- it('S3.3 — file_read: "read the README" → final reply contains file content phrase', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} S3.3: begin`);-- clearRequestLog();- resetMockBehavior();-- const CANARY = 'canary-file-read-e5f6';- const FILE_SNIPPET = 'OpenHuman is an AI assistant for communities';-- // Tool name: "file_read" (tinytools-std filesystem/file_read/mod.rs)- // Path: use a clearly fictional path so no real data is read in test env.- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_file_read_1',- name: 'file_read',- arguments: JSON.stringify({ path: '/workspace/README.md' }),- },- ],- },- {- // Second turn: LLM receives whatever file_read returned (error or content).- // We embed the FILE_SNIPPET to simulate the LLM echoing the content.- content: `The README says: ${FILE_SNIPPET}. ${CANARY}`,- },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- await navigateChatAndSend('read the README');-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `S3.3: file-read canary "${CANARY}" never appeared`,- });- console.log(`${LOG_PREFIX} S3.3: canary visible`);-- // UI: final reply contains the file snippet phrase.- expect(- await waitForAssistantReplyContaining('OpenHuman is an AI assistant', {- 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.3: ${llmHits.length} LLM completion request(s)`);- expect(llmHits.length).toBeGreaterThanOrEqual(2);-- const foundInLog = findToolInLlmLog(log, 'file_read');- if (foundInLog) {- console.log(`${LOG_PREFIX} S3.3: "file_read" found in LLM request log`);- } else {- console.warn(- `${LOG_PREFIX} S3.3: "file_read" not found in LLM request bodies. ` +- `This is expected if the core reports a file-not-found error as a tool-result ` +- `but still proceeds to the second LLM turn. The CANARY proves the turn completed. ` +- `TODO(ws-a-followup): add a mock filesystem surface or seed a readable test file.`- );- }-- console.log(`${LOG_PREFIX} S3.3: PASSED`);- });-// ── S3.4 — Web answer ────────────────────────────────────────────────────it('S3.4 — web_answer_tool: "what is the capital of Australia" → final reply', async function () {