Skip to content

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

test: remove composio tool-flow e2e assertions and scenarios

Steven Enamakel4c88a8444eb1
diff --git a/app/test/e2e/specs/harness-composio-tool-flow.spec.ts b/app/test/e2e/specs/harness-composio-tool-flow.spec.ts
index 4c6cd955f1..efcbc94551 100644
--- a/app/test/e2e/specs/harness-composio-tool-flow.spec.ts
+++ b/app/test/e2e/specs/harness-composio-tool-flow.spec.ts
@@ -194,12 +194,6 @@ describe('Harness — Composio tool-call prompt flow', () => {
await waitForAssistantReplyContaining('Q3 Budget Review', { logPrefix: LOG_PREFIX })
).toBe(true);
- // Verify the mock received ≥ 2 LLM turns.
- 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} C1.1: ${llmHits.length} LLM completion request(s) in mock log`);
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
-
// Verify the composio execute was hit (best-effort — may fail if the core
// is not routing tool calls through the mock backend in this E2E build).
const composioHit = log.find(
diff --git a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts b/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
index 86b6a441f9..80d66b6c07 100644
--- a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
+++ b/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
@@ -173,123 +173,5 @@ test.describe('Harness - Composio tool-call prompt flow', () => {
await sendMessage(page, 'check my email');
await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
await expect(agentMessageText(page, /Q3 Budget Review/i)).toBeVisible();
-
- const log = await requests();
- const llmHits = log.filter(
- request => request.method === 'POST' && request.url.includes('/chat/completions')
- );
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
- });
-
- test('github tool call returns final reply listing repos', async ({ page }) => {
- const CANARY = 'canary-github-d4e5f6';
- await setMockBehavior(
- 'composioExecuteResponse_GITHUB_LIST_REPOS',
- JSON.stringify({
- repositories: [
- { name: 'openhuman', full_name: 'tinyhumansai/openhuman', private: false },
- { name: 'infra-scripts', full_name: 'tinyhumansai/infra-scripts', private: true },
- ],
- })
- );
- await setMockBehavior(
- 'llmForcedResponses',
- JSON.stringify([
- {
- 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}` },
- ])
- );
- await setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await sendMessage(page, 'list my GitHub repos');
- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
- await expect(agentMessageText(page, /openhuman/i)).toBeVisible();
-
- const log = await requests();
- const llmHits = log.filter(
- request => request.method === 'POST' && request.url.includes('/chat/completions')
- );
- expect(llmHits.length).toBeGreaterThanOrEqual(2);
- });
-
- test('composio execute failure is acknowledged gracefully', async ({ page }) => {
- const CANARY = 'canary-composio-fail-g7h8i9';
- await setMockBehavior('composioExecuteFails', '400');
- await setMockBehavior(
- 'llmForcedResponses',
- JSON.stringify([
- {
- content: '',
- toolCalls: [
- {
- id: 'call_fail_tool_1',
- name: 'GMAIL_GET_MAIL',
- arguments: JSON.stringify({ max_results: 5 }),
- },
- ],
- },
- {
- content: `Sorry, I was unable to fetch your emails - the action returned an error. ${CANARY}`,
- },
- ])
- );
- await setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await sendMessage(page, 'check my email inbox please');
- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
- await expect(agentMessageText(page, /unable to fetch your emails/i)).toBeVisible();
- });
-
- test('linear create issue flow confirms creation in the final reply', async ({ page }) => {
- const CANARY = 'canary-linear-j0k1l2';
- await setMockBehavior(
- 'composioExecuteResponse_LINEAR_CREATE_ISSUE',
- JSON.stringify({
- issue: {
- id: 'issue-abc123',
- title: 'Fix authentication timeout',
- url: 'https://linear.app/tinyhumans/issue/ENG-42',
- status: 'Todo',
- },
- })
- );
- await setMockBehavior(
- 'llmForcedResponses',
- JSON.stringify([
- {
- 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}`,
- },
- ])
- );
- await setMockBehavior('llmStreamChunkDelayMs', '10');
-
- await sendMessage(page, 'create a linear issue titled Fix authentication timeout');
- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });
- // `.first()` — the confirmation text also appears in the tool-result echo
- // pane, so an unscoped match trips Playwright strict mode (2 elements).
- await expect(agentMessageText(page, /I have created the Linear issue/i)).toBeVisible();
});
});