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
chore: files changed app/test/e2e/specs/harness-cron-prompt-flow.spec.ts,app/test/playwright/specs/h
Steven Enamakel6c3f718246c9
diff --git a/app/test/e2e/specs/harness-cron-prompt-flow.spec.ts b/app/test/e2e/specs/harness-cron-prompt-flow.spec.tsindex c74d7fe9b8..acc1e24790 100644--- a/app/test/e2e/specs/harness-cron-prompt-flow.spec.ts+++ b/app/test/e2e/specs/harness-cron-prompt-flow.spec.ts@@ -180,98 +180,7 @@ describe('Harness - Cron prompt-flow', () => {// ── CR2.1 — Create cron via natural language ──────────────────────────────// TODO(#6391): the TinyAgents update no longer exposes write-tool approval prompts.- it.skip('CR2.1 — "remind me every morning at 9am" triggers cron_add and oracle confirms creation', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} CR2.1: begin`);-- clearRequestLog();- resetMockBehavior();-- const CANARY = 'canary-cron-create-a1b2';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_cron_add_1',- name: 'cron_add',- // `schedule` must be the tagged-union shape { kind, expr } that- // `Schedule` deserializes from; a bare cron string fails at- // `serde_json::from_value::<Schedule>` inside CronAddTool.- arguments: JSON.stringify({- name: 'morning_reminder',- schedule: { kind: 'cron', expr: '0 9 * * *' },- job_type: 'agent',- prompt: 'morning reminder',- }),- },- ],- },- { content: `Done! I have set up a daily 9am morning reminder for you. ${CANARY}` },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- // Snapshot cron state before.- const before = await listCronJobs();- console.log(- `${LOG_PREFIX} CR2.1: pre-send cron jobs: ${before.map(j => j.name).join(', ') || '(none)'}`- );-- await navigateChatAndSend('remind me every morning at 9am');- expect(await approvePendingToolCall()).toBe(true);-- // Wait for final reply.- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `CR2.1: creation-confirmation canary "${CANARY}" never appeared`,- });- console.log(`${LOG_PREFIX} CR2.1: canary visible`);-- // Oracle: did the tool actually create the job in the in-process core?- // Poll briefly to allow the cron domain to persist.- let afterJobs: Array<{ name: string }> = [];- const oracleDeadline = Date.now() + 10_000;- while (Date.now() < oracleDeadline) {- afterJobs = await listCronJobs();- if (afterJobs.length > before.length) break;- await browser.pause(500);- }- console.log(- `${LOG_PREFIX} CR2.1: post-send cron jobs: ${afterJobs.map(j => j.name).join(', ') || '(none)'}`- );-- if (afterJobs.length > before.length) {- // Tool was executed and persisted — strongest assertion.- console.log(- `${LOG_PREFIX} CR2.1: cron_add tool executed and persisted — full round-trip confirmed`- );- const created = afterJobs.find(- j => j.name === 'morning_reminder' || j.name.includes('morning')- );- if (created) {- console.log(`${LOG_PREFIX} CR2.1: created job: ${JSON.stringify(created)}`);- }- } else {- // Tool call reached the LLM (mock log must show 2 turns) but may not have- // persisted (e.g. security policy blocks tool execution in E2E build).- console.warn(- `${LOG_PREFIX} CR2.1: cron_add tool call was issued but oracle did not see a new job. ` +- `TODO(ws-a-followup): verify tool execution routing in E2E build.`- );- }-- // LLM mock log: verify 2 turns (tool call turn + final answer turn).- 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} CR2.1: ${llmHits.length} LLM completion request(s)`);- expect(llmHits.length).toBeGreaterThanOrEqual(2);-- // UI assertion: the assistant reply must mention creation.- expect(await waitForAssistantReplyContaining('9am', { logPrefix: LOG_PREFIX })).toBe(true);-- console.log(`${LOG_PREFIX} CR2.1: PASSED`);- });+ // Retired legacy direct cron_* call; the supported use_skill path is covered in Playwright.// ── CR2.2 — List jobs ─────────────────────────────────────────────────────@@ -331,175 +240,10 @@ describe('Harness - Cron prompt-flow', () => {// ── CR2.3 — Update schedule ───────────────────────────────────────────────// TODO(#6391): the TinyAgents update no longer exposes write-tool approval prompts.- it.skip('CR2.3 — "change my morning reminder to 8am" triggers cron_update and oracle confirms', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} CR2.3: begin`);-- clearRequestLog();- resetMockBehavior();-- // Pre-create the job to update.- const jobId = await createCronJobOracle({- name: 'morning_reminder_update_test',- schedule: '0 9 * * *',- });- console.log(`${LOG_PREFIX} CR2.3: pre-created job id: ${jobId}`);-- const CANARY = 'canary-cron-update-e5f6';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_cron_update_1',- name: 'cron_update',- // CronUpdateTool takes `{ job_id, patch }` where `patch` is a- // CronJobPatch (schedule/command/prompt/enabled/...). The LLM- // would look up the job id from context; the mock embeds it- // directly when available, otherwise a placeholder.- arguments: JSON.stringify({- job_id: jobId ?? 'morning_reminder_update_test',- patch: { schedule: { kind: 'cron', expr: '0 8 * * *' } },- }),- },- ],- },- { content: `Done! I have changed your morning reminder to 8am. ${CANARY}` },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- await navigateChatAndSend('change my morning reminder to 8am');- expect(await approvePendingToolCall()).toBe(true);-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `CR2.3: update-confirmation canary "${CANARY}" never appeared`,- });- console.log(`${LOG_PREFIX} CR2.3: canary visible`);-- // Oracle: check if the schedule changed.- const afterJobs = await listCronJobs();- const updatedJob = afterJobs.find(- j => j.name === 'morning_reminder_update_test' || j.id === jobId- );- if (updatedJob) {- console.log(`${LOG_PREFIX} CR2.3: oracle job after update: ${JSON.stringify(updatedJob)}`);- // The schedule may be in a normalised form — '0 8 * * *' is the target.- if (String(updatedJob.schedule ?? '').includes('8')) {- console.log(`${LOG_PREFIX} CR2.3: schedule updated to 8am — confirmed via oracle`);- } else {- console.warn(- `${LOG_PREFIX} CR2.3: schedule not updated in oracle (may need tool-execution routing). ` +- `TODO(ws-a-followup): verify cron_update tool dispatch.`- );- }- } else {- console.warn(- `${LOG_PREFIX} CR2.3: updated job not found in oracle list. ` +- `TODO(ws-a-followup): verify cron tool execution in E2E build.`- );- }-- // LLM turn count.- 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);-- // UI assertion.- expect(await waitForAssistantReplyContaining('8am', { logPrefix: LOG_PREFIX })).toBe(true);-- console.log(`${LOG_PREFIX} CR2.3: PASSED`);- });+ // Retired legacy direct cron_* call; the supported use_skill path is covered in Playwright.// ── CR2.4 — Delete via prompt ─────────────────────────────────────────────// TODO(#6391): the TinyAgents update no longer exposes write-tool approval prompts.- it.skip('CR2.4 — "delete the morning reminder" triggers cron_remove and oracle confirms removal', async function () {- this.timeout(120_000);- console.log(`${LOG_PREFIX} CR2.4: begin`);-- clearRequestLog();- resetMockBehavior();-- // Pre-create the job to delete.- const jobId = await createCronJobOracle({- name: 'morning_reminder_delete_test',- schedule: '0 9 * * *',- });- console.log(`${LOG_PREFIX} CR2.4: pre-created job id: ${jobId}`);-- const CANARY = 'canary-cron-delete-g7h8';- const FORCED = [- {- content: '',- toolCalls: [- {- id: 'call_cron_remove_1',- name: 'cron_remove',- // CronRemoveTool takes `{ job_id }`, not `{ id }`.- arguments: JSON.stringify({ job_id: jobId ?? 'morning_reminder_delete_test' }),- },- ],- },- { content: `Done! I have deleted the morning reminder. ${CANARY}` },- ];- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED));- setMockBehavior('llmStreamChunkDelayMs', '10');-- // Verify job exists before deletion.- const before = await listCronJobs();- const existsBefore = before.some(- j => j.name === 'morning_reminder_delete_test' || j.id === jobId- );- console.log(- `${LOG_PREFIX} CR2.4: job exists before delete: ${existsBefore} (${before.length} total jobs)`- );-- await navigateChatAndSend('delete the morning reminder');- expect(await approvePendingToolCall()).toBe(true);-- await browser.waitUntil(async () => await textExists(CANARY), {- timeout: 60_000,- timeoutMsg: `CR2.4: deletion-confirmation canary "${CANARY}" never appeared`,- });- console.log(`${LOG_PREFIX} CR2.4: canary visible`);-- // Oracle: verify job is gone.- let isGone = false;- const oracleDeadline = Date.now() + 8_000;- while (Date.now() < oracleDeadline) {- const after = await listCronJobs();- const stillExists = after.some(- j => j.name === 'morning_reminder_delete_test' || j.id === jobId- );- if (!stillExists) {- isGone = true;- console.log(`${LOG_PREFIX} CR2.4: oracle confirmed job is gone`);- break;- }- await browser.pause(500);- }-- if (!isGone && existsBefore) {- console.warn(- `${LOG_PREFIX} CR2.4: job still present in oracle after cron_remove tool call. ` +- `TODO(ws-a-followup): verify cron_remove tool dispatch in E2E build.`- );- } else if (!existsBefore) {- console.log(- `${LOG_PREFIX} CR2.4: job was not present in oracle before delete either — tool execution not confirmed via oracle.`- );- }-- // LLM turn count.- 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);-- // UI assertion: the assistant acknowledged the deletion.- expect(await waitForAssistantReplyContaining('deleted', { logPrefix: LOG_PREFIX })).toBe(true);-- console.log(`${LOG_PREFIX} CR2.4: PASSED`);- });+ // Retired legacy direct cron_* call; the supported use_skill path is covered in Playwright.});diff --git a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts b/app/test/playwright/specs/harness-cron-prompt-flow.spec.tsindex 76ef644634..bb2a5fb052 100644--- a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts+++ b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts@@ -109,10 +109,6 @@ async function sendMessage(page: Page, prompt: string): Promise<void> {}test.describe('Harness - Cron prompt-flow', () => {- test.skip(- true,- 'cron prompt flows (orchestrator -> use_skill scheduling/cron) are not deterministic here'- );test.beforeEach(async ({ page }) => {await resetMock();await openChat(page);diff --git a/app/test/playwright/specs/harness-search-tool-flow.spec.ts b/app/test/playwright/specs/harness-search-tool-flow.spec.tsindex 34dcb7ad3a..0fc21323e9 100644--- a/app/test/playwright/specs/harness-search-tool-flow.spec.ts+++ b/app/test/playwright/specs/harness-search-tool-flow.spec.ts@@ -142,10 +142,6 @@ async function toolTimelineIncludes(}test.describe('Harness - Search tool-flow', () => {- test.skip(- true,- 'file_read prompt flow is sandbox-fixture dependent; filesystem coverage is authoritative'- );test.beforeEach(async ({ page }) => {await resetMock();await openChat(page);@@ -222,36 +218,4 @@ test.describe('Harness - Search tool-flow', () => {expect(await toolTimelineIncludes(page, threadId!, 'web_search_tool')).toBe(true);});- test('file_read prompt completes the two-turn sequence', async ({ page }) => {- const CANARY = 'canary-file-read-e5f6';- const FILE_SNIPPET = 'OpenHuman is an AI assistant for communities';- const forced = [- {- content: '',- toolCalls: [- {- id: 'call_file_read_1',- name: 'file_read',- arguments: JSON.stringify({ path: '/workspace/README.md' }),- },- ],- },- { content: `The README says: ${FILE_SNIPPET}. ${CANARY}` },- ];- await setMockBehavior('llmForcedResponses', JSON.stringify(forced));- await setMockBehavior('llmStreamChunkDelayMs', '10');-- const threadId = await selectedThreadId(page);- expect(threadId).not.toBeNull();- await sendMessage(page, 'read the README');- await expect(agentMessageText(page, CANARY)).toBeVisible({ timeout: 60_000 });- await expect(agentMessageText(page, /OpenHuman is an AI assistant/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!, 'file_read')).toBe(true);- });});diff --git a/app/test/playwright/specs/tool-browser-flow.spec.ts b/app/test/playwright/specs/tool-browser-flow.spec.tsindex 6feb28b5a0..f9f29b6c26 100644--- a/app/test/playwright/specs/tool-browser-flow.spec.ts+++ b/app/test/playwright/specs/tool-browser-flow.spec.ts@@ -45,5 +45,4 @@ test.describe('System tools - Browser (open URL + automation registry)', () => {}});- test.skip('future chat tool_calls drive browser_open end-to-end via deterministic mock LLM', async () => {});});diff --git a/app/test/playwright/specs/tool-shell-git-flow.spec.ts b/app/test/playwright/specs/tool-shell-git-flow.spec.tsindex 742f8b32c2..8fef43e574 100644--- a/app/test/playwright/specs/tool-shell-git-flow.spec.ts+++ b/app/test/playwright/specs/tool-shell-git-flow.spec.ts@@ -192,5 +192,4 @@ test.describe('System tools - Shell + Git', () => {expect(lines.some(line => line.includes('follow-up commit asserted'))).toBe(true);});- test.skip('future deterministic mock LLM drives shell tool end-to-end', async () => {});});