Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Chief answers for the person: limit the no-resume line to this call

Doğukaan Kılıçarslan9dd4f978017b
diff --git a/server/host/teammate-prompts.ts b/server/host/teammate-prompts.ts
index 434f23df51..70eadb868a 100644
--- a/server/host/teammate-prompts.ts
+++ b/server/host/teammate-prompts.ts
@@ -31,7 +31,7 @@ export interface TeammatePromptDeps {
/** What a coordinate_bots call tells the bot to do next. */
export function coordinateResultMessage(reply: "none" | "poll" | "resume", answeredOnly: boolean): string {
if (reply === "none") return "Sent one way. Nothing comes back and nothing resumes you; continue your turn.";
- if (answeredOnly) return "Answered for the person. Nothing comes back and nothing resumes you; continue your turn and tell the person what you answered.";
+ if (answeredOnly) return "Answered for the person. Nothing from this call comes back or resumes you; continue your turn and tell the person what you answered.";
return reply === "poll"
? "Handed to the coordinator. Read each result with assignment_status (id: a receipt's requestId, or rootId for the whole call), long-polling with wait_ms."
: "End your turn after sending all work. These actual teammates will reply and resume you automatically. Do not poll or wait.";
diff --git a/server/teammate-follow-ups.e2e.test.ts b/server/teammate-follow-ups.e2e.test.ts
index 1fc2b50a98..58c80139ec 100644
--- a/server/teammate-follow-ups.e2e.test.ts
+++ b/server/teammate-follow-ups.e2e.test.ts
@@ -261,7 +261,7 @@ it("P1 lets Clive, as Mira's Chief, answer for the person the question she asks
expect(f.given("C-ANSWER")).toContain(PERSON_QUESTION);
const [sent] = f.replies("C-ANSWER");
expect(sent.receipts).toEqual([expect.objectContaining({ outcome: "injected", threadId: chat, detail: expect.stringContaining(`answered its question "${PERSON_QUESTION}" for the person`) })]);
- expect(sent.message, "an answer alone hands no work out, so Clive continues and tells the person").toContain("Answered for the person. Nothing comes back and nothing resumes you");
+ expect(sent.message, "an answer alone hands no work out, so Clive continues and tells the person").toContain("Answered for the person. Nothing from this call comes back or resumes you");
await expect.poll(async () => (await f.messages(chat)).some((message: any) => message.role === "bot" && String(message.text).startsWith("P1-RESULT")), { timeout: 30_000 }).toBe(true);
const result = (await f.messages(chat)).find((message: any) => String(message.text).startsWith("P1-RESULT")).text as string;
expect(result).toContain("@Clive answered for the person");