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 redundant tool-call flow specs
Steven Enamakeldbf99e3dd1ec
diff --git a/app/test/e2e/specs/chat-tool-call-flow.spec.ts b/app/test/e2e/specs/chat-tool-call-flow.spec.tsindex 2887224424..efcb0c0d46 100644--- a/app/test/e2e/specs/chat-tool-call-flow.spec.ts+++ b/app/test/e2e/specs/chat-tool-call-flow.spec.ts@@ -202,17 +202,6 @@ describe('Chat tool-call lifecycle', () => {console.log(`${LOG_PREFIX} T1.3: passed — canary visible`);});- it('T1.4 — mock received exactly 2 LLM completions requests', async () => {- console.log(`${LOG_PREFIX} T1.4: inspecting request log`);- const log = getRequestLog() as Array<{ method: string; url: string; body?: string }>;- const llmHits = log.filter(- r => r.method === 'POST' && r.url.includes('/openai/v1/chat/completions')- );- console.log(`${LOG_PREFIX} T1.4: found ${llmHits.length} LLM completion requests`);- // Turn 1: tool_calls emission; Turn 2: final answer after tool result.- // Accept >=2 to be robust against retries or additional system turns.- expect(llmHits.length).toBeGreaterThanOrEqual(2);- });it('T1.5 — IN_FLIGHT map clears after completion', async () => {console.log(`${LOG_PREFIX} T1.5: verifying IN_FLIGHT cleared`);diff --git a/app/test/e2e/specs/harness-composio-tool-flow.spec.ts b/app/test/e2e/specs/harness-composio-tool-flow.spec.tsindex a02d5766b6..37959c4da0 100644--- a/app/test/e2e/specs/harness-composio-tool-flow.spec.ts+++ b/app/test/e2e/specs/harness-composio-tool-flow.spec.ts@@ -224,172 +224,10 @@ describe('Harness — Composio tool-call prompt flow', () => {// ── C1.2 — GitHub GITHUB_LIST_REPOS ──────────────────────────────────────- it('C1.2 — GitHub GITHUB_LIST_REPOS: prompt triggers tool and final reply lists repos', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} C1.2: begin`);-- clearRequestLog();- resetMockBehavior();- seedHarnessComposioState();-- const GITHUB_REPOS = [- { name: 'openhuman', full_name: 'tinyhumansai/openhuman', private: false },- { name: 'infra-scripts', full_name: 'tinyhumansai/infra-scripts', private: true },- ];- setMockBehavior(- 'composioExecuteResponse_GITHUB_LIST_REPOS',- JSON.stringify({ repositories: GITHUB_REPOS })- );-- const CANARY = 'canary-github-d4e5f6';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_github_list_repos_1',- name: 'GITHUB_LIST_REPOS',- arguments: JSON.stringify({ per_page: 30 }),- },- ],- },- { content: `Your GitHub repositories: openhuman, infra-scripts. ${CANARY}` },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- await navigateChatAndSend('list my GitHub repos');-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `C1.2: final reply canary "${CANARY}" never appeared`,- });- expect(await waitForAssistantReplyContaining('openhuman', { logPrefix: LOG_PREFIX })).toBe(- true- );-- const log = getRequestLog() as Array<{ method: string; url: string }>;- const llmHits = log.filter(r => r.method === 'POST' && r.url.includes('/chat/completions'));- console.log(`${LOG_PREFIX} C1.2: ${llmHits.length} LLM completion request(s)`);- expect(llmHits.length).toBeGreaterThanOrEqual(2);-- console.log(`${LOG_PREFIX} C1.2: PASSED`);- });// ── C1.3 — Composio execute failure ──────────────────────────────────────- it('C1.3 — Composio execute failure: assistant acknowledges the error gracefully', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} C1.3: begin`);-- clearRequestLog();- resetMockBehavior();- seedHarnessComposioState();-- // Inject a 400 failure for all composio execute calls.- setMockBehavior('composioExecuteFails', '400');-- const CANARY = 'canary-composio-fail-g7h8i9';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_fail_tool_1',- name: 'GMAIL_GET_MAIL',- arguments: JSON.stringify({ max_results: 5 }),- },- ],- },- {- // Second turn: LLM receives the error result and acknowledges it.- content: `Sorry, I was unable to fetch your emails — the action returned an error. ${CANARY}`,- },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- await navigateChatAndSend('check my email inbox please');-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `C1.3: error-acknowledgment canary "${CANARY}" never appeared`,- });-- console.log(`${LOG_PREFIX} C1.3: error canary visible — checking composio execute was hit`);- const log = getRequestLog() as Array<{ method: string; url: string }>;- const composioHit = log.find(- r => r.method === 'POST' && r.url.includes('/agent-integrations/composio/execute')- );- if (composioHit) {- console.log(`${LOG_PREFIX} C1.3: composio execute (failure) hit confirmed`);- } else {- console.warn(- `${LOG_PREFIX} C1.3: composio execute not found — ` +- `TODO(ws-a-followup): verify mock routing for tool failures.`- );- }-- console.log(`${LOG_PREFIX} C1.3: PASSED`);- });// ── C1.4 — Linear LINEAR_CREATE_ISSUE ────────────────────────────────────- it('C1.4 — Linear LINEAR_CREATE_ISSUE: creates issue and final reply confirms creation', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} C1.4: begin`);-- clearRequestLog();- resetMockBehavior();- seedHarnessComposioState();-- const LINEAR_RESULT = {- issue: {- id: 'issue-abc123',- title: 'Fix authentication timeout',- url: 'https://linear.app/tinyhumans/issue/ENG-42',- status: 'Todo',- },- };- setMockBehavior('composioExecuteResponse_LINEAR_CREATE_ISSUE', JSON.stringify(LINEAR_RESULT));-- const CANARY = 'canary-linear-j0k1l2';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_linear_create_1',- name: 'LINEAR_CREATE_ISSUE',- arguments: JSON.stringify({- title: 'Fix authentication timeout',- team_id: 'ENG',- description: 'Auth tokens are timing out prematurely',- }),- },- ],- },- {- content: `I have created the Linear issue "Fix authentication timeout" (ENG-42). ${CANARY}`,- },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- await navigateChatAndSend('create a linear issue titled Fix authentication timeout');-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `C1.4: creation-confirmation canary "${CANARY}" never appeared`,- });- expect(- await waitForAssistantReplyContaining('Fix authentication timeout', { logPrefix: LOG_PREFIX })- ).toBe(true);-- const log = getRequestLog() as Array<{ method: string; url: string }>;- const llmHits = log.filter(r => r.method === 'POST' && r.url.includes('/chat/completions'));- expect(llmHits.length).toBeGreaterThanOrEqual(2);-- console.log(`${LOG_PREFIX} C1.4: PASSED`);- });});