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: tolerate empty-thread conversation reuse
Steven Enamakel1700cc449268
diff --git a/app/test/playwright/helpers/chat-drive.ts b/app/test/playwright/helpers/chat-drive.tsindex aeab733a9e..d1ac971033 100644--- a/app/test/playwright/helpers/chat-drive.ts+++ b/app/test/playwright/helpers/chat-drive.ts@@ -252,13 +252,16 @@ export async function sendTurn(/** Create a thread from the sidebar and return its id. */export async function startNewThread(page: Page): Promise<string> {- const previous = await selectedThreadId(page);const sidebar = page.getByTestId('new-thread-sidebar-button');if (await sidebar.isVisible().catch(() => false)) {await sidebar.click({ force: true });} else {await page.getByTestId('new-thread-button').click({ force: true });}- await expect.poll(async () => selectedThreadId(page), { timeout: 20_000 }).not.toBe(previous);+ // The current shell reuses an empty selected thread when the user presses+ // New Conversation; only a thread that already has content is replaced.+ // Treat the resulting selected id as authoritative instead of requiring a+ // change that the product intentionally does not make for the empty case.+ await expect.poll(async () => selectedThreadId(page), { timeout: 20_000 }).toBeTruthy();return waitForSelectedThreadId(page);}