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): format ui polish spec assertions
Steven Enamakeld6f55df271a6
diff --git a/app/test/e2e/specs/ui-polish.browser.mjs b/app/test/e2e/specs/ui-polish.browser.mjsindex bbd88263c6..3cf470d2f6 100644--- a/app/test/e2e/specs/ui-polish.browser.mjs+++ b/app/test/e2e/specs/ui-polish.browser.mjs@@ -24,8 +24,13 @@ export default async function uiPolish({ page, mock, screenshot, log }) {);});await page.waitForFunction(() => {- const state=window.__OPENHUMAN_STORE__.getState().thread;- return state.selectedThreadId && !state.isLoadingThreads && !state.isLoadingMessages && location.hash.endsWith(state.selectedThreadId);+ const state = window.__OPENHUMAN_STORE__.getState().thread;+ return (+ state.selectedThreadId &&+ !state.isLoadingThreads &&+ !state.isLoadingMessages &&+ location.hash.endsWith(state.selectedThreadId)+ );});mock.set('llmForcedResponses',@@ -72,7 +77,7 @@ export default async function uiPolish({ page, mock, screenshot, log }) {await page.waitForFunction(() => document.querySelector('[data-testid="todo-checklist"]')?.dataset.state === 'done');- await ui.testId('sidebar-nav-separator').waitFor({state: 'visible'});+ await ui.testId('sidebar-nav-separator').waitFor({ state: 'visible' });assert.equal(await ui.slot('aui_thread-list-search').count(), 0);const geometry = await page.evaluate(() => {const card = document.querySelector('[data-testid="todo-checklist"]');diff --git a/scripts/debug/web-ui.mjs b/scripts/debug/web-ui.mjsindex 0691b747c4..c120012029 100644--- a/scripts/debug/web-ui.mjs+++ b/scripts/debug/web-ui.mjs@@ -76,7 +76,15 @@ process.on("SIGTERM", () => void shutdown(143));function startChild(name, command, args, env, cwd = repo) {const out = fs.openSync(path.join(logDir, `${name}.log`), "a");- const child = spawn(command, args, {+ // Debug CLI futures can exceed macOS's 8 MiB main-thread stack. Give the+ // isolated test core the same headroom as the desktop runtime's workers.+ // Keep paths/arguments as positional parameters, never interpolated shell code.+ const largeStack = name === "core" && process.platform === "darwin";+ const launchCommand = largeStack ? "/bin/sh" : command;+ const launchArgs = largeStack+ ? ["-c", 'ulimit -s 65520 || exit 1; exec "$@"', "debug-web-core", command, ...args]+ : args;+ const child = spawn(launchCommand, launchArgs, {cwd,env: { ...process.env, ...env },stdio: ["ignore", out, out],