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(debug): improve queued image attachment roundtrip test
Steven Enamakelab2ab394dc33
diff --git a/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs b/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjsindex 236fb37547..ada86b3da8 100644--- a/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs+++ b/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs@@ -130,7 +130,14 @@ export default async function queuedImageAttachmentRoundtrip({if (!threadId) throw new Error("new chat thread was not selected");await composer.fill("Hold this turn while I queue an image.");- await page.getByTestId("send-message-button").click();+ await page.waitForTimeout(250);+ const firstSend = page.getByTestId("send-message-button");+ if (!(await firstSend.count())) {+ const value = await composer.inputValue().catch(() => "<not an input>");+ await page.screenshot({ path: join(logDir, "queued-first-send-missing.png") });+ throw new Error(`first send button missing after fill (draft=${JSON.stringify(value)})`);+ }+ await firstSend.click();await waitUntil(() =>mock