Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(e2e): reformat chat history spec polling block

Steven Enamakeledf3636b1328
diff --git a/app/test/e2e/specs/chat-conversation-history.spec.ts b/app/test/e2e/specs/chat-conversation-history.spec.ts
index 63311303bc..f69f720a8f 100644
--- a/app/test/e2e/specs/chat-conversation-history.spec.ts
+++ b/app/test/e2e/specs/chat-conversation-history.spec.ts
@@ -248,9 +248,10 @@ describe('Chat conversation history', () => {
let messageCount = 0;
const deadline = Date.now() + 15_000;
while (Date.now() < deadline) {
- const read = await callOpenhumanRpc<{
- data?: { messages?: Array<{ content?: string }> };
- }>('openhuman.threads_messages_list', { thread_id: threadId });
+ const read = await callOpenhumanRpc<{ data?: { messages?: Array<{ content?: string }> } }>(
+ 'openhuman.threads_messages_list',
+ { thread_id: threadId }
+ );
if (read.ok) {
const messages = read.result?.data?.messages ?? [];
messageCount = messages.length;
@@ -259,7 +260,8 @@ describe('Chat conversation history', () => {
content.includes(FIRST_PROMPT) &&
content.includes(SECOND_PROMPT) &&
content.includes(CANARY_SECOND)
- ) break;
+ )
+ break;
}
await browser.pause(400);
}