Skip to content

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

A team bot's main chat is called Shared chat

milind-soniec2f71d7f3df
diff --git a/docs/team-cloud.md b/docs/team-cloud.md
index 368ac5748a..63811e9f52 100644
--- a/docs/team-cloud.md
+++ b/docs/team-cloud.md
@@ -347,6 +347,12 @@ On a My Cloud and on a desktop there is one person: every audience is the team's
every browser keeps its old name and Chrome its old launcher, every engine keeps the server's HOME, and nothing here
changes what those do.
+## The shared chat's name
+
+A team bot's main chat is called *"Shared chat"* on every person's copy (`WireTask.sharedChat`), whatever its stored title,
+so nobody takes it for one of their own, and it can't be renamed. A member's own MausBot has none. Clicking a bot still
+opens the person's own private chat.
+
## Who looks after a bot
Every team bot is **looked after by** one member, its owner in the data: `reportsTo` (an email) names them; without it
diff --git a/server/bot-visibility.test.ts b/server/bot-visibility.test.ts
index 613ad96a7c..d5696f4a97 100644
--- a/server/bot-visibility.test.ts
+++ b/server/bot-visibility.test.ts
@@ -373,7 +373,7 @@ describe("a Team Cloud's audiences", () => {
messages: [{ text: "Kumquat" }], hasMore: true, pinnedMessageId: "m1", tasks: [{ threadId: "t-pub" }, { threadId: "t-pub-2", unread: true }] };
const sent = memberBot(bot, admin) as Record<string, unknown>;
// It also says what they may do (an admin edits every bot) and carries the bot's sharing.
- expect(sent).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", visibility: "everyone", vpsAlias: "box", unread: false, tasks: [{ threadId: "t-pub" }],
+ expect(sent).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", visibility: "everyone", vpsAlias: "box", unread: false, tasks: [{ threadId: "t-pub", title: "Shared chat", sharedChat: true }],
access: { everyone: "chat", people: {} }, yourAccess: "edit" });
expect(JSON.stringify(memberBody({ bots: [bot], bot }, admin))).not.toContain("Kumquat");
// A room keeps its audience floor for an admin.
@@ -387,8 +387,20 @@ describe("a Team Cloud's audiences", () => {
const admin = new VisibleSet(open, openGroups, BEN_ADMIN, undefined, { of: audienceOf, person: BEN_KEY });
const bot = { id: "pub", threadId: "t-pub-2", mainThreadId: "t-pub-2", tasks: [{ threadId: "t-pub-2" }, { threadId: "t-pub" }] };
const sent = memberBot(bot, admin) as Record<string, unknown>;
- expect(sent).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", tasks: [{ threadId: "t-pub" }], access: { everyone: "chat", people: {} }, yourAccess: "edit" });
- expect(memberBot({ ...bot, threadId: "t-pub" }, admin)).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", tasks: [{ threadId: "t-pub" }], access: { everyone: "chat", people: {} }, yourAccess: "edit" });
+ expect(sent).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", tasks: [{ threadId: "t-pub", title: "Shared chat", sharedChat: true }], access: { everyone: "chat", people: {} }, yourAccess: "edit" });
+ expect(memberBot({ ...bot, threadId: "t-pub" }, admin)).toEqual({ id: "pub", threadId: "t-pub", mainThreadId: "t-pub", tasks: [{ threadId: "t-pub", title: "Shared chat", sharedChat: true }], access: { everyone: "chat", people: {} }, yourAccess: "edit" });
+ });
+
+ it("calls a team bot's main chat what it is on every person's copy, and nothing else", () => {
+ const ada = new VisibleSet(open, openGroups, ADA, undefined, { of: audienceOf, person: ADA_KEY });
+ const bot = { id: "pub", threadId: "t-pub-2", mainThreadId: "t-pub", tasks: [{ threadId: "t-pub", title: "Rooms today: 12" }, { threadId: "t-pub-2", title: "New thread", private: true }] };
+ expect((memberBot(bot, ada) as { tasks: unknown[] }).tasks).toEqual([{ threadId: "t-pub", title: "Shared chat", sharedChat: true }, { threadId: "t-pub-2", title: "New thread", private: true }]);
+ const ownMain = { ...bot, threadId: "t-pub-2", mainThreadId: "t-pub-2" };
+ expect((memberBot(ownMain, ada) as { tasks: Array<{ title: string }> }).tasks[1]!.title, "a private chat is never the shared one").toBe("New thread");
+ const ownHelper = { ...bot, defaultBot: { person: "[email protected]" } };
+ expect((memberBot(ownHelper, ada) as { tasks: Array<{ title: string }> }).tasks[0]!.title, "a member's own MausBot shares nothing").toBe("Rooms today: 12");
+ const offTeam = new VisibleSet(open, openGroups, ADA);
+ expect((memberBot(bot, offTeam) as { tasks: Array<{ title: string }> }).tasks[0]!.title, "off a team nothing changes").toBe("Rooms today: 12");
});
it("a live frame from another person's private chat never reaches an admin's stream", () => {
diff --git a/server/bot-visibility.ts b/server/bot-visibility.ts
index af10a0033e..02571513a8 100644
--- a/server/bot-visibility.ts
+++ b/server/bot-visibility.ts
@@ -9,6 +9,7 @@ import { accessFromVisibility, entryMatches, higherLevel, sharedLevel, type BotA
import { botOwner, type OwnedBot } from "../shared/bot-owner.ts";
import type { BotVisibility } from "../shared/wire.ts";
import { audienceIncludes, type Audience } from "./audience.ts";
+import { SHARED_CHAT_TITLE } from "../shared/wire.ts";
export type { BotVisibility };
@@ -429,7 +430,14 @@ function shownConversations<T extends object>(bot: T, visible: VisibleSet): T {
if (main) next.threadId = main; else delete next.threadId;
out = next;
}
- return out as T;
+ return namedSharedChat(out) as T;
+}
+
+/** A team bot's main chat goes by what it is, so nobody takes it for one of their own. A member's own MausBot has none. */
+function namedSharedChat(bot: Record<string, unknown>): Record<string, unknown> {
+ const main = bot.mainThreadId, tasks = bot.tasks;
+ if (typeof main !== "string" || !Array.isArray(tasks) || (bot.defaultBot as { person?: unknown } | undefined)?.person) return bot;
+ return { ...bot, tasks: tasks.map((task: { threadId?: unknown; private?: unknown } | null) => (task?.threadId === main && task.private !== true ? { ...task, title: SHARED_CHAT_TITLE, sharedChat: true } : task)) };
}
function teamConversation(tasks: readonly unknown[]): string | undefined {
diff --git a/shared/wire.ts b/shared/wire.ts
index d72e1629e1..b9d74aded2 100644
--- a/shared/wire.ts
+++ b/shared/wire.ts
@@ -32,6 +32,9 @@ import type { WebhookAttempt, WebhookTrigger } from "./webhooks.ts";
import type { PublishedPageCard } from "./published-page.ts";
import type { InboxItem, InboxTask } from "./inbox.ts";
import type { LiveCallRecord, LiveCallState } from "./live-call-wire.ts";
+/** What a team bot's main chat is called, beside each person's own chats. */
+export const SHARED_CHAT_TITLE = "Shared chat";
+
export type { LiveCallRecord, LiveCallState, LiveCallStatus, LiveClient, LiveEndReason, LiveKeySource, LiveSettings } from "./live-call-wire.ts";
/** Reasoning-effort levels, ascending: a union of what any engine accepts;
@@ -139,6 +142,9 @@ export interface WireTask extends InboxTask {
/** The first message already drove a title attempt for this thread, so a
* later one does not rename a thread the person may have retitled. */
titleFromFirstMessage?: true;
+ /** Team Cloud only: this is the bot's main chat, everyone's who sees the bot. Its title is SHARED_CHAT_TITLE on every
+ * person's copy, whatever is stored, and it can't be renamed. */
+ sharedChat?: true;
/** Organizational grouping only; never a directory or provider context. */
projectId?: string;
/** Detached routine execution, reachable through its visible results card. */
diff --git a/src/components/ChatHeadPill.test.ts b/src/components/ChatHeadPill.test.ts
new file mode 100644
index 0000000000..e33bf8b1af
--- /dev/null
+++ b/src/components/ChatHeadPill.test.ts
@@ -0,0 +1,30 @@
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { expect, it, vi } from "vitest";
+
+import { initialState, StoreContext, type AppState, type Bot } from "@/state/store";
+import { ChatHeadPill, type ChatHeadPrivacy } from "./ChatHeadPill";
+
+const bot = (threadId: string, title = "New thread"): Bot => ({
+ id: "rooms", threadId, mainThreadId: "main", name: "Rooms", title: "", description: "", notifications: true, color: "green", unread: false,
+ modelSelection: { instanceId: "claude", model: "test" }, messages: [],
+ tasks: [{ threadId: "main", title: "Shared chat", createdAt: 1 }, { threadId: "own", title, createdAt: 2 }],
+} as unknown as Bot);
+const pill = (of: Bot, privacy: ChatHeadPrivacy) => renderToStaticMarkup(createElement(StoreContext.Provider,
+ { value: { state: { ...initialState } as AppState, dispatch: vi.fn(), flushBotPatches: vi.fn(), refreshInstances: vi.fn(), refreshModels: vi.fn() } as never },
+ createElement(ChatHeadPill, { bot: of, avatar: { state: "idle", motion: "none", motionKey: 0, animated: false } as never, privacy, onToggle: vi.fn() })));
+
+it("names the shared chat beside the bot, so the person knows where they are", () => {
+ expect(pill(bot("main"), { kind: "shared", team: "Acme" })).toContain("Shared chat");
+});
+
+it("says nothing extra off a team, and a private chat keeps its own name", () => {
+ expect(pill(bot("main"), null)).not.toContain("Shared chat");
+ expect(pill(bot("own"), { kind: "private" })).toContain("New conversation");
+ expect(pill(bot("own", "Quarter numbers"), { kind: "private" })).toContain("Quarter numbers");
+});
+
+it("names it too from another conversation's list, in the person's language", () => {
+ const away = { ...bot("main"), mainThreadId: "elsewhere", tasks: [...bot("main").tasks!, { threadId: "elsewhere", title: "Other", createdAt: 3 }] } as Bot;
+ expect(pill(away, { kind: "shared", team: "Acme" })).toContain("Shared chat");
+});
diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsx
index 4ea67bf262..9dbbc62042 100644
--- a/src/components/ChatHeadPill.tsx
+++ b/src/components/ChatHeadPill.tsx
@@ -1,3 +1,4 @@
+import { localizedTaskTitle } from "@/lib/task-title";
import { ChevronRight, Lock, UserRound, Users } from "lucide-react";
import type { ComponentProps } from "react";
@@ -43,8 +44,8 @@ export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {
const PrivacyIcon = privacy ? PRIVACY_ICONS[privacy.kind] : Users;
const title = bot.tasks?.find((task) => task.threadId === bot.threadId)?.title;
// Simple mode calls an untitled conversation what it is, never a "thread".
- const conversation = !awayFromMainThread(bot, false) ? null
- : !title || title === UNTITLED ? t("task.untitledConversation") : title;
+ const conversation = !awayFromMainThread(bot, false) ? (privacy?.kind === "shared" ? t("task.sharedChat") : null)
+ : !title || title === UNTITLED ? t("task.untitledConversation") : localizedTaskTitle(title);
const label = t("chat.openProfileAria", { name: bot.name });
return (
<button
diff --git a/src/components/SidebarThreadRow.shared-chat.test.ts b/src/components/SidebarThreadRow.shared-chat.test.ts
new file mode 100644
index 0000000000..02c89c5a22
--- /dev/null
+++ b/src/components/SidebarThreadRow.shared-chat.test.ts
@@ -0,0 +1,45 @@
+// @vitest-environment happy-dom
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, beforeEach, expect, it, vi } from "vitest";
+import { setLocale } from "@/lib/i18n";
+import { localizedTaskTitle } from "@/lib/task-title";
+import { SidebarThreadRow } from "./SidebarThreadRow";
+
+(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+let host: HTMLElement, root: Root;
+beforeEach(() => { host = document.createElement("div"); document.body.append(host); root = createRoot(host); });
+afterEach(async () => { await act(async () => root.unmount()); host.remove(); document.body.innerHTML = ""; });
+
+const draw = async (task: { threadId: string; title: string; sharedChat?: true }) => {
+ await act(async () => { root.render(createElement(SidebarThreadRow, { task, ownerId: "rooms", current: false, onSelect: vi.fn(), onRename: vi.fn(), onDelete: vi.fn(), onRegenerateTitle: vi.fn(), locale: "en", panel: true })); });
+};
+const openMenu = async () => {
+ const row = host.querySelector<HTMLElement>("[data-thread-row], button")!;
+ await act(async () => { row.dispatchEvent(new MouseEvent("contextmenu", { bubbles: true, clientX: 5, clientY: 5 })); });
+ return [...document.querySelectorAll("[data-thread-overlay] button")].map((button) => button.textContent);
+};
+
+it("shows a team's shared chat by its name, in the person's language", async () => {
+ setLocale("de");
+ expect(localizedTaskTitle("Shared chat")).toBe("Gemeinsamer Chat");
+ setLocale("en");
+ expect(localizedTaskTitle("Shared chat")).toBe("Shared chat");
+ await draw({ threadId: "main", title: "Shared chat", sharedChat: true });
+ expect(host.textContent).toContain("Shared chat");
+});
+
+it("offers no rename on it, by the menu or a double click", async () => {
+ await draw({ threadId: "main", title: "Shared chat", sharedChat: true });
+ const items = await openMenu();
+ expect(items.length).toBeGreaterThan(0);
+ expect(items.join(" ")).not.toMatch(/rename/i);
+ const row = host.querySelector<HTMLElement>("button")!;
+ await act(async () => { row.dispatchEvent(new MouseEvent("dblclick", { bubbles: true })); });
+ expect(host.querySelector("input")).toBeNull();
+});
+
+it("still renames any other conversation", async () => {
+ await draw({ threadId: "own", title: "Quarter numbers" });
+ expect((await openMenu()).join(" ")).toMatch(/rename/i);
+});
diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsx
index 47c5d16d72..5517f384d6 100644
--- a/src/components/SidebarThreadRow.tsx
+++ b/src/components/SidebarThreadRow.tsx
@@ -19,7 +19,7 @@ import { localizedTaskTitle } from "@/lib/task-title";
export { isSnoozed, orderedThreadList };
-type ThreadRowTask = Pick<Task, "threadId" | "title" | "projectId" | "busy" | "activity" | "unread" | "openedBy" | "closedBy" | "archivedAt" | "snoozedUntil" | "waitingForTeammates" | "link" | "turnStartedAt"> & {
+type ThreadRowTask = Pick<Task, "threadId" | "title" | "sharedChat" | "projectId" | "busy" | "activity" | "unread" | "openedBy" | "closedBy" | "archivedAt" | "snoozedUntil" | "waitingForTeammates" | "link" | "turnStartedAt"> & {
queued?: boolean;
pinned?: boolean;
createdAt?: number;
@@ -266,7 +266,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,
const choose = (event: React.MouseEvent) => { if (!selectMode) onSelect(task); else if (tickable) onToggleSelect?.(task, event.shiftKey); };
const contextMenu = (event: React.MouseEvent) => { event.preventDefault(); if (!selectMode) openMenu(event.clientX, event.clientY); };
const openMenu = (x: number, y: number) => setMenu({ left: Math.max(8, Math.min(x, window.innerWidth - 228)), top: Math.max(8, Math.min(y, window.innerHeight - 230)) });
- const startRename = () => { finishing.current = false; setDraft(task.title); setRenaming(true); setMenu(null); };
+ const startRename = () => { if (task.sharedChat) return; finishing.current = false; setDraft(task.title); setRenaming(true); setMenu(null); };
const copyLink = () => {
setMenu(null);
void copyText(threadRefUrl({ botId: ownerId, threadId: task.threadId }));
@@ -354,8 +354,8 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,
className={cn("fixed z-50 max-h-[calc(100vh-16px)] w-[220px] overflow-y-auto", MENU_SHEET, menuMotion.className)} {...menuMotion.exitProps}
onKeyDown={(event) => { if (event.key === "Escape") { event.preventDefault(); event.stopPropagation(); setMenu(null); actionRef.current?.focus(); } }}>
<button type="button" onClick={copyLink} className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] text-ink hover:bg-menu-hover"><Link2 size={16} />{t("task.copyLink")}</button>
- <button type="button" onClick={startRename} className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] text-ink hover:bg-menu-hover"><Pencil size={16} />{t("task.renameAria")}</button>
- {onRegenerateTitle && <button type="button" disabled={regenerating} aria-busy={regenerating} onClick={regenerateTitle} className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] text-ink hover:bg-menu-hover disabled:opacity-40">{regenerating ? <Loader2 size={16} className="animate-spin" /> : <RefreshCw size={16} />}{regenerating ? t("task.regeneratingTitle") : t("task.regenerateTitle")}</button>}
+ {!task.sharedChat && <button type="button" onClick={startRename} className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] text-ink hover:bg-menu-hover"><Pencil size={16} />{t("task.renameAria")}</button>}
+ {onRegenerateTitle && !task.sharedChat && <button type="button" disabled={regenerating} aria-busy={regenerating} onClick={regenerateTitle} className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] text-ink hover:bg-menu-hover disabled:opacity-40">{regenerating ? <Loader2 size={16} className="animate-spin" /> : <RefreshCw size={16} />}{regenerating ? t("task.regeneratingTitle") : t("task.regenerateTitle")}</button>}
{onMove && Boolean(folders?.length) && <label className="block rounded-md px-2 py-1.5 text-[13px] text-ink"><span className="mb-1 flex items-center gap-2 text-ink-secondary"><FolderInput size={16} />{t("folder.move")}</span>
<Select size="sm" className="w-full" aria-label={t("folder.moveNamed", { title: task.title })} value={folders?.some((folder) => folder.id === task.projectId) ? task.projectId : ""}
onChange={(event) => { onMove(task, event.target.value || null); setMenu(null); }}>
diff --git a/src/lib/task-title.ts b/src/lib/task-title.ts
index e86a972715..68abb98051 100644
--- a/src/lib/task-title.ts
+++ b/src/lib/task-title.ts
@@ -1,6 +1,8 @@
+import { SHARED_CHAT_TITLE } from "../../shared/wire";
import { t } from "./i18n";
/** Localize the factory title while preserving titles chosen by the user. */
export function localizedTaskTitle(title: string): string {
+ if (title === SHARED_CHAT_TITLE) return t("task.sharedChat");
return title === "New thread" ? t("task.newShort") : title;
}
diff --git a/src/locales/de.json b/src/locales/de.json
index 69ff67dbcc..5bdb527fa4 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1165,6 +1165,7 @@
"attach.unavailable": "Nicht verfügbar",
"task.chip": "Thread",
"task.newShort": "Neuer Thread",
+ "task.sharedChat": "Gemeinsamer Chat",
"task.matching": "{count} passende Threads",
"task.list": "Threads",
"task.waitingOnTeammate": "Wartet auf Kollegen",
diff --git a/src/locales/en.json b/src/locales/en.json
index 2dc463d346..32f0c1653b 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2885,6 +2885,7 @@
"attach.unavailable": "Unavailable",
"task.chip": "Thread",
"task.newShort": "New thread",
+ "task.sharedChat": "Shared chat",
"task.untitledConversation": "New conversation",
"task.matching": "{count} matching threads",
"task.list": "Threads",
diff --git a/src/locales/es.json b/src/locales/es.json
index 312451deba..ac50758a95 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -2400,6 +2400,7 @@
"attach.unavailable": "No disponible",
"task.chip": "Hilo",
"task.newShort": "Nuevo hilo",
+ "task.sharedChat": "Chat compartido",
"task.matching": "{count} hilos coincidentes",
"task.list": "Hilos",
"task.namedList": "Hilos de {name}",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index e35c88773f..9b243e96d6 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -1069,6 +1069,7 @@
"attach.unavailable": "Indisponible",
"task.chip": "Fil",
"task.newShort": "Nouveau fil",
+ "task.sharedChat": "Conversation partagée",
"task.matching": "{count} fils correspondants",
"task.list": "Fils",
"task.noMatch": "Rien ne correspond à « {query} »",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 3330da0f9a..6d8e3c6c0a 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -1069,6 +1069,7 @@
"attach.unavailable": "उपलब्ध नहीं",
"task.chip": "थ्रेड",
"task.newShort": "नया थ्रेड",
+ "task.sharedChat": "साझा चैट",
"task.matching": "{count} मिलते-जुलते थ्रेड",
"task.list": "थ्रेड",
"task.noMatch": "“{query}” से कुछ मेल नहीं खाता",
diff --git a/src/locales/it.json b/src/locales/it.json
index 3192f02ce3..d2e0c25bc5 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -2465,6 +2465,7 @@
"attach.unavailable": "Non disponibile",
"task.chip": "Conversazione",
"task.newShort": "Nuova conversazione",
+ "task.sharedChat": "Chat condivisa",
"task.matching": "{count} conversazioni corrispondenti",
"task.list": "Conversazioni",
"task.namedList": "Conversazioni di {name}",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 0e9bf7b0dc..d20abdb529 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -2576,6 +2576,7 @@
"attach.unavailable": "利用不可",
"task.chip": "スレッド",
"task.newShort": "新しいスレッド",
+ "task.sharedChat": "共有チャット",
"task.matching": "一致するスレッド {count} 件",
"task.list": "スレッド",
"task.namedList": "{name} のスレッド",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index e6f4cadd85..f9e712f896 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -2720,6 +2720,7 @@
"attach.unavailable": "사용 불가",
"task.chip": "스레드",
"task.newShort": "새 스레드",
+ "task.sharedChat": "공유 채팅",
"task.untitledConversation": "새 대화",
"task.matching": "일치하는 스레드 {count}개",
"task.list": "스레드",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 5ebfec6702..876fad27d2 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -2520,6 +2520,7 @@
"attach.unavailable": "Niedostępne",
"task.chip": "Wątek",
"task.newShort": "Nowy wątek",
+ "task.sharedChat": "Czat wspólny",
"task.matching": "Pasujące wątki: {count}",
"task.list": "Wątki",
"task.namedList": "Wątki: {name}",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 8fe32c2164..f9f857ba55 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -2461,6 +2461,7 @@
"attach.unavailable": "Indisponível",
"task.chip": "Conversa",
"task.newShort": "Nova conversa",
+ "task.sharedChat": "Chat compartilhado",
"task.matching": "{count} conversas correspondentes",
"task.list": "Conversas",
"task.namedList": "Conversas de {name}",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index ee6cc7fa62..6dba271b88 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -2558,6 +2558,7 @@
"attach.unavailable": "Недоступно",
"task.chip": "Ветка",
"task.newShort": "Новая ветка",
+ "task.sharedChat": "Общий чат",
"task.matching": "{count} подходящих веток",
"task.list": "Ветки",
"task.namedList": "Ветки: {name}",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 9868a6c55e..5a62beb851 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -2109,6 +2109,7 @@
"attach.unavailable": "Kullanılamıyor",
"task.chip": "Konu",
"task.newShort": "Yeni konu",
+ "task.sharedChat": "Paylaşılan sohbet",
"task.matching": "{count} eşleşen konu",
"task.list": "Konular",
"task.namedList": "{name} konuları",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 14c34fd934..674e126ba7 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -1237,6 +1237,7 @@
"attach.unavailable": "Недоступно",
"task.chip": "Гілка",
"task.newShort": "Нова гілка",
+ "task.sharedChat": "Спільний чат",
"task.matching": "{count} відповідних гілок",
"task.list": "Гілки",
"task.namedList": "Гілки {name}",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 475c50665f..0c95f7c6d5 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -2109,6 +2109,7 @@
"attach.unavailable": "Không khả dụng",
"task.chip": "Luồng",
"task.newShort": "Luồng mới",
+ "task.sharedChat": "Trò chuyện chung",
"task.matching": "{count} luồng phù hợp",
"task.list": "Luồng",
"task.namedList": "Luồng của {name}",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 6128add6cb..8830ef1625 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -1820,6 +1820,7 @@
"attach.unavailable": "無法使用",
"task.chip": "對話",
"task.newShort": "新增對話",
+ "task.sharedChat": "共享聊天",
"task.matching": "{count} 個符合的對話",
"task.list": "對話",
"task.namedList": "{name} 對話",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 51a6d7ce1e..387d6fbb2f 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -2843,6 +2843,7 @@
"attach.unavailable": "不可用",
"task.chip": "对话",
"task.newShort": "新建对话",
+ "task.sharedChat": "共享聊天",
"task.untitledConversation": "新对话",
"task.matching": "{count} 个匹配的对话",
"task.list": "对话",
diff --git a/src/state/store.tsx b/src/state/store.tsx
index 7b552bdc5d..97fdf7927f 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -214,7 +214,7 @@ export interface ModelSelection {
}
export interface Task extends Pick<WireTask, "private" | "setupRequest" | "inbox" | "openAsks"> {
- waitingForTeammates?: boolean;
+ waitingForTeammates?: boolean; sharedChat?: true;
threadId: string;
routineRunId?: string;
projectId?: string;