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: address CI review feedback
Steven Enamakel019133499713
diff --git a/app/test/playwright/specs/chat-management-functional.spec.ts b/app/test/playwright/specs/chat-management-functional.spec.tsindex 568a5b2862..213867ce8d 100644--- a/app/test/playwright/specs/chat-management-functional.spec.ts+++ b/app/test/playwright/specs/chat-management-functional.spec.ts@@ -64,6 +64,12 @@ async function openChat(page: Page, userId: string): Promise<void> {await expect(page.getByTestId('chat-message-input')).toBeVisible();}+async function startFreshConversation(page: Page): Promise<void> {+ await page.getByTestId('new-thread-button').click({ force: true });+ await expect.poll(() => selectedThreadId(page)).not.toBeNull();+ await expect(page.locator('[data-role="user"], [data-testid="agent-message"]')).toHaveCount(0);+}+test.describe('Chat management functional coverage', () => {test('attachment preview, remove, and document send path remain interactive', async ({page,@@ -74,7 +80,7 @@ test.describe('Chat management functional coverage', () => {llmStreamChunkDelayMs: '5',});await openChat(page, 'pw-chat-attachments');- await expect.poll(() => selectedThreadId(page)).not.toBeNull();+ await startFreshConversation(page);const fileInput = page.locator('input[type="file"]');await expect(fileInput).toHaveCount(1);@@ -149,7 +155,7 @@ test.describe('Chat management functional coverage', () => {test('thread rename and delete remain usable from the conversation UI', async ({ page }) => {await resetMock();await openChat(page, 'pw-chat-rename-delete');- await expect.poll(() => selectedThreadId(page)).not.toBeNull();+ await startFreshConversation(page);const threadId = await selectedThreadId(page);expect(threadId).not.toBeNull();const title = `Playwright thread ${Date.now()}`;diff --git a/crates/openhuman-core/src/core/README.md b/crates/openhuman-core/src/core/README.mdindex ab5198bf9d..013f1e2c15 100644--- a/crates/openhuman-core/src/core/README.md+++ b/crates/openhuman-core/src/core/README.md@@ -190,7 +190,7 @@ and say so.`runtime/` is the embeddable composition API: `CoreBuilder` builds a`CoreRuntime` in two phases (initialization, then serve); see[runtime/README.md](runtime/README.md) for the full builder reference.-`AGENT_WORKER_STACK_BYTES` (64 MiB) and `MAX_BLOCKING_THREADS` (64) live in+`AGENT_WORKER_STACK_BYTES` (20 MiB) and `MAX_BLOCKING_THREADS` (64) live in`runtime/mod.rs`: a single agent turn is a very large async state machine,and delegating to a sub-agent nests another one, which overflows tokio'sdefault 2 MiB worker stack; every multi-thread runtime that can host a turndiff --git a/crates/openhuman-core/src/core/runtime/README.md b/crates/openhuman-core/src/core/runtime/README.mdindex f18839892e..78ae7d5136 100644--- a/crates/openhuman-core/src/core/runtime/README.md+++ b/crates/openhuman-core/src/core/runtime/README.md@@ -139,12 +139,12 @@ existing single-tenant call sites keep working unmodified.`runtime/mod.rs` declares two constants every multi-thread runtime that mayhost an agent turn must set:-- `AGENT_WORKER_STACK_BYTES` (64 MiB): a single agent turn is a very large+- `AGENT_WORKER_STACK_BYTES` (20 MiB): a single agent turn is a very largeasync state machine (system prompt + hundreds of tool specs + the nestedprovider/tool loop), and delegating to a sub-agent nests another one. Thatoverflows tokio's default 2 MiB worker stack and aborts the process.- `MAX_BLOCKING_THREADS` (64): tokio defaults this to 512, which combined- with the raised stack size could pin up to `64 × 64 MiB` of idle stack.+ with the raised stack size could pin up to `64 × 20 MiB` of idle stack.`spawn_blocking` on these runtimes backs SQLite, filesystem grep/glob,document parsing, and URL guarding: bounded, bursty concurrency, so 64leaves headroom while capping the idle footprint.diff --git a/crates/openhuman-core/src/core/runtime/mod.rs b/crates/openhuman-core/src/core/runtime/mod.rsindex 6847ac3b94..84225c920b 100644--- a/crates/openhuman-core/src/core/runtime/mod.rs+++ b/crates/openhuman-core/src/core/runtime/mod.rs@@ -23,7 +23,7 @@//! `cli.rs`, …) shares the same exposure. Centralising the value keeps them//! in sync; downstream call sites should set `.thread_stack_size(AGENT_WORKER_STACK_BYTES)`//! on every multi-thread runtime that may host an agent turn.-pub const AGENT_WORKER_STACK_BYTES: usize = 64 * 1024 * 1024;+pub const AGENT_WORKER_STACK_BYTES: usize = 20 * 1024 * 1024;/// Upper bound on tokio's blocking-thread pool for the long-lived multi-thread/// runtimes tuned with [`AGENT_WORKER_STACK_BYTES`] (the desktop Tauri host anddiff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.jsonindex 25211fa538..c9c66e7353 100644--- a/scripts/ci/agent-runtime-boundary-baseline.json+++ b/scripts/ci/agent-runtime-boundary-baseline.json@@ -422,7 +422,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/session_host/builder/factory.rs",- "line": 994,+ "line": 990,"text": "let root = crate::agent::turn_workspace::current()?;","occurrence": 1},diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex f680d5f58e..f7ac17d052 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -43,7 +43,7 @@ const LEGACY_LIMIT_ENTRIES = [// provider, security, memory, tool and prompt policy. Generic session// state moved to tinyagents-runtime; this remaining composition is split in// a follow-up without reintroducing an old harness/session exception.- ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 1008],+ ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 1004],["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1309],["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1152],["crates/openhuman-core/src/tools/ops.rs", 1209],