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
fix(ci): align release checks with current behavior
Steven Enamakel7ae3db08f6f0
diff --git a/app/src/pages/__tests__/Skills.tab-resolution.test.tsx b/app/src/pages/__tests__/Skills.tab-resolution.test.tsxindex 46abea3981..9beb46e6de 100644--- a/app/src/pages/__tests__/Skills.tab-resolution.test.tsx+++ b/app/src/pages/__tests__/Skills.tab-resolution.test.tsx@@ -59,8 +59,8 @@ vi.mock('../../components/skills/SkillsExplorerTab', () => ({vi.mock('../../components/channels/mcp/McpServersPage', () => ({default: () => <div data-testid="tab-body-mcp-servers" />,}));-vi.mock('../../components/desktop/DesktopConnectionPage', () => ({- default: () => <div data-testid="tab-body-desktop" />,+vi.mock('../../components/settings/panels/ComputerPanel', () => ({+ default: () => <div data-testid="tab-body-computer" />,}));vi.mock('../../lib/skills/skillsApi', () => ({@@ -155,7 +155,7 @@ describe('Connections ?tab= resolution — legacy aliases', () => {});describe('Connections ?tab= resolution — canonical values', () => {- it.each([['composio'], ['channels'], ['mcp'], ['skills'], ['wallet'], ['desktop']])(+ it.each([['composio'], ['channels'], ['mcp'], ['skills'], ['wallet'], ['computer']])('?tab=%s passes through unchanged',async tab => {renderAt(`?tab=${tab}`);@@ -163,6 +163,12 @@ describe('Connections ?tab= resolution — canonical values', () => {});+ it('?tab=desktop resolves to the Computer tab', async () => {+ renderAt('?tab=desktop');+ expect(await selectedTab()).toBe('computer');+ expect(screen.getByTestId('tab-body-computer')).toBeInTheDocument();+ });+it('?tab=welcome renders the landing overview', async () => {// `welcome` is the one value with no nav row of its own -- it is the// page's landing overview, rendered by `PageWelcome` at Skills.tsx:1037.diff --git a/app/test/e2e/helpers/element-helpers.ts b/app/test/e2e/helpers/element-helpers.tsindex ad3f955b7d..600446c722 100644--- a/app/test/e2e/helpers/element-helpers.ts+++ b/app/test/e2e/helpers/element-helpers.ts@@ -521,6 +521,17 @@ export async function clickTestId(return el;}+/** Set an input value through a stable test id in DOM-backed E2E runs. */+export async function setValueByTestId(+ testId: string,+ value: string,+ timeout: number = 15_000+): Promise<ChainablePromiseElement> {+ const el = await waitForTestId(testId, timeout);+ await el.setValue(value);+ return el;+}+/** Click a test id in DOM-backed runs or its visible text on Mac2. */export async function clickTestIdOrText(testId: string,diff --git a/app/test/e2e/specs/chat-harness-wallet-flow.spec.ts b/app/test/e2e/specs/chat-harness-wallet-flow.spec.tsindex 4a278d217b..77823205c9 100644--- a/app/test/e2e/specs/chat-harness-wallet-flow.spec.ts+++ b/app/test/e2e/specs/chat-harness-wallet-flow.spec.ts@@ -51,7 +51,9 @@ const WALLET_PROMPT = `Send John $5 on EVM at ${JOHN_ADDRESS} and tell me ${CANAfunction web3Call(id: string, tool: string, args: Record<string, unknown>) {return {content: '',- toolCalls: [{ id, name: 'use_skill', arguments: JSON.stringify({ skill: 'web3', tool, args }) }],+ toolCalls: [+ { id, name: 'use_skill', arguments: JSON.stringify({ skill: 'web3', tool, args }) },+ ],};}diff --git a/app/test/e2e/specs/settings-search.spec.ts b/app/test/e2e/specs/settings-search.spec.tsindex d2bd2e6d11..309a5e8563 100644--- a/app/test/e2e/specs/settings-search.spec.ts+++ b/app/test/e2e/specs/settings-search.spec.ts@@ -11,7 +11,7 @@ import { browser, expect } from '@wdio/globals';import { waitForApp } from '../helpers/app-helpers';import { callOpenhumanRpc } from '../helpers/core-rpc';-import { clickTestId, waitForTestId } from '../helpers/element-helpers';+import { clickTestId, setValueByTestId, waitForTestId } from '../helpers/element-helpers';import { resetApp } from '../helpers/reset-app';import { navigateViaHash } from '../helpers/shared-flows';import { startMockServer, stopMockServer } from '../mock-server';@@ -67,6 +67,7 @@ describe('Settings - Search', () => {await navigateViaHash('/settings/search');await waitForTestId('search-settings-panel', 15_000);await waitForTestId('search-provider-exa', 15_000);+ await clickTestId('search-tab-routing');await waitForTestId('search-role-search', 15_000);await clickTestId('search-enabled-toggle');@@ -93,8 +94,19 @@ describe('Settings - Search', () => {});it('enables a bring-your-own-key provider without making it serve a role', async () => {- await waitForTestId('search-provider-brave-toggle', 15_000);- await clickTestId('search-provider-brave-toggle');+ const reset = await callOpenhumanRpc('openhuman.config_update_search_settings', {+ enabled: true,+ providers: { brave: { enabled: false } },+ roles: { search: [] },+ });+ expect(reset.ok).toBe(true);++ await waitForTestId('search-settings-panel', 15_000);+ await waitForTestId('search-catalog-brave', 15_000);+ await clickTestId('search-catalog-brave');+ await waitForTestId('search-connect-brave-key', 15_000);+ await setValueByTestId('search-connect-brave-key', 'e2e-fake-brave-key');+ await clickTestId('search-connect-brave-submit');await waitForSettings(settings => providerOf(settings, 'brave')?.enabled === true,@@ -103,9 +115,11 @@ describe('Settings - Search', () => {const settings = await getSearchSettings();const brave = providerOf(settings, 'brave');- // No key stored in a fresh profile, so Brave needs one and serves nothing.- expect(brave.status).toBe('needs_key');+ // The dialog accepted a fixture key, but routing stays an explicit choice.+ expect(brave.key_configured).toBe(true);expect(settings.effective_roles.search).not.toContain('brave');- await waitForTestId('search-role-search-provider-brave', 10_000);+ await clickTestId('search-tab-routing');+ await clickTestId('search-role-search-edit');+ await waitForTestId('search-role-search-add-brave', 10_000);});});diff --git a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts b/app/test/playwright/specs/harness-cron-prompt-flow.spec.tsindex 09d142970b..76ef644634 100644--- a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts+++ b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts@@ -136,11 +136,11 @@ test.describe('Harness - Cron prompt-flow', () => {skill: 'scheduling',tool: 'cron',args: {- action: 'add',- name: 'morning_reminder',- schedule: { kind: 'cron', expr: '0 9 * * *' },- prompt: 'morning reminder',- enabled: true,+ action: 'add',+ name: 'morning_reminder',+ schedule: { kind: 'cron', expr: '0 9 * * *' },+ prompt: 'morning reminder',+ enabled: true,},}),},@@ -195,9 +195,9 @@ test.describe('Harness - Cron prompt-flow', () => {skill: 'scheduling',tool: 'cron',args: {- action: 'update',- job_id: 'morning_reminder_update_test',- patch: { schedule: { kind: 'cron', expr: '0 8 * * *' } },+ action: 'update',+ job_id: 'morning_reminder_update_test',+ patch: { schedule: { kind: 'cron', expr: '0 8 * * *' } },},}),},@@ -227,10 +227,7 @@ test.describe('Harness - Cron prompt-flow', () => {arguments: JSON.stringify({skill: 'scheduling',tool: 'cron',- args: {- action: 'remove',- job_id: 'morning_reminder_delete_test',- },+ args: { action: 'remove', job_id: 'morning_reminder_delete_test' },}),},],diff --git a/app/test/playwright/specs/settings-navigation-panels.spec.ts b/app/test/playwright/specs/settings-navigation-panels.spec.tsindex bcbf73513c..2bab8badce 100644--- a/app/test/playwright/specs/settings-navigation-panels.spec.ts+++ b/app/test/playwright/specs/settings-navigation-panels.spec.ts@@ -68,15 +68,11 @@ const PANELS = [marker: null,text: 'View approval history',},- // Sandbox is a desktop-only panel: in the web lane its body is the- // desktop-only notice, not the Docker fields. Asserting what this build- // actually renders, rather than what the Tauri build would.{id: 'sandbox-settings',route: 'sandbox-settings',heading: 'Sandbox execution',- marker: null,- text: 'only available in the desktop app',+ marker: 'sandbox-status',},{ id: 'about', route: 'about', heading: 'About', marker: 'github-star-cta' },] as const;diff --git a/crates/openhuman-core/src/tools/toolpacks/README.md b/crates/openhuman-core/src/tools/toolpacks/README.mdindex d4058bba36..3c6fd34047 100644--- a/crates/openhuman-core/src/tools/toolpacks/README.md+++ b/crates/openhuman-core/src/tools/toolpacks/README.md@@ -120,7 +120,7 @@ its schemas.Running an installed skill is not a pack concern: the orchestrator uses itsown `run_workflow`. The install hand-off `setup_skills` (into `skill_setup`)stays unpacked on the orchestrator's belt-(`DELIBERATELY_UNPACKED_HANDOFFS`).+(`DELIBERATELY_UNPACKED_DIRECT_TOOLS`).## Called bydiff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rsindex 669bb483a7..aa9a643ce5 100644--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@ -23,8 +23,6 @@ pub const PACKS: &[ToolPack] = &[tools: &["build_workflow","discover_workflows",- "run_workflow",- "await_workflow","describe_workflow","list_workflows","list_workflow_runs",@@ -147,7 +145,7 @@ pub const PACKS: &[ToolPack] = &[id: "skills",// The install hand-off (`setup_skills`) is not a member: it is the// orchestrator's direct route into this family. See- // `DELIBERATELY_UNPACKED_HANDOFFS`. Running an installed skill is the+ // `DELIBERATELY_UNPACKED_DIRECT_TOOLS`. Running an installed skill is the// orchestrator's own `run_workflow`.summary: "Skills: search installed, browse and install from registries, read resources.",tools: &[@@ -427,16 +425,15 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &["spawn_parallel_agents",];-/// The skill hand-offs are deliberately not packed (#6302).+/// Direct tool routes are deliberately not packed (#6302).///-/// `setup_skills` and `run_skill` are the orchestrator's route into the-/// skills family. Packed, they sat in the same listing as the raw-/// `skill_registry_*` tools, one `use_skill` round trip+/// `setup_skills` is the orchestrator's route into skill installation, and+/// `run_workflow` / `await_workflow` are its route into running installed+/// skills. Packed, those routes sat one `use_skill` round trip/// away, and a live account showed the cost: across 11 turns the orchestrator/// called the raw tools itself, guessed at tool names, and never handed off.-/// Handing off is the most common thing it does with these families, so the-/// `collapsed_delegation.rs` argument applies: frequency of use decides, and-/// delegation should not pay a round trip.+/// These are direct tools on the orchestrator's belt, so users do not pay a+/// discovery round trip to reach the common path.////// With a hand-off on the belt, `ops::closed_by_direct_handoff` closes the/// owning pack's raw tools to the caller, so the hand-off is its only route.@@ -445,7 +442,8 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[/// token-cost decision, and the same closing rule takes effect for any of them/// as soon as it is unpacked and listed here.#[cfg(test)]-pub(crate) const DELIBERATELY_UNPACKED_HANDOFFS: &[&str] = &["setup_skills"];+pub(crate) const DELIBERATELY_UNPACKED_DIRECT_TOOLS: &[&str] =+ &["setup_skills", "run_workflow", "await_workflow"];pub fn pack(id: &str) -> Option<&'static ToolPack> {PACKS.iter().find(|p| p.id == id)diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rsindex da1e7fe1d0..7dcd6e2159 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs@@ -311,12 +311,12 @@ fn the_workflows_pack_is_still_owned_by_the_flow_agents() {);}-// ── #6302: the MCP and skill hand-offs, and the packs they close ───────────+// ── #6302: direct routes and the packs they close ──────────────────────────-/// The four hand-offs stay direct tools. See `DELIBERATELY_UNPACKED_HANDOFFS`.+/// These named routes stay direct tools. See `DELIBERATELY_UNPACKED_DIRECT_TOOLS`.#[test]-fn the_mcp_and_skill_hand_offs_are_never_packed() {- for name in registry::DELIBERATELY_UNPACKED_HANDOFFS {+fn deliberate_direct_routes_are_never_packed() {+ for name in registry::DELIBERATELY_UNPACKED_DIRECT_TOOLS {assert!(registry::pack_for_tool(name).is_none(),"`{name}` is the orchestrator's route into its family and must stay a direct tool"diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 6e5669340f..4cef7b494a 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -757,6 +757,20 @@ async fn boot_stack() -> Stack {}}+/// Approval is part of the opt-in autonomy policy. These tests exercise that+/// path, so enable it through the same live RPC used by Settings before sending+/// a turn; the product default intentionally leaves the gate inert.+async fn enable_autonomy_for_approval_test(stack: &Stack) {+ let response = post_json_rpc(+ &stack.rpc_base,+ 4999,+ "openhuman.config_update_autonomy_settings",+ json!({ "enabled": true }),+ )+ .await;+ assert_no_jsonrpc_error(&response, "enable autonomy for approval test");+}+async fn send_web_chat(rpc_base: &str,id: i64,@@ -1476,6 +1490,7 @@ async fn approval_gate_approve_flow_inner() {text_completion("Done. File written: APPROVED_WRITE_CANARY"),]);let stack = boot_stack().await;+ enable_autonomy_for_approval_test(&stack).await;// Pre-create the file so file_write sees it as an existing file and// external_effect_with_args returns true → approval gate intercepts.@@ -1582,6 +1597,7 @@ async fn approval_gate_deny_flow_inner() {text_completion("Understood — the write was denied. DENIAL_ACK_CANARY"),]);let stack = boot_stack().await;+ enable_autonomy_for_approval_test(&stack).await;// Pre-create the file so file_write sees it as an existing file.let home = stack._tmp.path().to_path_buf();@@ -1671,6 +1687,7 @@ async fn approval_gate_timeout_inner() {text_completion("The write timed out awaiting approval. TIMEOUT_ACK_CANARY"),]);let stack = boot_stack().await;+ enable_autonomy_for_approval_test(&stack).await;// Pre-create so file_write's external_effect_with_args returns true.let home = stack._tmp.path().to_path_buf();