Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Compact long bot-to-bot requests to one line with an exchange side view
AdityaUmaleda87bd0b2033
diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsxindex 8d8712cc09..cb73d115c4 100644--- a/src/components/ChatView.tsx+++ b/src/components/ChatView.tsx@@ -54,7 +54,7 @@ import { BotAvatar } from "./Avatar";import { TurnPresence } from "./TurnPresence";import { showToolCallsEnabled, skillAuthoringEnabled } from "@/lib/feature-flags";import { normalizeState, stateForBot } from "@/lib/mascot";-import { peerLine, peerRequest, type PeerLine } from "@/lib/peer-message";+import { peerLine, peerPreview, peerRequest, type PeerLine } from "@/lib/peer-message"; import { PEER_HOW, PeerCompactRow, PeerMessagesContext, PeerOpenedActions } from "./PeerExchange";import { showWorkingDots } from "@/lib/turn-tail";import { lastNonReceipt } from "@/lib/receipts";import { useTurnLive } from "@/state/turn-status"; import { isLiveReply, StreamingReplyContext, streamedReply, useHasLiveReply, useLiveTranscript } from "@/state/live-reply"; import { useTurnNow } from "./NowCard"; import { useThreadRoutineRun } from "@/state/older-routine-runs";@@ -390,8 +390,8 @@ const Bubble = memo(function Bubble({const collapsible =user && !webhookView && !expanded && (visibleText.length > USER_COLLAPSE_CHARS || visibleText.split("\n").length > USER_COLLAPSE_LINES);useEffect(() => {- if (focusedSearch && collapsible) setExpanded(true);- }, [focusedSearch, collapsible, focus?.nonce]);+ if (focusedSearch && (collapsible || peer)) setExpanded(true);+ }, [focusedSearch, collapsible, Boolean(peer), focus?.nonce]);if (user && editing && !webhookView && !hasAttachments) {return (@@ -401,6 +401,9 @@ const Bubble = memo(function Bubble({);}+ // A long request from another bot is one line until opened.+ const peerLong = peer ? peerPreview(peer.body) : null;+ if (peer && peerLong && !expanded && !focusedSearch) return <div {...{ [MESSAGE_ROW]: "" }} className="group flex w-full flex-col items-start"><PeerLabel peer={peer} /><PeerCompactRow preview={peerLong} onOpen={() => setExpanded(true)} /></div>;const forks = user && versions ? versions : [message];const versionIndex = forks.findIndex((v) => v.id === message.id);const switchTo = (v: Message | undefined) => {@@ -562,6 +565,7 @@ const Bubble = memo(function Bubble({</span></div><ReactionChips threadId={threadId} message={message} bots={bots} align={user ? "end" : "start"} canReact={canReact} />+ {peer && expanded && peerLong && <PeerOpenedActions peer={peer} bots={bots} botId={botId} botName={botName} onFold={() => setExpanded(false)} />}{forks.length > 1 && (<div className="mt-1 flex items-center gap-0.5 pr-1 text-[12px] text-ink-secondary"><button@@ -593,14 +597,7 @@ function PeerLabel({ peer }: { peer: PeerLine }) {const { bots } = useChatRows();const author =bots.find((b) => b.id === peer.botId) ?? bots.find((b) => b.name === peer.name);- const how =- peer.delivery === "delegate_bot"- ? t("chat.peer.handedTask")- : peer.delivery === "start_thread"- ? t("chat.peer.openedThread")- : peer.delivery === "coordinate_bots"- ? t("chat.peer.requested")- : t("chat.peer.asked");+ const how = t(PEER_HOW[peer.delivery]);return (<div className="mb-1 flex items-center gap-1.5 pl-0.5" data-testid="peer-label"><BotAvatar@@ -688,7 +685,7 @@ const MessagesList = memo(function MessagesList({return <NewMessagesDivider fading={unreadDividerFading} />;};return (- <>+ <PeerMessagesContext value={messages}>{items.map((item, i) => {const previous = items[i - 1];const prev = previous && (previous.kind === "message" ? previous.message : previous.messages.at(-1));@@ -794,7 +791,7 @@ const MessagesList = memo(function MessagesList({</div>);})}- </>+ </PeerMessagesContext>);});diff --git a/src/components/PeerExchange.test.ts b/src/components/PeerExchange.test.tsnew file mode 100644index 0000000000..6a222e1313--- /dev/null+++ b/src/components/PeerExchange.test.ts@@ -0,0 +1,47 @@+import { createElement } from "react";+import { renderToStaticMarkup } from "react-dom/server";+import { describe, expect, it } from "vitest";++import { PeerCompactRow, PeerExchangeView, PeerOpenedActions } from "./PeerExchange";++const peer = { botId: "L", name: "Liaison", delivery: "coordinate_bots" as const, body: "Long request" };++describe("PeerCompactRow", () => {+ it("is one clickable line with the folded request", () => {+ const html = renderToStaticMarkup(createElement(PeerCompactRow, { preview: "Please check the build and tell me", onOpen: () => {} }));+ expect(html).toContain('data-testid="peer-compact"');+ expect(html).toContain("<button");+ expect(html).toContain("truncate");+ expect(html).toContain("Please check the build and tell me");+ expect(html).toContain('title="Show full message"');+ });+});++describe("PeerOpenedActions", () => {+ it("folds the request again or opens the exchange", () => {+ const html = renderToStaticMarkup(createElement(PeerOpenedActions, { peer, bots: [], botId: "me", botName: "Helper", onFold: () => {} }));+ expect(html).toContain(">Show less<");+ expect(html).toContain('data-testid="peer-view-exchange"');+ expect(html).toContain("View exchange");+ });+});++describe("PeerExchangeView", () => {+ it("lists both bots' lines in order, named, beside the chat", () => {+ const html = renderToStaticMarkup(createElement(PeerExchangeView, {+ lines: [+ { id: "p1", from: "peer", text: "First request", at: 1 },+ { id: "b1", from: "bot", text: "Done with the first", at: 2 },+ ],+ peerName: "Liaison",+ botName: "Helper",+ onClose: () => {},+ }));+ expect(html).toContain('role="dialog"');+ expect(html).toContain("Liaison and Helper");+ expect(html).toContain('aria-label="Close"');+ expect(html.indexOf("First request")).toBeLessThan(html.indexOf("Done with the first"));+ expect(html).toContain('data-from="peer"');+ expect(html).toContain('data-from="bot"');+ });+});diff --git a/src/components/PeerExchange.tsx b/src/components/PeerExchange.tsxnew file mode 100644index 0000000000..40adabd2e2--- /dev/null+++ b/src/components/PeerExchange.tsx@@ -0,0 +1,132 @@+// Another bot's long request reads as one line in the chat. It opens in place, and its back-and-forth with this bot opens beside the chat.+import { createContext, use, useEffect, useMemo, useState } from "react";+import { createPortal } from "react-dom";+import { ChevronRight, MessagesSquare, X } from "lucide-react";+import { BotAvatar } from "./Avatar";+import { formatTime } from "@/lib/clock-time";+import { normalizeState } from "@/lib/mascot";+import { peerExchange, type ExchangeLine, type PeerLine } from "@/lib/peer-message";+import { cn } from "@/lib/cn";+import { t } from "@/lib/i18n";+import type { Bot, Message } from "@/state/store";++/** The thread's messages, so an opened request can show its whole exchange. */+export const PeerMessagesContext = createContext<readonly Message[]>([]);++const authorOf = (bots: readonly Bot[], peer: Pick<PeerLine, "botId" | "name">) =>+ bots.find((b) => b.id === peer.botId) ?? bots.find((b) => b.name === peer.name);++function PeerAvatar({ bot, name }: { bot?: Bot; name: string }) {+ return (+ <BotAvatar+ bot={bot ?? { name, color: "blue" }}+ state={normalizeState(bot?.mascotExpression) ?? "happy"}+ size={16}+ motion="none"+ motionKey={0}+ animated={false}+ />+ );+}++/** How the other bot reached this one, for its label. */+export const PEER_HOW = {+ delegate_bot: "chat.peer.handedTask",+ start_thread: "chat.peer.openedThread",+ coordinate_bots: "chat.peer.requested",+ ask_bot: "chat.peer.asked",+} as const satisfies Record<PeerLine["delivery"], string>;++/** The folded request: one line, opened by a click. */+export function PeerCompactRow({ preview, onOpen }: { preview: string; onOpen: () => void }) {+ return (+ <button+ type="button"+ onClick={onOpen}+ title={t("chat.showFull")}+ data-testid="peer-compact"+ className="flex w-fit max-w-[min(var(--chat-bubble-max),var(--chat-bubble-pct))] items-center gap-1.5 rounded-xl bg-card px-3 py-1.5 text-left text-[14px] text-ink-secondary hover:text-ink"+ >+ <ChevronRight size={14} className="shrink-0" />+ <span className="truncate">{preview}</span>+ </button>+ );+}++interface PeerContext {+ peer: PeerLine;+ bots: readonly Bot[];+ botId: string;+ botName: string;+}++/** Under an opened request: fold it again, or see the whole exchange beside the chat. */+export function PeerOpenedActions({ onFold, ...context }: PeerContext & { onFold: () => void }) {+ const [viewing, setViewing] = useState(false);+ return (+ <div className="mt-1 flex items-center gap-3 pl-0.5 text-[13px] text-ink-secondary">+ <button type="button" onClick={onFold} className="hover:text-ink">{t("chat.showLess")}</button>+ <button type="button" onClick={() => setViewing(true)} className="flex items-center gap-1 hover:text-ink" data-testid="peer-view-exchange">+ <MessagesSquare size={13} />+ {t("chat.peer.viewExchange")}+ </button>+ {viewing && <PeerExchangePanel {...context} onClose={() => setViewing(false)} />}+ </div>+ );+}++function PeerExchangePanel({ peer, bots, botId, botName, onClose }: PeerContext & { onClose: () => void }) {+ const messages = use(PeerMessagesContext);+ const lines = useMemo(() => peerExchange(messages, botId, peer), [messages, botId, peer.botId, peer.name]);+ useEffect(() => {+ const onKey = (event: KeyboardEvent) => {+ if (event.key === "Escape") onClose();+ };+ window.addEventListener("keydown", onKey);+ return () => window.removeEventListener("keydown", onKey);+ }, [onClose]);+ return createPortal(+ <PeerExchangeView lines={lines} peerName={peer.name} peerBot={authorOf(bots, peer)} botName={botName} self={bots.find((b) => b.id === botId)} onClose={onClose} />,+ document.body,+ );+}++export function PeerExchangeView({ lines, peerName, peerBot, botName, self, onClose }: {+ lines: readonly ExchangeLine[];+ peerName: string;+ peerBot?: Bot;+ botName: string;+ self?: Bot;+ onClose: () => void;+}) {+ const title = t("chat.peer.exchangeTitle", { peer: peerName, bot: botName });+ return (+ <div className="fixed inset-0 z-50 flex justify-end bg-black/40" onMouseDown={(event) => event.target === event.currentTarget && onClose()}>+ <aside role="dialog" aria-modal="true" aria-label={title} data-testid="peer-exchange" className="flex h-full w-[min(440px,100vw)] flex-col border-l border-hairline/50 bg-panel shadow-2xl shadow-black/50">+ <header className="flex items-center justify-between gap-3 border-b border-hairline/40 px-4 py-3">+ <h2 className="truncate text-[14px] font-medium text-ink">{title}</h2>+ <button type="button" autoFocus onClick={onClose} title={t("common.close")} aria-label={t("common.close")} className="rounded p-1 text-ink-secondary hover:bg-raised hover:text-ink">+ <X size={16} />+ </button>+ </header>+ <ol className="flex-1 space-y-3 overflow-y-auto px-4 py-3">+ {lines.map((line) => {+ const name = line.from === "peer" ? peerName : botName;+ return (+ <li key={line.id} className="flex flex-col gap-1" data-from={line.from}>+ <div className="flex items-center gap-1.5 text-[11px] text-ink-tertiary">+ <PeerAvatar bot={line.from === "peer" ? peerBot : self} name={name} />+ <span className="font-medium text-ink-secondary">{name}</span>+ <span>· {formatTime(line.at)}</span>+ </div>+ <div className={cn("whitespace-pre-wrap [overflow-wrap:anywhere] rounded-xl px-3 py-2 text-[14px] leading-relaxed text-ink", line.from === "peer" ? "bg-card" : "bg-inset/40")}>+ {line.text}+ </div>+ </li>+ );+ })}+ </ol>+ </aside>+ </div>+ );+}diff --git a/src/lib/peer-message.test.ts b/src/lib/peer-message.test.tsindex 55500a5a26..f64f2bd176 100644--- a/src/lib/peer-message.test.ts+++ b/src/lib/peer-message.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from "vitest";-import { peerLine, peerRequest } from "./peer-message";+import { peerExchange, peerLine, peerPreview, peerRequest } from "./peer-message";const NOTE = (opening: string, name: string, rest: string) =>`[${opening} @${name}, another bot in this OpenMausBot workspace${rest}]`;@@ -78,3 +78,60 @@ describe("peerRequest", () => {expect(peerRequest({ role: "bot", text: "hi", from, roomRequest: request }, "pepper")).toBeNull();});});++describe("peerPreview", () => {+ it("leaves a short one-line request as it is", () => {+ expect(peerPreview("Which database?")).toBeNull();+ });++ it("folds a long or many-line request to one line", () => {+ const long = "Please check the build. ".repeat(8);+ expect(peerPreview(long)).toBe(long.trim());+ expect(peerPreview("Step one\nStep two\nStep three\nStep four")).toBe("Step one Step two Step three Step four");+ });++ it("cuts a very long request short", () => {+ const preview = peerPreview("word ".repeat(200))!;+ expect(preview.length).toBeLessThanOrEqual(241);+ expect(preview.endsWith("…")).toBe(true);+ });+});++describe("peerExchange", () => {+ const ask = (id: string, name: string, botId: string, body: string, at: number) =>+ ({ id, role: "user" as const, kind: "text" as const, text: body, at, peerAsk: { botId, name } });+ const reply = (id: string, text: string, at: number) => ({ id, role: "bot" as const, kind: "text" as const, text, at });++ it("keeps one peer's requests and this bot's text answers to them, in order", () => {+ const messages = [+ { id: "u1", role: "user" as const, kind: "text" as const, text: "my own line", at: 1 },+ reply("b1", "answer to the person", 2),+ ask("p1", "Liaison", "L", "First request", 3),+ { id: "t1", role: "bot" as const, kind: "activity" as const, text: "", at: 4 },+ reply("b2", "Done with the first", 5),+ ask("p2", "Other", "O", "Not this peer", 6),+ reply("b3", "answer to Other", 7),+ ask("p3", "Liaison", "L", "Second request", 8),+ reply("b4", "Done with the second", 9),+ { id: "u2", role: "user" as const, kind: "text" as const, text: "person again", at: 10 },+ reply("b5", "answer to the person again", 11),+ ];+ expect(peerExchange(messages, "me", { botId: "L", name: "Liaison" })).toEqual([+ { id: "p1", from: "peer", text: "First request", at: 3 },+ { id: "b2", from: "bot", text: "Done with the first", at: 5 },+ { id: "p3", from: "peer", text: "Second request", at: 8 },+ { id: "b4", from: "bot", text: "Done with the second", at: 9 },+ ]);+ });++ it("matches room requests from the same peer by name when no id is known", () => {+ const messages = [+ { id: "r1", role: "bot" as const, kind: "text" as const, text: "Room ask", at: 1, from: { name: "Chief" }, roomRequest: { phase: "request" } },+ reply("b1", "Room answer", 2),+ ];+ expect(peerExchange(messages as never, "me", { name: "Chief" })).toEqual([+ { id: "r1", from: "peer", text: "Room ask", at: 1 },+ { id: "b1", from: "bot", text: "Room answer", at: 2 },+ ]);+ });+});diff --git a/src/lib/peer-message.ts b/src/lib/peer-message.tsindex 25d22d1dbc..4d28cd123f 100644--- a/src/lib/peer-message.ts+++ b/src/lib/peer-message.ts@@ -47,3 +47,46 @@ export function peerRequest(if (!from?.name || from.botId === threadBotId) return null;return { botId: from.botId, name: from.name, delivery: "coordinate_bots", body: message.text ?? "" };}++const COMPACT_CHARS = 160;+const COMPACT_LINES = 3;+const PREVIEW_CHARS = 240;++/** A long request from another bot folds to one line until opened. Null when it already fits on one. */+export function peerPreview(body: string): string | null {+ const text = body.trim();+ if (text.length <= COMPACT_CHARS && text.split("\n").length <= COMPACT_LINES) return null;+ const flat = text.replace(/\s+/g, " ");+ return flat.length > PREVIEW_CHARS ? `${flat.slice(0, PREVIEW_CHARS).trimEnd()}…` : flat;+}++export interface ExchangeLine {+ id: string;+ from: "peer" | "bot";+ text: string;+ at: number;+}++type ExchangeMessage = Pick<Message, "id" | "role" | "kind" | "text" | "at" | "peerAsk" | "from" | "roomRequest">;++/** One peer's requests in this thread and the bot's written answers to each, for the side view. */+export function peerExchange(+ messages: readonly ExchangeMessage[],+ threadBotId: string,+ peer: Pick<PeerLine, "botId" | "name">,+): ExchangeLine[] {+ const lines: ExchangeLine[] = [];+ let answering = false;+ for (const m of messages) {+ const from = peerLine(m) ?? peerRequest(m, threadBotId);+ if (from) {+ answering = peer.botId && from.botId ? from.botId === peer.botId : from.name === peer.name;+ if (answering) lines.push({ id: m.id, from: "peer", text: from.body, at: m.at });+ } else if (m.role === "user") {+ answering = false;+ } else if (answering && m.role === "bot" && m.kind === "text" && m.text?.trim()) {+ lines.push({ id: m.id, from: "bot", text: m.text, at: m.at });+ }+ }+ return lines;+}diff --git a/src/locales/de.json b/src/locales/de.jsonindex 3d3b29c158..f3238eef48 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -982,6 +982,8 @@"chat.pinnedJump": "Zur angehefteten Nachricht springen","chat.you": "Du","chat.peer.handedTask": "hat eine Aufgabe weitergegeben",+ "chat.peer.viewExchange": "Austausch ansehen",+ "chat.peer.exchangeTitle": "{peer} und {bot}","chat.assistant": "Assistent","chat.webhookTask": "Webhook-Aufgabe","chat.viewPayload": "Ereignis-Payload ansehen",diff --git a/src/locales/en.json b/src/locales/en.jsonindex a310f7f335..71ae029401 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -2612,6 +2612,8 @@"chat.peer.handedTask": "handed on a task","chat.peer.openedThread": "opened this thread","chat.peer.requested": "sent a request",+ "chat.peer.viewExchange": "View exchange",+ "chat.peer.exchangeTitle": "{peer} and {bot}","chat.automation.openRun": "See run","chat.automation.openRunFor": "See the run behind this {name} message","chat.automation.needsYou": "needs you",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 27840a7d4f..d1afe086a8 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -1926,6 +1926,8 @@"chat.peer.handedTask": "encargó una tarea","chat.peer.openedThread": "abrió este hilo","chat.peer.requested": "envió una solicitud",+ "chat.peer.viewExchange": "Ver intercambio",+ "chat.peer.exchangeTitle": "{peer} y {bot}","chat.automation.openRun": "Ver ejecución","chat.automation.openRunFor": "Ver la ejecución detrás de este mensaje de {name}","chat.automation.needsYou": "te necesita",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 89cb896542..512a85791d 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -818,6 +818,8 @@"chat.pinnedJump": "Aller au message épinglé","chat.you": "Vous","chat.peer.handedTask": "a confié une tâche",+ "chat.peer.viewExchange": "Voir l’échange",+ "chat.peer.exchangeTitle": "{peer} et {bot}","chat.assistant": "Assistant","chat.webhookTask": "Tâche de webhook","chat.viewPayload": "Voir la charge utile de l'événement",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 2f32338837..d1cf7ae6bf 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -818,6 +818,8 @@"chat.pinnedJump": "पिन किए संदेश पर जाएँ","chat.you": "आप","chat.peer.handedTask": "एक काम आगे सौंपा",+ "chat.peer.viewExchange": "बातचीत देखें",+ "chat.peer.exchangeTitle": "{peer} और {bot}","chat.assistant": "सहायक","chat.webhookTask": "वेबहुक कार्य","chat.viewPayload": "इवेंट का पेलोड देखें",diff --git a/src/locales/it.json b/src/locales/it.jsonindex c172a12559..f8dedd0636 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -2019,6 +2019,8 @@"chat.peer.handedTask": "ha affidato un'attività","chat.peer.openedThread": "ha aperto questa discussione","chat.peer.requested": "ha inviato una richiesta",+ "chat.peer.viewExchange": "Vedi lo scambio",+ "chat.peer.exchangeTitle": "{peer} e {bot}","chat.automation.openRun": "Vedi l'esecuzione","chat.automation.openRunFor": "Vedi l'esecuzione dietro questo messaggio di {name}","chat.automation.needsYou": "ha bisogno di te",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex c84968a15a..6e97a9c363 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -2322,6 +2322,8 @@"chat.peer.handedTask": "タスクを任せました","chat.peer.openedThread": "このスレッドを開きました","chat.peer.requested": "リクエストを送りました",+ "chat.peer.viewExchange": "やり取りを見る",+ "chat.peer.exchangeTitle": "{peer} と {bot}","chat.automation.openRun": "実行を見る","chat.automation.openRunFor": "この{name}のメッセージを生んだ実行を見る","chat.automation.needsYou": "対応が必要",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex c2936ec0d8..eb31f12ac1 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -2211,6 +2211,8 @@"chat.peer.handedTask": "작업을 맡김","chat.peer.openedThread": "이 스레드를 열었음","chat.peer.requested": "요청을 보냄",+ "chat.peer.viewExchange": "주고받은 내용 보기",+ "chat.peer.exchangeTitle": "{peer} 및 {bot}","chat.automation.openRun": "실행 보기","chat.automation.openRunFor": "이 {name} 메시지를 만든 실행 보기","chat.automation.needsYou": "확인 필요",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex abdc0e5e2b..4a47274fa9 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -2058,6 +2058,8 @@"chat.peer.handedTask": "przekazanie zadania","chat.peer.openedThread": "otwarcie tego wątku","chat.peer.requested": "wysłane żądanie",+ "chat.peer.viewExchange": "Zobacz wymianę",+ "chat.peer.exchangeTitle": "{peer} i {bot}","chat.automation.openRun": "Zobacz uruchomienie","chat.automation.openRunFor": "Zobacz uruchomienie, którego dotyczy ta wiadomość bota {name}","chat.automation.needsYou": "czeka na ciebie",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 3d0ebf4da6..3ccb96e0d3 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -2440,6 +2440,8 @@"chat.peer.handedTask": "repassou uma tarefa","chat.peer.openedThread": "abriu esta conversa","chat.peer.requested": "enviou um pedido",+ "chat.peer.viewExchange": "Ver conversa",+ "chat.peer.exchangeTitle": "{peer} e {bot}","chat.automation.openRun": "Ver execução","chat.automation.openRunFor": "Ver a execução que gerou esta mensagem de {name}","chat.automation.needsYou": "aguardando você",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex b86c582933..8cfc5b5880 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -2092,6 +2092,8 @@"chat.peer.handedTask": "передал задачу","chat.peer.openedThread": "открыл этот тред","chat.peer.requested": "отправил запрос",+ "chat.peer.viewExchange": "Показать переписку",+ "chat.peer.exchangeTitle": "{peer} и {bot}","chat.automation.openRun": "Открыть выполнение","chat.automation.openRunFor": "Открыть выполнение, лежащее в основе сообщения {name}","chat.automation.needsYou": "нужно ваше участие",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex 7c1f315ef6..87f1401d3d 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -1630,6 +1630,8 @@"chat.peer.handedTask": "bir görev aktardı","chat.peer.openedThread": "bu konuyu açtı","chat.peer.requested": "bir istek gönderdi",+ "chat.peer.viewExchange": "Yazışmayı gör",+ "chat.peer.exchangeTitle": "{peer} ve {bot}","chat.automation.openRun": "Çalıştırmayı gör","chat.automation.openRunFor": "Bu {name} mesajının arkasındaki çalıştırmayı gör","chat.automation.needsYou": "sana ihtiyacı var",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex de637d6a2d..76caa11ec5 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -957,6 +957,8 @@"chat.peer.asked": "запитав через ask_bot","chat.peer.handedTask": "передав завдання","chat.peer.openedThread": "відкрив цю гілку",+ "chat.peer.viewExchange": "Переглянути листування",+ "chat.peer.exchangeTitle": "{peer} і {bot}","chat.assistant": "Асистент","chat.webhookTask": "Завдання вебхука","chat.viewPayload": "Переглянути payload події",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex ae59a70c2c..5c279bd0ec 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -1630,6 +1630,8 @@"chat.peer.handedTask": "đã giao một nhiệm vụ","chat.peer.openedThread": "đã mở luồng này","chat.peer.requested": "đã gửi một yêu cầu",+ "chat.peer.viewExchange": "Xem trao đổi",+ "chat.peer.exchangeTitle": "{peer} và {bot}","chat.automation.openRun": "Xem lần chạy","chat.automation.openRunFor": "Xem lần chạy đã tạo tin nhắn {name} này","chat.automation.needsYou": "cần bạn",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 6c7a711aab..de67343c4a 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -2498,6 +2498,8 @@"chat.peer.handedTask": "已轉交一項任務","chat.peer.openedThread": "已開啟此對話","chat.peer.requested": "送出了一個請求",+ "chat.peer.viewExchange": "查看往來訊息",+ "chat.peer.exchangeTitle": "{peer} 和 {bot}","chat.automation.openRun": "查看執行","chat.automation.openRunFor": "查看這則 {name} 訊息背後的執行","chat.automation.needsYou": "需要你",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex d7ecb5c1c1..a6858fb7bd 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -2350,6 +2350,8 @@"chat.peer.handedTask": "已转交一项任务","chat.peer.openedThread": "已打开此对话","chat.peer.requested": "发送了一个请求",+ "chat.peer.viewExchange": "查看往来消息",+ "chat.peer.exchangeTitle": "{peer} 和 {bot}","chat.automation.openRun": "查看执行","chat.automation.openRunFor": "查看这条 {name} 消息背后的执行","chat.automation.needsYou": "需要你处理",