Skip to content

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

fix(chat): tie an opened exchange to its own hand-off, not a time window

luishron12310b529e1428c
diff --git a/src/components/BotExchangeLine.dom.test.ts b/src/components/BotExchangeLine.dom.test.ts
index 6cc198766f..3766482469 100644
--- a/src/components/BotExchangeLine.dom.test.ts
+++ b/src/components/BotExchangeLine.dom.test.ts
@@ -142,11 +142,21 @@ describe("the bot exchange line", () => {
});
describe("an opened exchange", () => {
+ // The server writes a hand-off's request into the helper's thread as Pepper's line, tagged with the assignment.
+ const request = (id: string, text: string, at: number, parentId: string, exchange: string): Message =>
+ ({ id, role: "bot", kind: "text", text, at, parentId, from: { botId: "pepper", name: "Pepper", color: "blue" }, roomRequest: { id: exchange, phase: "request" } } as Message);
const line1: Message = { id: "old", role: "bot", kind: "text", text: "An earlier request's answer", at: 8_000, parentId: null };
- const ask: Message = { id: "ask", role: "user", kind: "text", text: "Count the rows", at: 9_500, parentId: "old", peerAsk: { botId: "pepper", name: "Pepper" } };
+ const ask = request("ask", "Count the rows", 10_100, "old", "h1");
const reply: Message = { id: "reply", role: "bot", kind: "text", text: "There are 12 rows", at: 20_000, parentId: "ask" };
- const later: Message = { id: "next", role: "user", kind: "text", text: "Now the totals", at: 31_000, parentId: "reply", peerAsk: { botId: "pepper", name: "Pepper" } };
+ const later = request("next", "Now the totals", 31_000, "reply", "h0");
const shown = () => Array.from(host.querySelectorAll("[data-side]")).map((row) => row.textContent);
+ const note = () => host.querySelector("[data-exchange-note]")?.textContent;
+ async function openOne(id: string) {
+ render();
+ await settle();
+ flushSync(() => host.querySelector<HTMLButtonElement>(`[data-bot-exchange="${id}"]`)!.click());
+ await settle();
+ }
it("shows only that exchange's lines of the helper's thread", async () => {
current = job([root(), handoff({ status: "completed", finishedAt: 30_000 })]);
@@ -197,4 +207,41 @@ describe("an opened exchange", () => {
expect(host.querySelector("[role=alert]")!.textContent).toBe(text);
expect(stopButton()!.disabled).toBe(false);
});
+
+ it("keeps two hand-offs to the same thread apart: the one waiting its turn shows none of the running one's lines", async () => {
+ // B was handed out 300 ms after A's latest line: a window by time alone would take that line as B's.
+ const queued = handoff({ id: "h2", status: "queued", createdAt: 20_300 });
+ current = job([root(), handoff(), queued]);
+ fixture.load.mockResolvedValue({ messages: [line1, ask, reply], activeLeafId: "reply" });
+ await openOne("h2");
+ expect(shown()).toEqual([]);
+ expect(note()).toBe("Engineer hasn't started on this yet. It's waiting its turn.");
+ expect(status()!.textContent).toContain("Pepper is asking Engineer…");
+ expect(stopButton()).not.toBeNull();
+ flushSync(() => host.querySelector<HTMLButtonElement>("[data-exchange-back]")!.click());
+ flushSync(() => host.querySelector<HTMLButtonElement>('[data-bot-exchange="h1"]')!.click());
+ await settle();
+ expect(shown()).toEqual(["PepperCount the rows", "EngineerThere are 12 rows"]);
+ });
+
+ it("gives each of two hand-offs that ran in turn in the same thread only its own lines", async () => {
+ const askB = request("ask-b", "Now the totals", 20_400, "reply", "h2");
+ const replyB: Message = { id: "reply-b", role: "bot", kind: "text", text: "The totals add up", at: 25_000, parentId: "ask-b" };
+ current = job([root(), handoff({ status: "completed", finishedAt: 20_100 }), handoff({ id: "h2", createdAt: 20_300 })]);
+ fixture.load.mockResolvedValue({ messages: [line1, ask, reply, askB, replyB], activeLeafId: "reply-b" });
+ await openOne("h2");
+ expect(shown()).toEqual(["PepperNow the totals", "EngineerThe totals add up"]);
+ flushSync(() => host.querySelector<HTMLButtonElement>("[data-exchange-back]")!.click());
+ flushSync(() => host.querySelector<HTMLButtonElement>('[data-bot-exchange="h1"]')!.click());
+ await settle();
+ expect(shown()).toEqual(["PepperCount the rows", "EngineerThere are 12 rows"]);
+ });
+
+ it("says so, instead of guessing, when the hand-off's request line is not in the thread", async () => {
+ current = job([root(), handoff({ status: "completed", finishedAt: 30_000 })]);
+ fixture.load.mockResolvedValue({ messages: [line1, reply], activeLeafId: "reply" });
+ await openExchange();
+ expect(shown()).toEqual([]);
+ expect(note()).toBe("It isn't clear which lines of Engineer's conversation belong to this exchange, so none are shown.");
+ });
});
diff --git a/src/components/BotExchangeLine.tsx b/src/components/BotExchangeLine.tsx
index 1f6af438b2..e7837ad1d3 100644
--- a/src/components/BotExchangeLine.tsx
+++ b/src/components/BotExchangeLine.tsx
@@ -4,7 +4,7 @@ import { ArrowLeftRight, Square } from "lucide-react";
import { BotAvatar, InitialsAvatar } from "./Avatar";
import { ELEVATED_FLOAT, ELEVATED_TINT } from "./elevated";
import { OpenExchangeContext } from "./HandoffExchange";
-import { exchangeEnded, exchangeWindow, type BotExchangeEntry } from "@/lib/bot-exchanges";
+import { exchangeEnded, type BotExchangeEntry } from "@/lib/bot-exchanges";
import { cn } from "@/lib/cn";
import { t } from "@/lib/i18n";
import { BotExchangesContext } from "@/lib/use-bot-exchanges";
@@ -49,7 +49,7 @@ export function BotExchangeLine() {
aria-label={`${label} · ${state}`}
title={`${entry.asker.name} ⇄ ${entry.helper.name} · ${state}`}
onClick={() => open({
- id: entry.id, threadId: entry.threadId, window: exchangeWindow(entry),
+ id: entry.id, threadId: entry.threadId,
asker: { botId: entry.asker.botId ?? "", name: entry.asker.name, color: asker?.color },
helper: { botId: entry.helper.botId, name: entry.helper.name, color: helper?.color },
})}
diff --git a/src/components/HandoffExchange.tsx b/src/components/HandoffExchange.tsx
index 75dd61b258..dd9f92de6e 100644
--- a/src/components/HandoffExchange.tsx
+++ b/src/components/HandoffExchange.tsx
@@ -10,7 +10,7 @@ import { ChatBackdrop, GlassBar, GlassScrollFrame } from "./GlassScrollFrame";
import { ELEVATED_FLOAT, ELEVATED_HOVER, ELEVATED_TINT } from "./elevated";
import { joinedCorners, SIMPLE_BOT_BUBBLE, SIMPLE_BUBBLE_MAX, SIMPLE_STACKED, SIMPLE_USER_BUBBLE } from "./chat-bubble";
import { useCaptionChrome } from "@/components/DesktopCapabilities";
-import { exchangeWindow, inWindow, type ExchangeWindow } from "@/lib/bot-exchanges";
+import { exchangeLines } from "@/lib/bot-exchanges";
import { cn } from "@/lib/cn";
import { conversationRows, handoffTranscript, LOADING_TRANSCRIPT, type ConversationRow, type ConversationSpeaker } from "@/lib/handoff-conversation";
import { intlLocale, t } from "@/lib/i18n";
@@ -18,6 +18,7 @@ import { listenLiveFrames } from "@/lib/live-events";
import { localDay } from "@/lib/transcript-derivations";
import { BotExchangesContext, latestPersonTurn, useBotExchanges } from "@/lib/use-bot-exchanges";
import { loadFullThread } from "@/state/message-history";
+import { visibleMessages } from "@/state/snapshot-navigation";
import type { Bot, Message } from "@/state/store";
import { useStoreSelector } from "@/state/store-select";
@@ -28,9 +29,8 @@ export interface HandoffExchange {
helper: Named;
/** The helper's work thread the hand-off went to. */
threadId: string;
- /** The hand-off, when the view is for one exchange: its lines are those in `window`, and it can be stopped. */
+ /** The hand-off, when the view is for one exchange: only its own lines show, and it can be stopped. */
id?: string;
- window?: ExchangeWindow;
}
/** Opens a hand-off's exchange in place of the chat it is in. Null where no chat column hosts one (a room, the side
@@ -55,7 +55,7 @@ export function HandoffExchangeHost({ bot, children }: { bot: Bot; children: Rea
);
}
-export function HandoffExchangeView({ exchange: { asker, helper, threadId, id, window: opened }, onBack }: { exchange: HandoffExchange; onBack: () => void }) {
+export function HandoffExchangeView({ exchange: { asker, helper, threadId, id }, onBack }: { exchange: HandoffExchange; onBack: () => void }) {
const [transcript, dispatch] = useReducer(handoffTranscript, LOADING_TRANSCRIPT);
const [load, setLoad] = useState(0);
const reload = () => {
@@ -86,10 +86,14 @@ export function HandoffExchangeView({ exchange: { asker, helper, threadId, id, w
}), [threadId]);
const entry = use(BotExchangesContext).exchanges.find((candidate) => candidate.id === id);
- const slice = entry ? exchangeWindow(entry) : opened;
+ const lines = useMemo(() => id === undefined ? null
+ : exchangeLines(visibleMessages(transcript), { id, state: entry?.state ?? "working", finishedAt: entry?.finishedAt }),
+ [transcript, id, entry?.state, entry?.finishedAt]);
const you = t("chat.you");
- const rows = useMemo(() => conversationRows(transcript, asker, helper, you).filter((row) => !slice || inWindow(row.at, slice)),
- [transcript, asker.botId, asker.name, asker.color, helper.botId, helper.name, helper.color, you, slice?.from, slice?.to]);
+ const rows = useMemo(() => {
+ const all = conversationRows(transcript, asker, helper, you);
+ return !lines ? all : lines.kind === "lines" ? all.filter((row) => lines.ids.has(row.id)) : [];
+ }, [transcript, asker.botId, asker.name, asker.color, helper.botId, helper.name, helper.color, you, lines]);
// The newest line stays in sight as lines come in, unless the person scrolled up to read.
const listRef = useRef<HTMLDivElement>(null);
const atEnd = useRef(true);
@@ -185,9 +189,12 @@ export function HandoffExchangeView({ exchange: { asker, helper, threadId, id, w
);
})}
{!rows.length && (
- <p className="py-6 text-center text-[13px] text-ink-secondary">
+ <p data-exchange-note className="py-6 text-center text-[13px] text-ink-secondary">
{transcript.loading ? t("chat.handoffExchange.loading")
- : transcript.failed ? t("chat.handoffExchange.failed") : t("chat.handoffExchange.empty")}
+ : transcript.failed ? t("chat.handoffExchange.failed")
+ : lines?.kind === "waiting" ? t("chat.botExchange.waiting", { helper: helper.name })
+ : lines?.kind === "unknown" ? t("chat.botExchange.unknown", { helper: helper.name })
+ : t("chat.handoffExchange.empty")}
</p>
)}
{transcript.failed && (
diff --git a/src/lib/bot-exchanges.test.ts b/src/lib/bot-exchanges.test.ts
index 98e5eb88b2..a187369b1a 100644
--- a/src/lib/bot-exchanges.test.ts
+++ b/src/lib/bot-exchanges.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
-import { exchangesOf, exchangeState, exchangeWindow, inWindow, type JobNodeRead, type JobRead } from "./bot-exchanges";
+import { exchangeLines, exchangesOf, exchangeState, type JobNodeRead, type JobRead } from "./bot-exchanges";
const node = (id: string, extra: Partial<JobNodeRead> = {}): JobNodeRead => ({
id, botId: "maestro", botName: "Maestro", threadId: "chat", status: "running", reply: "required", createdAt: 1_000, ...extra,
@@ -57,12 +57,35 @@ describe("the exchanges in a job", () => {
});
describe("an exchange's lines in the helper's thread", () => {
- it("start just before the hand-off and end when it ended", () => {
- const window = exchangeWindow({ createdAt: 10_000, finishedAt: 20_000 });
- expect([8_999, 9_000, 15_000, 20_000, 20_001].map((at) => inWindow(at, window))).toEqual([false, true, true, true, false]);
+ const asked = (id: string, at: number, exchange: string) => ({ id, role: "bot", at, roomRequest: { id: exchange, phase: "request" as const } });
+ const said = (id: string, at: number, extra = {}) => ({ id, role: "bot", at, ...extra });
+ // A was asked and answered; B, asked 300 ms after A's answer, ran next in the same thread.
+ const thread = [said("old", 1_000), asked("a-ask", 2_000, "A"), said("a-reply", 9_700), asked("b-ask", 10_200, "B"), said("b-reply", 15_000)];
+ const ids = (lines: ReturnType<typeof exchangeLines>) => lines.kind === "lines" ? [...lines.ids] : lines.kind;
+
+ it("run from the hand-off's own request line to the next turn's start, whatever the clocks say", () => {
+ expect(ids(exchangeLines(thread, { id: "A", state: "answered", finishedAt: 9_800 }))).toEqual(["a-ask", "a-reply"]);
+ expect(ids(exchangeLines(thread, { id: "B", state: "working" }))).toEqual(["b-ask", "b-reply"]);
+ });
+
+ it("are none while the hand-off waits its turn behind another in the same thread", () => {
+ const running = thread.slice(0, 3);
+ expect(ids(exchangeLines(running, { id: "B", state: "asking" }))).toBe("waiting");
+ expect(ids(exchangeLines(running, { id: "A", state: "working" }))).toEqual(["a-ask", "a-reply"]);
+ });
+
+ it("keep a message handed into the running turn, and stop at one that starts another", () => {
+ const steered = { id: "aside", role: "user", at: 3_000, steered: true };
+ const person = { id: "person", role: "user", at: 9_900 };
+ expect(ids(exchangeLines([...thread.slice(0, 2), steered, said("a-reply", 9_700), person, said("p-reply", 9_950)], { id: "A", state: "working" })))
+ .toEqual(["a-ask", "aside", "a-reply"]);
+ });
+
+ it("end when the hand-off ended", () => {
+ expect(ids(exchangeLines([...thread.slice(0, 3), said("digest", 9_900)], { id: "A", state: "answered", finishedAt: 9_800 }))).toEqual(["a-ask", "a-reply"]);
});
- it("run on while it is open", () => {
- expect(inWindow(90_000, exchangeWindow({ createdAt: 10_000 }))).toBe(true);
+ it("are not guessed when the request line is not in the thread", () => {
+ expect(ids(exchangeLines(thread, { id: "C", state: "answered", finishedAt: 20_000 }))).toBe("unknown");
});
});
diff --git a/src/lib/bot-exchanges.ts b/src/lib/bot-exchanges.ts
index 85a30fbe04..85607615ab 100644
--- a/src/lib/bot-exchanges.ts
+++ b/src/lib/bot-exchanges.ts
@@ -79,14 +79,24 @@ export function exchangesOf(job: JobRead, teammate: string): BotExchangeEntry[]
return entries.sort((a, b) => Number(b.live) - Number(a.live) || a.createdAt - b.createdAt);
}
-/** The asker's request can be stamped a moment before the hand-off's record in the helper's thread. */
-const REQUEST_LEAD_MS = 1_000;
+/** A helper-thread line, as far as tying it to one hand-off goes. */
+type Line = { id: string; role: string; at: number; steered?: boolean; roomRequest?: { id: string; phase: "request" | "result" } };
-/** Where one exchange sits in the helper's thread, which can hold several. */
-export interface ExchangeWindow { from: number; to?: number }
+/** An exchange's lines in the helper's thread, which can hold several: `waiting`, its turn has not started, so no line
+ * is its own yet; `unknown`, its request line is not in the thread, so no line can be tied to it. */
+export type ExchangeLines = { kind: "lines"; ids: ReadonlySet<string> } | { kind: "waiting" } | { kind: "unknown" };
-export const exchangeWindow = (entry: Pick<BotExchangeEntry, "createdAt" | "finishedAt">): ExchangeWindow =>
- ({ from: entry.createdAt - REQUEST_LEAD_MS, ...(entry.finishedAt !== undefined ? { to: entry.finishedAt } : {}) });
-
-export const inWindow = (at: number, window: ExchangeWindow): boolean =>
- at >= window.from && (window.to === undefined || at <= window.to);
+/** The server writes one request line per hand-off when its turn starts (`roomRequest.id` is the assignment) and runs
+ * one turn per thread at a time, so the hand-off's lines run from that line to the next turn's start. A line handed
+ * into the running turn (`steered`) is part of it. */
+export function exchangeLines(path: readonly Line[], exchange: Pick<BotExchangeEntry, "id" | "state" | "finishedAt">): ExchangeLines {
+ const start = path.findIndex((line) => line.roomRequest?.phase === "request" && line.roomRequest.id === exchange.id);
+ if (start < 0) return exchange.state === "asking" ? { kind: "waiting" } : { kind: "unknown" };
+ const ids = new Set([path[start]!.id]);
+ for (const line of path.slice(start + 1)) {
+ if (line.roomRequest?.phase === "request" || (line.role === "user" && !line.steered)) break;
+ if (exchange.finishedAt !== undefined && line.at > exchange.finishedAt) break;
+ ids.add(line.id);
+ }
+ return { kind: "lines", ids };
+}
diff --git a/src/lib/use-bot-exchanges.ts b/src/lib/use-bot-exchanges.ts
index f271690152..d714055ed9 100644
--- a/src/lib/use-bot-exchanges.ts
+++ b/src/lib/use-bot-exchanges.ts
@@ -73,6 +73,7 @@ export function useBotExchanges(threadId: string | undefined, since: number | un
}
const pause = (ms: number, signal: AbortSignal) => new Promise<void>((resolve) => {
- const timer = setTimeout(resolve, ms);
- signal.addEventListener("abort", () => { clearTimeout(timer); resolve(); }, { once: true });
+ const stop = () => { clearTimeout(timer); resolve(); };
+ const timer = setTimeout(() => { signal.removeEventListener("abort", stop); resolve(); }, ms);
+ signal.addEventListener("abort", stop, { once: true });
});
diff --git a/src/locales/de.json b/src/locales/de.json
index 1081113531..dbf0716cba 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4237,6 +4237,8 @@
"chat.botExchange.notYours": "Nur die Person, die gefragt hat, kann das stoppen.",
"chat.botExchange.gone": "Dieser Austausch kann hier nicht gestoppt werden.",
"chat.botExchange.stopFailed": "Stoppen nicht möglich. Prüfe deine Verbindung und versuche es erneut.",
+ "chat.botExchange.waiting": "{helper} hat damit noch nicht angefangen. Es wartet, bis es an der Reihe ist.",
+ "chat.botExchange.unknown": "Es ist nicht klar, welche Nachrichten aus der Unterhaltung von {helper} zu diesem Austausch gehören, daher wird keine angezeigt.",
"keys.vps.servers.title": "Benannte Server",
"keys.vps.servers.hint": "Füge weitere Server mit Namen hinzu. Jeder Bot kann dann in seinen eigenen Computer-Einstellungen einen davon wählen; der Alias oben bleibt der Standard.",
"keys.vps.servers.name": "Servername",
diff --git a/src/locales/en.json b/src/locales/en.json
index 2b95b7193a..38d624003e 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -11694,6 +11694,8 @@
"chat.botExchange.notYours": "Only the person who asked can stop this.",
"chat.botExchange.gone": "This exchange can't be stopped from here.",
"chat.botExchange.stopFailed": "Couldn't stop it. Check that you're online and try again.",
+ "chat.botExchange.waiting": "{helper} hasn't started on this yet. It's waiting its turn.",
+ "chat.botExchange.unknown": "It isn't clear which lines of {helper}'s conversation belong to this exchange, so none are shown.",
"sidebar.threads.hidden": "Thread hidden",
"sidebar.threads.hide": "Hide {title}",
"sidebar.threads.hideShort": "Hide",
diff --git a/src/locales/es.json b/src/locales/es.json
index 89a2b77966..d6c5c11fc8 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -6586,5 +6586,7 @@
"chat.botExchange.stopping": "Deteniendo…",
"chat.botExchange.notYours": "Solo quien lo pidió puede detenerlo.",
"chat.botExchange.gone": "Este intercambio no se puede detener desde aquí.",
- "chat.botExchange.stopFailed": "No se pudo detener. Comprueba tu conexión e inténtalo de nuevo."
+ "chat.botExchange.stopFailed": "No se pudo detener. Comprueba tu conexión e inténtalo de nuevo.",
+ "chat.botExchange.waiting": "{helper} aún no ha empezado con esto. Está esperando su turno.",
+ "chat.botExchange.unknown": "No está claro qué mensajes de la conversación de {helper} pertenecen a este intercambio, así que no se muestra ninguno."
}
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 348e654e46..6095914701 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -3991,5 +3991,7 @@
"chat.botExchange.stopping": "Arrêt…",
"chat.botExchange.notYours": "Seule la personne qui a demandé peut l’arrêter.",
"chat.botExchange.gone": "Cet échange ne peut pas être arrêté d’ici.",
- "chat.botExchange.stopFailed": "Impossible d’arrêter. Vérifiez votre connexion et réessayez."
+ "chat.botExchange.stopFailed": "Impossible d’arrêter. Vérifiez votre connexion et réessayez.",
+ "chat.botExchange.waiting": "{helper} n’a pas encore commencé. Il attend son tour.",
+ "chat.botExchange.unknown": "Impossible de savoir quels messages de la conversation de {helper} appartiennent à cet échange : aucun n’est affiché."
}
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 654f8ed1e9..0bddb29d28 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -3843,5 +3843,7 @@
"chat.botExchange.stopping": "रोका जा रहा है…",
"chat.botExchange.notYours": "इसे सिर्फ़ पूछने वाला व्यक्ति रोक सकता है।",
"chat.botExchange.gone": "इस बातचीत को यहाँ से रोका नहीं जा सकता।",
- "chat.botExchange.stopFailed": "रोका नहीं जा सका। अपना कनेक्शन जाँचें और फिर से कोशिश करें।"
+ "chat.botExchange.stopFailed": "रोका नहीं जा सका। अपना कनेक्शन जाँचें और फिर से कोशिश करें।",
+ "chat.botExchange.waiting": "{helper} ने अभी यह शुरू नहीं किया है। अपनी बारी का इंतज़ार कर रहा है।",
+ "chat.botExchange.unknown": "यह साफ़ नहीं है कि {helper} की बातचीत के कौन-से संदेश इस आदान-प्रदान के हैं, इसलिए कोई नहीं दिखाया गया।"
}
diff --git a/src/locales/it.json b/src/locales/it.json
index 81cf6e9b3e..3dded0c699 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -11475,5 +11475,7 @@
"chat.botExchange.stopping": "Arresto…",
"chat.botExchange.notYours": "Solo chi l’ha chiesto può fermarlo.",
"chat.botExchange.gone": "Questo scambio non si può fermare da qui.",
- "chat.botExchange.stopFailed": "Impossibile fermarlo. Controlla la connessione e riprova."
+ "chat.botExchange.stopFailed": "Impossibile fermarlo. Controlla la connessione e riprova.",
+ "chat.botExchange.waiting": "{helper} non ha ancora iniziato. Sta aspettando il suo turno.",
+ "chat.botExchange.unknown": "Non è chiaro quali messaggi della conversazione di {helper} appartengano a questo scambio, quindi non ne viene mostrato nessuno."
}
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 5b96071d4d..02829f1a8f 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -8121,5 +8121,7 @@
"chat.botExchange.stopping": "停止しています…",
"chat.botExchange.notYours": "停止できるのは依頼した人だけです。",
"chat.botExchange.gone": "このやり取りはここからは停止できません。",
- "chat.botExchange.stopFailed": "停止できませんでした。接続を確認してもう一度お試しください。"
+ "chat.botExchange.stopFailed": "停止できませんでした。接続を確認してもう一度お試しください。",
+ "chat.botExchange.waiting": "{helper} はまだ着手していません。順番を待っています。",
+ "chat.botExchange.unknown": "{helper} の会話のどのメッセージがこのやり取りのものか判別できないため、表示していません。"
}
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 2f8b3f1bb2..462894f008 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -7811,5 +7811,7 @@
"chat.botExchange.stopping": "중지하는 중…",
"chat.botExchange.notYours": "요청한 사람만 중지할 수 있어요.",
"chat.botExchange.gone": "이 대화는 여기서 중지할 수 없어요.",
- "chat.botExchange.stopFailed": "중지하지 못했어요. 연결을 확인하고 다시 시도하세요."
+ "chat.botExchange.stopFailed": "중지하지 못했어요. 연결을 확인하고 다시 시도하세요.",
+ "chat.botExchange.waiting": "{helper}이(가) 아직 시작하지 않았어요. 차례를 기다리는 중이에요.",
+ "chat.botExchange.unknown": "{helper}의 대화 중 어떤 메시지가 이 교환에 속하는지 알 수 없어 아무것도 표시하지 않아요."
}
diff --git a/src/locales/pl.json b/src/locales/pl.json
index d2db188196..d592629f1e 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -7282,5 +7282,7 @@
"chat.botExchange.stopping": "Zatrzymywanie…",
"chat.botExchange.notYours": "Zatrzymać może tylko osoba, która prosiła.",
"chat.botExchange.gone": "Tej wymiany nie można zatrzymać stąd.",
- "chat.botExchange.stopFailed": "Nie udało się zatrzymać. Sprawdź połączenie i spróbuj ponownie."
+ "chat.botExchange.stopFailed": "Nie udało się zatrzymać. Sprawdź połączenie i spróbuj ponownie.",
+ "chat.botExchange.waiting": "{helper} jeszcze nie zaczął. Czeka na swoją kolej.",
+ "chat.botExchange.unknown": "Nie wiadomo, które wiadomości z rozmowy z {helper} należą do tej wymiany, więc żadna nie jest pokazana."
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index a1f6faeee8..88a98b9c8c 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -11694,6 +11694,8 @@
"chat.botExchange.notYours": "Só quem pediu pode parar isto.",
"chat.botExchange.gone": "Esta conversa não pode ser parada daqui.",
"chat.botExchange.stopFailed": "Não foi possível parar. Confira se você está on-line e tente novamente.",
+ "chat.botExchange.waiting": "{helper} ainda não começou isto. Está esperando a vez.",
+ "chat.botExchange.unknown": "Não dá para saber quais mensagens da conversa de {helper} são desta troca, por isso nenhuma aparece.",
"sidebar.threads.hidden": "Conversa oculta",
"sidebar.threads.hide": "Ocultar {title}",
"sidebar.threads.hideShort": "Ocultar",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 0f29f2c6ff..2033ee3d3f 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -7336,5 +7336,7 @@
"chat.botExchange.stopping": "Остановка…",
"chat.botExchange.notYours": "Остановить может только тот, кто просил.",
"chat.botExchange.gone": "Этот обмен нельзя остановить отсюда.",
- "chat.botExchange.stopFailed": "Не удалось остановить. Проверьте подключение и попробуйте снова."
+ "chat.botExchange.stopFailed": "Не удалось остановить. Проверьте подключение и попробуйте снова.",
+ "chat.botExchange.waiting": "{helper} ещё не начал. Ждёт своей очереди.",
+ "chat.botExchange.unknown": "Непонятно, какие сообщения из разговора с {helper} относятся к этому обмену, поэтому ни одно не показано."
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 577ad6ecbb..5d1bf6b128 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -6081,5 +6081,7 @@
"chat.botExchange.stopping": "Durduruluyor…",
"chat.botExchange.notYours": "Bunu yalnızca isteyen kişi durdurabilir.",
"chat.botExchange.gone": "Bu konuşma buradan durdurulamaz.",
- "chat.botExchange.stopFailed": "Durdurulamadı. Bağlantını kontrol edip tekrar dene."
+ "chat.botExchange.stopFailed": "Durdurulamadı. Bağlantını kontrol edip tekrar dene.",
+ "chat.botExchange.waiting": "{helper} buna henüz başlamadı. Sırasını bekliyor.",
+ "chat.botExchange.unknown": "{helper} ile konuşmadaki hangi mesajların bu alışverişe ait olduğu belli değil, bu yüzden hiçbiri gösterilmiyor."
}
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 0c05cc3d03..031783b0e8 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -4263,5 +4263,7 @@
"chat.botExchange.stopping": "Зупинення…",
"chat.botExchange.notYours": "Зупинити може лише той, хто просив.",
"chat.botExchange.gone": "Цей обмін не можна зупинити звідси.",
- "chat.botExchange.stopFailed": "Не вдалося зупинити. Перевірте з’єднання і спробуйте ще раз."
+ "chat.botExchange.stopFailed": "Не вдалося зупинити. Перевірте з’єднання і спробуйте ще раз.",
+ "chat.botExchange.waiting": "{helper} ще не почав. Чекає своєї черги.",
+ "chat.botExchange.unknown": "Незрозуміло, які повідомлення з розмови з {helper} належать до цього обміну, тому жодне не показано."
}
diff --git a/src/locales/vi.json b/src/locales/vi.json
index a9cb8544c0..d2886ff915 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -6081,5 +6081,7 @@
"chat.botExchange.stopping": "Đang dừng…",
"chat.botExchange.notYours": "Chỉ người đã yêu cầu mới có thể dừng việc này.",
"chat.botExchange.gone": "Không thể dừng cuộc trao đổi này từ đây.",
- "chat.botExchange.stopFailed": "Không thể dừng. Hãy kiểm tra kết nối rồi thử lại."
+ "chat.botExchange.stopFailed": "Không thể dừng. Hãy kiểm tra kết nối rồi thử lại.",
+ "chat.botExchange.waiting": "{helper} chưa bắt đầu việc này. Đang chờ đến lượt.",
+ "chat.botExchange.unknown": "Không rõ tin nhắn nào trong cuộc trò chuyện của {helper} thuộc lần trao đổi này, nên không hiển thị tin nào."
}
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 4b00a16e5c..88c990a449 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -10397,5 +10397,7 @@
"chat.botExchange.stopping": "正在停止…",
"chat.botExchange.notYours": "只有提出請求的人可以停止。",
"chat.botExchange.gone": "無法在這裡停止此交流。",
- "chat.botExchange.stopFailed": "無法停止。請檢查網路連線後再試一次。"
+ "chat.botExchange.stopFailed": "無法停止。請檢查網路連線後再試一次。",
+ "chat.botExchange.waiting": "{helper} 還沒開始,正在排隊等候。",
+ "chat.botExchange.unknown": "無法確定與 {helper} 的對話中哪些訊息屬於這次交流,因此不顯示。"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 69ba017d8f..d85e71f9c2 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -10310,5 +10310,7 @@
"chat.botExchange.stopping": "正在停止…",
"chat.botExchange.notYours": "只有提出请求的人可以停止。",
"chat.botExchange.gone": "无法在这里停止此交流。",
- "chat.botExchange.stopFailed": "无法停止。请检查网络连接后重试。"
+ "chat.botExchange.stopFailed": "无法停止。请检查网络连接后重试。",
+ "chat.botExchange.waiting": "{helper} 还没开始,正在排队等候。",
+ "chat.botExchange.unknown": "无法确定与 {helper} 的对话中哪些消息属于这次交流,因此不显示。"
}