Skip to content

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

One list: rows never jump under the pointer, no stale work, badge, moved row, design words

milind-soni8d31c06bada2
diff --git a/electron/places-together.d.mts b/electron/places-together.d.mts
index d287cc3114..5c5fdf4925 100644
--- a/electron/places-together.d.mts
+++ b/electron/places-together.d.mts
@@ -24,6 +24,8 @@ export interface PlaceBotRow {
/** The start of its newest message while that is words said (at most PREVIEW_MAX characters, Markdown as written):
* its second line in the one list, as this page's own rows show theirs. Absent for a step, a card or a file. */
preview?: string;
+ /** The title of the conversation it has open there: its second line while no preview came. */
+ chat?: string;
/** Epoch ms its conversations last moved there (the newest thread's `updatedAt`): Unread's order across places. */
lastAt?: number;
}
diff --git a/electron/places-together.mjs b/electron/places-together.mjs
index eee26100b3..ab7aa8a72c 100644
--- a/electron/places-together.mjs
+++ b/electron/places-together.mjs
@@ -82,8 +82,9 @@ export function botRow(bot, home) {
if (!record(bot) || !ID.test(String(bot.id)) || !ID.test(String(bot.threadId)) || bot.hidden || bot.sidebarHidden || bot.movedTo) return null;
const name = text(bot.name, 80);
if (!name) return null;
- const title = text(bot.title, 80), preview = previewOf(bot), color = look(bot.color), body = look(bot.mascotBody), face = look(bot.mascotFaceColor), tint = look(bot.mascotBodyColor), fur = look(bot.mascotMaterial);
- return { home, id: bot.id, threadId: bot.threadId, name, ...(title ? { title } : {}), ...(color ? { color } : {}),
+ const open = Array.isArray(bot.tasks) ? bot.tasks.find((task) => record(task) && task.threadId === bot.threadId) : null;
+ const title = text(bot.title, 80), chat = text(open?.title, 80), preview = previewOf(bot), color = look(bot.color), body = look(bot.mascotBody), face = look(bot.mascotFaceColor), tint = look(bot.mascotBodyColor), fur = look(bot.mascotMaterial);
+ return { home, id: bot.id, threadId: bot.threadId, name, ...(title ? { title } : {}), ...(chat ? { chat } : {}), ...(color ? { color } : {}),
...(body ? { mascotBody: body } : {}), ...(face ? { mascotFaceColor: face } : {}), ...(tint ? { mascotBodyColor: tint } : {}), ...(fur ? { mascotMaterial: fur } : {}), ...(bot.chiefOfStaff === true ? { chief: true } : {}), ...(preview ? { preview } : {}), ...rowState(bot) };
}
diff --git a/electron/places-together.node-test.mjs b/electron/places-together.node-test.mjs
index afeb4891d3..9f367cc98f 100644
--- a/electron/places-together.node-test.mjs
+++ b/electron/places-together.node-test.mjs
@@ -433,6 +433,12 @@ test("a row carries the start of its bot's newest line while that is words said,
assert.equal("preview" in botRow(bot("none", "None", { messages: [] }), "cloud"), false);
});
+test("a row carries the title of the conversation its bot has open there, and only that one", () => {
+ const row = botRow(bot("scout", "Scout", { title: "Research", tasks: [{ threadId: "t-other", title: "Not this one" }, { threadId: "t-scout", title: " Leeds trip " }] }), "cloud");
+ assert.equal(row.chat, "Leeds trip");
+ assert.equal("chat" in botRow(bot("none", "None", { tasks: [{ threadId: "t-other", title: "Elsewhere" }] }), "cloud"), false);
+});
+
test("a row carries when its conversations last moved there: their own times, never a word of them and never a routine run's", () => {
const row = botRow(bot("scout", "Scout", { tasks: [{ threadId: "t1", updatedAt: 3_000 }, { threadId: "t2", updatedAt: 9_000 }, { threadId: "t3", updatedAt: 99_000, routineRunId: "r" },
{ threadId: "t4", updatedAt: 50_000, archivedAt: 1 }, { threadId: "t5", updatedAt: "soon" }] }), "cloud");
diff --git a/src/components/BotPlaceMark.tsx b/src/components/BotPlaceMark.tsx
index efc0592dc7..16c4506a84 100644
--- a/src/components/BotPlaceMark.tsx
+++ b/src/components/BotPlaceMark.tsx
@@ -11,6 +11,19 @@ const ICONS: Record<PlaceIcon, LucideIcon> = {
/** Asleep and can't-be-reached are drawn quieter than the rest, never in an alarm colour. */
const QUIET = new Set<PlaceIcon>(["cloud-asleep", "cloud-off", "computer-off", "server-off"]);
+/** The avatars-only sidebar has no name to put the mark after: a row of the other place carries it as a small badge at
+ * its avatar's bottom-left instead, always (as the old group's rows did), in its informative icon while there is one.
+ * Rows of the other place have no model badge, which sits there for this page's own rows. */
+export function BotPlaceBadge({ mark }: { mark: PlaceMark | null }) {
+ if (!mark) return null;
+ const Icon = ICONS[mark.icon];
+ return (
+ <span data-bot-place-badge={mark.icon} className="absolute -bottom-0.5 -left-0.5 flex size-[18px] items-center justify-center rounded-full border-2 border-panel bg-panel">
+ <Icon size={12} strokeWidth={2} aria-hidden="true" className={cn("shrink-0", QUIET.has(mark.icon) ? "text-ink-tertiary" : "text-ink-secondary", mark.icon === "cloud-waking" && "animate-pulse motion-reduce:animate-none")} />
+ </span>
+ );
+}
+
export function BotPlaceMark({ mark }: { mark: PlaceMark | null }) {
if (!mark) return null;
const Icon = ICONS[mark.icon];
diff --git a/src/components/MoveToMyCloud.tsx b/src/components/MoveToMyCloud.tsx
index c40a09a27c..d390b68bf6 100644
--- a/src/components/MoveToMyCloud.tsx
+++ b/src/components/MoveToMyCloud.tsx
@@ -7,7 +7,7 @@ import { ArrowRightLeft, Check, Cloud, Loader2, X } from "lucide-react";
import type { BotMoveState, BotMoveView } from "../../electron/cloud-send.mjs";
import { botMoveLine, filterBots, ipcErrorText, CHOOSER_PAGE, MY_CLOUD_TEAM } from "@/lib/cloud-send";
import { t } from "@/lib/i18n";
-import { useOneList } from "@/lib/place-rows";
+import { useListedOnMyCloud } from "@/lib/place-rows";
import type { Bot } from "@/state/store";
import { ConfirmDialog } from "./ConfirmDialog";
import { NotNowButton, PRIMARY_BUTTON } from "./NoticeCard";
@@ -141,10 +141,10 @@ export function useMoveToMyCloud() {
/** The one row the bots that moved to My Cloud leave in the sidebar: however many there are, it opens My Cloud. */
export function MovedToMyCloudRow({ bots }: { bots: readonly Bot[] }) {
- const moved = bots.filter((bot) => bot.movedTo?.state === "moved" && bot.movedTo.team.id === MY_CLOUD_TEAM);
- // With the one list on, a bot that moved is listed where it lives now, among My Cloud's rows.
- const oneList = useOneList();
- if (!moved.length || oneList) return null;
+ // With the one list on, a bot that moved and that My Cloud's rows already list (it keeps its id there) is not said twice.
+ const listed = useListedOnMyCloud();
+ const moved = bots.filter((bot) => bot.movedTo?.state === "moved" && bot.movedTo.team.id === MY_CLOUD_TEAM && !listed.has(bot.id));
+ if (!moved.length) return null;
const page = bridge();
return <div className="flex flex-col px-2 pb-1">
<button type="button" data-moved-to-my-cloud={moved.length} disabled={!page?.openMyCloud} onClick={() => { void page?.openMyCloud?.().catch(() => {}); }}
diff --git a/src/components/OtherPlaceBots.dom.test.ts b/src/components/OtherPlaceBots.dom.test.ts
index 356d358a77..7d43bf44d3 100644
--- a/src/components/OtherPlaceBots.dom.test.ts
+++ b/src/components/OtherPlaceBots.dom.test.ts
@@ -65,7 +65,7 @@ it("a Cloud this window is not signed in to says so in one quiet line that opens
expect(document.body.querySelector("[role=alert], [role=dialog]")).toBeNull();
});
-it("a sleeping Cloud with nothing kept says so as normal, and opening it wakes it; one that can't be reached only says so", async () => {
+it("a sleeping or unreachable Cloud with nothing kept says so as normal, and the line opens it; while it wakes the line only says so", async () => {
const openMyCloud = vi.fn(async () => {});
window.ogb = { placesTogether: page, cloudSendPage: { openMyCloud } } as never;
said = state({ other: { home: "cloud", state: "asleep", bots: [] } });
@@ -77,6 +77,10 @@ it("a sleeping Cloud with nothing kept says so as normal, and opening it wakes i
said = state({ other: { home: "cloud", state: "offline", bots: [] } });
await act(async () => changed());
expect(q("[data-other-place-line]")!.textContent).toBe("My Cloud can't be reached right now.");
+ await act(async () => q("button[data-other-place-line]")!.click());
+ expect(openMyCloud).toHaveBeenCalledTimes(2);
+ said = state({ other: { home: "cloud", state: "waking", bots: [] } });
+ await act(async () => changed());
expect(q("[data-other-place-line]")!.tagName).toBe("P");
expect(q("[data-other-place-line]")!.getAttribute("role")).toBe("status");
});
diff --git a/src/components/OtherPlaceBots.tsx b/src/components/OtherPlaceBots.tsx
index a73e33c485..b33db21a27 100644
--- a/src/components/OtherPlaceBots.tsx
+++ b/src/components/OtherPlaceBots.tsx
@@ -16,7 +16,7 @@ const SAID: Record<Said, { icon: typeof Cloud; words: LocaleKey; opens?: true }>
"cloud:signin": { icon: Cloud, words: "together.state.signin", opens: true },
"cloud:asleep": { icon: CloudMoon, words: "together.line.asleep", opens: true },
"cloud:waking": { icon: Cloud, words: "together.state.waking" },
- "cloud:offline": { icon: CloudOff, words: "together.state.offlineCloud" },
+ "cloud:offline": { icon: CloudOff, words: "together.state.offlineCloud", opens: true },
"computer:offline": { icon: MonitorOff, words: "together.state.offlineComputer" },
};
diff --git a/src/components/Sidebar.one-list.dom.test.ts b/src/components/Sidebar.one-list.dom.test.ts
index b57ae00466..f648639db0 100644
--- a/src/components/Sidebar.one-list.dom.test.ts
+++ b/src/components/Sidebar.one-list.dom.test.ts
@@ -141,7 +141,7 @@ describe("switch on: one list", () => {
it("every row names its place to a screen reader; on screen the mark waits for hover or keyboard focus", async () => {
window.ogb = { placesTogether: page } as never;
await render();
- for (const [id, label, home] of [["git", "On this computer", "computer"], ["cloud:scout", "On My Cloud", "cloud"]] as const) {
+ for (const [id, label, home] of [["git", "Lives on this computer", "computer"], ["cloud:scout", "Lives on My Cloud", "cloud"]] as const) {
const icon = mark(id)!;
expect(icon.getAttribute("aria-label")).toBe(label);
expect(icon.getAttribute("role")).toBe("img");
@@ -221,8 +221,8 @@ describe("switch on: one list", () => {
window.ogb = { placesTogether: page } as never;
mode.advanced = true;
await render(OWN, true);
- expect(q('[data-sidebar-bot-row="cloud:scout"]')!.getAttribute("aria-label")).toContain("On My Cloud");
- expect(q('[data-sidebar-bot-row="git"]')!.getAttribute("aria-label")).toContain("On this computer");
+ expect(q('[data-sidebar-bot-row="cloud:scout"]')!.getAttribute("aria-label")).toContain("Lives on My Cloud");
+ expect(q('[data-sidebar-bot-row="git"]')!.getAttribute("aria-label")).toContain("Lives on this computer");
});
it("the rail's two circles: this computer's page has the one list; My Cloud's page lists My Cloud's bots only, as with the switch off", async () => {
@@ -245,6 +245,82 @@ describe("switch on: one list", () => {
expect(cloudPage).not.toContain("data-other-place");
});
+ it("rows of the other place never push rows under the pointer: they come in plain at the end, and take their place once the list is quiet", async () => {
+ vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout", "Date"] });
+ try {
+ window.ogb = { placesTogether: page } as never;
+ let release!: (value: PlacesTogetherState) => void;
+ answer = () => new Promise((resolve) => { release = resolve; });
+ await render();
+ const aside = q("aside")!;
+ aside.dispatchEvent(new Event("pointerenter"));
+ const local = ids();
+ await act(async () => release(said({ other: { home: "cloud", state: "ready", bots: [row("tech", { unread: true, lastAt: 9_000 }), row("scout", { working: true })] } })));
+ // The pointer is over the list: this computer's rows stay where they were, the new rows wait at the end, plain.
+ expect(ids().slice(0, local.length)).toEqual(local);
+ expect(ids('[data-sidebar-section-id="builtin:bots"]')).toEqual(["git", "ledger", "cloud:tech", "cloud:scout"]);
+ expect(q('[data-sidebar-section-id="builtin:unread"]')).toBeNull();
+ await act(async () => { vi.advanceTimersByTime(10_000); });
+ expect(q('[data-sidebar-section-id="builtin:unread"]')).toBeNull();
+ // Gone from the list, then a click on it within the quiet time: still waiting.
+ aside.dispatchEvent(new Event("pointerleave"));
+ aside.dispatchEvent(new Event("pointerdown"));
+ await act(async () => { vi.advanceTimersByTime(1_500); });
+ expect(q('[data-sidebar-section-id="builtin:unread"]')).toBeNull();
+ await act(async () => { vi.advanceTimersByTime(600); });
+ expect(ids('[data-sidebar-section-id="builtin:unread"]')).toEqual(["cloud:tech"]);
+ expect(ids('[data-sidebar-section-id="builtin:bots"]')).toEqual(["cloud:scout", "git", "ledger"]);
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ it("an answer that changes nothing moves nothing: the same rows stay, the same elements", async () => {
+ window.ogb = { placesTogether: page } as never;
+ await render();
+ const before = [...host.querySelectorAll("[data-sidebar-bot-row]")];
+ await act(async () => changed());
+ await act(async () => { await Promise.resolve(); });
+ const after = [...host.querySelectorAll("[data-sidebar-bot-row]")];
+ expect(after.length).toBe(before.length);
+ after.forEach((element, index) => expect(element).toBe(before[index]));
+ });
+
+ it("a row kept from before My Cloud slept is not working: it does not float, and its mark says asleep", async () => {
+ window.ogb = { placesTogether: page } as never;
+ answer = async () => said({ other: { home: "cloud", state: "asleep", bots: [row("scout", { working: true }), row("atlas")] } });
+ await render();
+ expect(ids('[data-sidebar-section-id="builtin:bots"]')).toEqual(["git", "ledger", "cloud:scout", "cloud:atlas"]);
+ expect(mark("cloud:scout")!.getAttribute("data-bot-place")).toBe("cloud-asleep");
+ expect(q('[data-sidebar-bot-row="cloud:scout"] [data-testid="working-dot"]')).toBeNull();
+ });
+
+ it("in the avatars-only sidebar a row of the other place keeps a small place badge, in its informative icon while there is one", async () => {
+ window.ogb = { placesTogether: page } as never;
+ mode.advanced = true;
+ answer = async () => said({ other: { home: "cloud", state: "asleep", bots: [row("scout")] } });
+ await render(OWN, true);
+ expect(q('[data-sidebar-bot-row="cloud:scout"] [data-bot-place-badge]')!.getAttribute("data-bot-place-badge")).toBe("cloud-asleep");
+ expect(q('[data-sidebar-bot-row="git"] [data-bot-place-badge]')).toBeNull();
+ answer = async () => said({ other: { home: "cloud", state: "ready", bots: [row("scout")] } });
+ await act(async () => changed());
+ await act(async () => { await Promise.resolve(); });
+ expect(q('[data-sidebar-bot-row="cloud:scout"] [data-bot-place-badge]')!.getAttribute("data-bot-place-badge")).toBe("cloud");
+ });
+
+ it("a bot moved to My Cloud keeps today's row unless My Cloud's rows already list it", async () => {
+ window.ogb = { placesTogether: page } as never;
+ const moved = bot("old", { hidden: true, movedTo: { team: { id: "my-cloud", name: "My Cloud" }, state: "moved", at: 1 } } as Partial<Bot>);
+ answer = async () => said({ other: { home: "cloud", state: "signin", bots: [] } });
+ await render([...OWN, moved]);
+ expect(q("[data-moved-to-my-cloud]")).not.toBeNull();
+ answer = async () => said({ other: { home: "cloud", state: "ready", bots: [row("old")] } });
+ await act(async () => changed());
+ await act(async () => { await Promise.resolve(); });
+ expect(q("[data-moved-to-my-cloud]")).toBeNull();
+ expect(q('[data-sidebar-bot-row="cloud:old"]')).not.toBeNull();
+ });
+
it("a place that never answers leaves this place's list whole, and the first answer adds its rows without a wait", async () => {
window.ogb = { placesTogether: page } as never;
let release!: (value: PlacesTogetherState) => void;
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 0c66e278ab..94e081d4d6 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -73,7 +73,7 @@ import { SidebarProfileMenu } from "./SidebarProfileMenu";
import { PHONE_LAYOUT, useMediaQuery } from "@/lib/use-media-query";
import { GlassBar, GlassScrollFrame, GlassScroller } from "./GlassScrollFrame";
import { DesktopWorkspaceSwitcher, endCloudHowTo } from "./DesktopWorkspaceSwitcher"; import { PlaceTint } from "./PlaceTint"; import { ChromeRailToggle } from "./ChromeRailToggle";
-import { useCloudOwner } from "./CloudOwner"; import { OtherPlaceLine } from "./OtherPlaceBots"; import { BotPlaceMark } from "./BotPlaceMark"; import { isPlacedBot, NO_MENU, otherPlaceDispatch, ownRows, placedLine, rowPlaceMark, useOneListHere, useOtherPlaceBots, withOtherPlace } from "@/lib/place-rows"; import type { BotHome } from "@/lib/places-together"; import { NewBotOtherPlaceItem, useNewBotHereLabel } from "./NewBotPlaceItems";
+import { useCloudOwner } from "./CloudOwner"; import { OtherPlaceLine } from "./OtherPlaceBots"; import { BotPlaceBadge, BotPlaceMark } from "./BotPlaceMark"; import { isPlacedBot, NO_MENU, otherPlaceDispatch, ownRows, placedLine, rowPlaceMark, useOneListHere, useOtherPlaceBots, withOtherPlace } from "@/lib/place-rows"; import type { BotHome } from "@/lib/places-together"; import { NewBotOtherPlaceItem, useNewBotHereLabel } from "./NewBotPlaceItems";
import { SidebarSectionHeader } from "./SidebarSectionHeader";
import { NeedsYouButton, OwnerPickerHost } from "./TeamOwner"; import { SidebarPeople } from "./SidebarPeople"; import { SidebarInboxRow } from "./SidebarInboxRow"; import { TeamSideSwitch, useTeamSideLists } from "./TeamSideSwitch"; import { SidebarActiveThreads } from "./SidebarActiveThreads"; import { setAttentionPinned, useAttentionPinned } from "./inbox/attention-pinned"; import { useInboxSupport } from "@/state/inbox";
import { TeamMenuItems } from "./SidebarTeamMenu";
@@ -743,7 +743,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
animated={beat || working || noticing}
/>
{/* Bottom-left, clear of the status dots on the right and of the row's hover actions. */}
- {(iconOnly || !simpleList) && <BotModelBadge bot={bot} instances={instances} avatarSize={avatarSize} />}
+ {(iconOnly || !simpleList) && <BotModelBadge bot={bot} instances={instances} avatarSize={avatarSize} />}{iconOnly && placed && <BotPlaceBadge mark={placeMark} />}
{simpleRow && <AvatarActivityDot activity={working ? "working" : failed ? "failed" : teammateWait ? "teammate" : queued && !waiting ? "queued" : null} />}
{!simpleRow && working && (
<span
@@ -1093,7 +1093,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
b.projects?.some((folder) => folder.name.toLowerCase().includes(q)),
);
const visibleGroups = sideLists.groups.filter((g) => !q || g.name.toLowerCase().includes(q) || g.tasks?.some((task) => task.title.toLowerCase().includes(q)));
- const viewerEmail = useViewerEmail(), placed = useOtherPlaceBots(q), placeHere = useOneListHere();
+ const viewerEmail = useViewerEmail(), placed = useOtherPlaceBots(q, sidebarRef), placeHere = useOneListHere();
const parts = partitionSidebarBots(botDrag.preview(matchingBots), { universalPins, viewerEmail, welcoming: useWelcomingBot(), searching: Boolean(q) });
const saved = withOtherPlace(simpleDesk ? withPrimaryTile(parts, myDefaultBot(state.bots, viewerEmail)?.id) : { ...parts, primary: null }, placed);
// Shown order only: a drag or Alt+Up/Down moves a bot among the rows as drawn and saves it into the saved order of the
diff --git a/src/lib/place-rows.test.ts b/src/lib/place-rows.test.ts
index 1ca5dcf480..0de341580e 100644
--- a/src/lib/place-rows.test.ts
+++ b/src/lib/place-rows.test.ts
@@ -27,9 +27,9 @@ describe("a row of the other place as a bot of the one list", () => {
});
it("carries a name, a look, a state and a time, and nothing of the other place's engine or settings", () => {
- const bot = placedBot(row("cloud", "nova", { name: "Nova", title: "Research", color: "pink", mascotBody: "classic", unread: true, working: true, chief: true, lastAt: 42 }), "asleep");
+ const bot = placedBot(row("cloud", "nova", { name: "Nova", title: "Research", color: "pink", mascotBody: "classic", unread: true, working: true, chief: true, lastAt: 42 }), "ready");
expect(bot).toMatchObject({ name: "Nova", title: "Research", color: "pink", unread: true, busy: true, activity: "working", lastAt: 42, messages: [] });
- expect(bot.placedFrom).toEqual({ place: { key: "cloud", kind: "my-cloud", label: "My Cloud" }, id: "nova", health: "asleep" });
+ expect(bot.placedFrom).toEqual({ place: { key: "cloud", kind: "my-cloud", label: "My Cloud" }, id: "nova", health: "ready" });
expect(bot.modelSelection).toEqual({ instanceId: "", model: "" });
// The Chief stays where it started: the other place's is an ordinary row here.
expect(bot.chiefOfStaff).toBeUndefined();
@@ -43,6 +43,21 @@ describe("a row of the other place as a bot of the one list", () => {
expect(placedLine(bot, true)).toBe("");
});
+ it("is not working while its place is asleep, waking or can't be reached: a row kept from before is not working now", () => {
+ for (const health of ["asleep", "waking", "offline", "loading"] as const) {
+ const bot = placedBot(row("cloud", "scout", { working: true }), health);
+ expect([bot.busy, bot.activity], health).toEqual([undefined, undefined]);
+ }
+ expect(placedBot(row("cloud", "scout", { working: true }), "ready")).toMatchObject({ busy: true, activity: "working" });
+ expect(placedBot(row("cloud", "scout", { waiting: true }), "asleep").activity).toBe("waiting-on-you");
+ });
+
+ it("with no preview, its second line is the conversation it has open there, before its role", () => {
+ const bot = placedBot(row("cloud", "nova", { title: "Research", chat: "Leeds trip" }), "ready");
+ expect(placedLine(bot, false)).toBe("Leeds trip");
+ expect(placedLine(bot, true)).toBe("Leeds trip");
+ });
+
it("shows the start of its newest line, in the same plain words as this place's own rows, when the other place sent one", () => {
const bot = placedBot(row("cloud", "nova", { title: "Research", preview: "**Filed** the [March invoices](https://drive.example/x) in your Drive." }), "ready");
expect(placedLine(bot, false)).toBe("Filed the March invoices in your Drive.");
@@ -54,7 +69,7 @@ describe("a row of the other place as a bot of the one list", () => {
const rack: Place = { key: "env-91bc", kind: "own-server", label: "Basement server" };
expect(placedBot(row("computer", "render"), "ready", studio).id).toBe("env-7f3a:render");
expect(placedBot(row("computer", "render"), "ready", rack).id).toBe("env-91bc:render");
- expect(placeMark(studio, "ready", false, "Render")).toMatchObject({ place: "env-7f3a", kind: "home-computer", icon: "computer", label: "On Studio Mac", shows: "hover" });
+ expect(placeMark(studio, "ready", false, "Render")).toMatchObject({ place: "env-7f3a", kind: "home-computer", icon: "computer", label: "Lives on Studio Mac", shows: "hover" });
expect(placeMark(rack, "ready", true, "Render")).toMatchObject({ icon: "server", label: "Working on Basement server now", shows: "always" });
expect(placeMark(rack, "offline", false, "Render")).toMatchObject({ icon: "server-off", label: "Basement server can't be reached right now. Render carries on when it's back.", shows: "always" });
expect(placeMark(studio, "offline", false, "Render").icon).toBe("computer-off");
@@ -124,8 +139,8 @@ describe("what a row of the other place does", () => {
describe("the device mark", () => {
it("names where the bot lives, on hover and keyboard focus only, while there is nothing more to say", () => {
- expect(placeMark(placeOfHome("computer"), "ready", false, "Git")).toEqual({ place: "computer", kind: "this-computer", icon: "computer", label: "On this computer", shows: "hover" });
- expect(placeMark(placeOfHome("cloud"), "ready", false, "Scout")).toEqual({ place: "cloud", kind: "my-cloud", icon: "cloud", label: "On My Cloud", shows: "hover" });
+ expect(placeMark(placeOfHome("computer"), "ready", false, "Git")).toEqual({ place: "computer", kind: "this-computer", icon: "computer", label: "Lives on this computer", shows: "hover" });
+ expect(placeMark(placeOfHome("cloud"), "ready", false, "Scout")).toEqual({ place: "cloud", kind: "my-cloud", icon: "cloud", label: "Lives on My Cloud", shows: "hover" });
expect(placeMark(placeOfHome("cloud"), "loading", false, "Scout").shows).toBe("hover");
});
@@ -144,12 +159,36 @@ describe("the device mark", () => {
it("speaks the person's language", () => {
setLocale("pt-br");
- expect(placeMark(placeOfHome("cloud"), "ready", false, "Scout").label).toBe("No My Cloud");
+ expect(placeMark(placeOfHome("cloud"), "ready", false, "Scout").label).toBe("Fica no My Cloud");
expect(placeMark(placeOfHome("cloud"), "asleep", false, "Atlas").label).toBe("O My Cloud está em repouso. Abrir Atlas o ativa.");
});
});
describe("a steady list", () => {
+ it("a later answer that brings no rows only because the place is asleep, waking, loading or unreachable keeps the rows it had", async () => {
+ vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);
+ let changed = () => {};
+ let said: PlacesTogetherState = { v: 1, available: true, on: true, here: "computer", other: { home: "cloud", state: "ready", bots: [row("cloud", "scout"), row("cloud", "nova")] } };
+ window.ogb = { placesTogether: { state: async () => said, onChanged: (callback: () => void) => { changed = callback; return () => {}; } } } as never;
+ const seen: Array<readonly Bot[]> = [];
+ const Probe = () => { seen.push(useOtherPlaceBots("")); return null; };
+ const host = document.createElement("div"), root = createRoot(host);
+ await act(async () => root.render(createElement(Probe)));
+ await act(async () => { await Promise.resolve(); });
+ for (const state of ["loading", "asleep", "waking", "offline"] as const) {
+ said = { ...said, other: { home: "cloud", state, bots: [] } };
+ await act(async () => changed());
+ await act(async () => { await Promise.resolve(); });
+ expect(seen.at(-1)!.map((bot) => bot.id), state).toEqual(["cloud:scout", "cloud:nova"]);
+ }
+ said = { ...said, other: { home: "cloud", state: "signin", bots: [] } };
+ await act(async () => changed());
+ await act(async () => { await Promise.resolve(); });
+ expect(seen.at(-1)).toEqual([]);
+ await act(async () => root.unmount());
+ });
+
+
it("main answering again with the same rows keeps the same list and the same bots, so no row is drawn again; a changed row is new", async () => {
vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);
let changed = () => {};
diff --git a/src/lib/place-rows.ts b/src/lib/place-rows.ts
index e420f2ce79..a0ab6a0c47 100644
--- a/src/lib/place-rows.ts
+++ b/src/lib/place-rows.ts
@@ -10,12 +10,13 @@
// Everything here is keyed by a place, not by "My Cloud": today the places are this computer and My Cloud, and a
// person's own always-on machine (a server of their own, or a computer at home) is meant to join the same list later
// as one more place, with its own key, kind, name and state.
-import type { Dispatch } from "react";
+import { useEffect, useSyncExternalStore, type Dispatch, type RefObject } from "react";
import { BOT_BODY_IDS, type BotBodyId } from "../../shared/bot-body";
import { MASCOT_FACE_COLORS, mascotBodyColorSchema, mascotMaterialSchema, type MascotFaceColor } from "../../shared/bot-avatar";
import type { Action, Bot } from "@/state/store";
import { citationPreviewText } from "./citations";
import { t } from "./i18n";
+import { localizedTaskTitle } from "./task-title";
import { plainPreviewText } from "../../shared/plain-preview";
import { MAUS_COLOR_NAMES, type MausColor } from "./mascot";
import { openOtherPlaceBot, usePlacesTogetherPart, type BotHome, type PlaceBotRow, type PlacesTogetherState } from "./places-together";
@@ -41,12 +42,14 @@ export function placeOfHome(home: BotHome): Place {
/** A bot's key in a list that holds several places: ids are unique only within one. */
export const placeKeyed = (place: Pick<Place, "key">, id: string): string => `${place.key}:${id}`;
-/** Where a row of the other place comes from: its place, its own id there, how that place is doing, and its preview. */
+/** Where a row of the other place comes from: its place, its own id there, how that place is doing, its preview and the
+ * title of the conversation it has open there. */
export interface PlacedFrom {
place: Place;
id: string;
health: PlaceHealth;
preview?: string;
+ chat?: string;
}
export type PlacedBot = Bot & { placedFrom: PlacedFrom; lastAt?: number };
@@ -69,11 +72,13 @@ export function placedBot(row: PlaceBotRow, health: PlaceHealth, place: Place =
mascotBodyColor: mascotBodyColorSchema.safeParse(row.mascotBodyColor).data ?? null,
mascotMaterial: mascotMaterialSchema.safeParse(row.mascotMaterial).data ?? null,
unread: row.unread === true,
- ...(row.waiting ? { activity: "waiting-on-you" as const } : row.working ? { busy: true, activity: "working" as const } : {}),
+ // Working is believed only while its place answers: a row kept from before My Cloud slept, or while it can't be
+ // reached, is not working now as far as anyone here knows.
+ ...(row.waiting ? { activity: "waiting-on-you" as const } : row.working && health === "ready" ? { busy: true, activity: "working" as const } : {}),
// No engine of this place: no model badge, and nothing here runs it.
modelSelection: { instanceId: "", model: "" },
messages: [],
- placedFrom: { place, id: row.id, health, ...(row.preview ? { preview: row.preview } : {}) },
+ placedFrom: { place, id: row.id, health, ...(row.preview ? { preview: row.preview } : {}), ...(row.chat ? { chat: row.chat } : {}) },
...(row.lastAt !== undefined ? { lastAt: row.lastAt } : {}),
};
}
@@ -89,6 +94,9 @@ let adapted = new Map<string, { row: PlaceBotRow; health: PlaceHealth; bot: Plac
const NONE: readonly PlacedBot[] = Object.freeze([]);
let lastState: PlacesTogetherState | null | undefined;
let lastList: readonly PlacedBot[] = NONE;
+/** The rows the other place gave last, kept while a later answer brings none only because that place is loading,
+ * asleep, waking or can't be reached: a read never takes rows away to put them back. */
+let lastRows: { home: BotHome; rows: PlaceBotRow[] } | null = null;
/** The one list is on for this page: the switch is on, main lists the other place, and this is this computer's page. */
export const oneListOn = (state: PlacesTogetherState | null): boolean => state?.on === true && state.other !== null && state.here === "computer";
@@ -97,8 +105,11 @@ function placedList(state: PlacesTogetherState | null): readonly PlacedBot[] {
if (state === lastState) return lastList;
lastState = state;
const other = oneListOn(state) ? state!.other : null;
+ const held = other && !other.bots.length && other.state !== "ready" && other.state !== "signin" && lastRows?.home === other.home ? lastRows.rows : null;
+ const rows = held ?? other?.bots ?? [];
+ lastRows = other ? { home: other.home, rows } : null;
const kept = new Map<string, { row: PlaceBotRow; health: PlaceHealth; bot: PlacedBot }>();
- const next = (other?.bots ?? []).map((row) => {
+ const next = rows.map((row) => {
const key = placeKeyed(placeOfHome(row.home), row.id), had = adapted.get(key);
const entry = had && had.health === other!.state && sameRow(had.row, row) ? had : { row, health: other!.state, bot: placedBot(row, other!.state) };
kept.set(key, entry);
@@ -112,8 +123,10 @@ function placedList(state: PlacesTogetherState | null): readonly PlacedBot[] {
/** The other place's bots for the one list, matching the sidebar's search (`query`, already trimmed and lower case).
* The same empty list while the switch is off, in a browser, and on any other place's page. */
-export function useOtherPlaceBots(query: string): readonly PlacedBot[] {
- const all = usePlacesTogetherPart(placedList);
+export function useOtherPlaceBots(query: string, list?: RefObject<HTMLElement | null>): readonly PlacedBot[] {
+ useQuietList(list);
+ const answered = usePlacesTogetherPart(placedList);
+ const all = useSyncExternalStore(subscribeQuiet, () => settled(answered), () => settled(answered));
if (!query || !all.length) return all;
if (lastSearch.all !== all || lastSearch.query !== query) {
lastSearch = { all, query, found: all.filter((bot) => bot.name.toLowerCase().includes(query) || bot.title.toLowerCase().includes(query)) };
@@ -123,6 +136,76 @@ export function useOtherPlaceBots(query: string): readonly PlacedBot[] {
/** The last search's rows, kept while the list and the words stay the same (no hook: the sidebar calls this on every draw). */
let lastSearch: { all: readonly PlacedBot[]; query: string; found: readonly PlacedBot[] } = { all: NONE, query: "", found: NONE };
+// Rows of the other place never push rows the person can already see. They come in after this page's own and are
+// ranked (Unread, working first) only while the list is quiet: the pointer is not over it and it has not been clicked,
+// typed in or scrolled for QUIET_MS. Until then a new row of the other place is listed at the end of the main list as
+// a plain row, and a row that changed keeps the place it had; both take their place once the list is quiet.
+export const QUIET_MS = 2_000;
+const quiet = { inside: false, lastAt: -Infinity, version: 0, pending: false, timer: null as ReturnType<typeof setTimeout> | null };
+const quietListeners = new Set<() => void>();
+const subscribeQuiet = (listener: () => void) => { quietListeners.add(listener); return () => { quietListeners.delete(listener); }; };
+const isQuiet = () => !quiet.inside && Date.now() - quiet.lastAt >= QUIET_MS;
+/** What each row of the other place was last ranked by. */
+let ranked = new Map<string, PlacedBot>();
+const plain = new WeakMap<PlacedBot, PlacedBot>();
+let lastSettled: { answered: readonly PlacedBot[]; version: number; list: readonly PlacedBot[] } | null = null;
+
+function settleWhenQuiet(): void {
+ if (quiet.timer !== null) clearTimeout(quiet.timer);
+ quiet.timer = null;
+ if (quiet.inside || !quiet.pending) return;
+ quiet.timer = setTimeout(() => {
+ quiet.timer = null;
+ if (!isQuiet()) { settleWhenQuiet(); return; }
+ quiet.version += 1;
+ for (const listener of quietListeners) listener();
+ }, Math.max(0, quiet.lastAt + QUIET_MS - Date.now()));
+}
+
+/** A row of the other place as it is ranked before its place in the list is settled: no unread, no work, no time. */
+function plainRow(bot: PlacedBot): PlacedBot {
+ let row = plain.get(bot);
+ if (!row) { row = { ...bot, unread: false, busy: undefined, activity: undefined, lastAt: undefined }; plain.set(bot, row); }
+ return row;
+}
+
+function settled(answered: readonly PlacedBot[]): readonly PlacedBot[] {
+ if (lastSettled && lastSettled.answered === answered && lastSettled.version === quiet.version) return lastSettled.list;
+ let list: readonly PlacedBot[];
+ if (isQuiet()) {
+ ranked = new Map(answered.map((bot) => [bot.id, bot]));
+ quiet.pending = false;
+ list = answered;
+ } else {
+ const next = answered.map((bot) => ranked.get(bot.id) ?? plainRow(bot));
+ quiet.pending = next.some((bot, index) => bot !== answered[index]);
+ const before = lastSettled?.list;
+ list = before && before.length === next.length && next.every((bot, index) => bot === before[index]) ? before : next;
+ settleWhenQuiet();
+ }
+ lastSettled = { answered, version: quiet.version, list };
+ return list;
+}
+
+/** Follows the pointer and the person's clicks, keys and scrolling on the list, for QUIET_MS. */
+function useQuietList(list?: RefObject<HTMLElement | null>): void {
+ useEffect(() => {
+ const element = list?.current;
+ if (!element) return;
+ const touched = () => { quiet.lastAt = Date.now(); settleWhenQuiet(); };
+ const enter = () => { quiet.inside = true; settleWhenQuiet(); };
+ const leave = () => { quiet.inside = false; settleWhenQuiet(); };
+ const events: Array<[string, () => void]> = [["pointerenter", enter], ["pointerleave", leave], ["pointerdown", touched], ["keydown", touched], ["wheel", touched]];
+ for (const [name, handler] of events) element.addEventListener(name, handler, { passive: true });
+ element.addEventListener("scroll", touched, { capture: true, passive: true });
+ return () => {
+ for (const [name, handler] of events) element.removeEventListener(name, handler);
+ element.removeEventListener("scroll", touched, { capture: true });
+ quiet.inside = false;
+ };
+ }, [list]);
+}
+
/** The sidebar's parts with the other place's rows after this place's own in the main list: the busy-first order and
* Unread then take every row the same way. Departments, pins and tiles stay this place's own. */
export function withOtherPlace<T extends { unsectionedBots: Bot[] }>(parts: T, placed: readonly PlacedBot[]): T {
@@ -158,11 +241,12 @@ export function otherPlaceDispatch(bot: PlacedBot): Dispatch<Action> {
export const NO_MENU = (): void => {};
/** The second line of a row of the other place: the start of its newest line, in the same plain words this page's own
- * rows use, while the other place sent one; else its title in the Simple sidebar, where no role is shown, and nothing in
- * Advanced, whose row shows the title as its role already. */
+ * rows use, while the other place sent one; else the title of the conversation it has open there; else its role in the
+ * Simple sidebar, where no role is shown, and nothing in Advanced, whose row shows the role already. */
export function placedLine(bot: PlacedBot, advanced: boolean): string {
- const preview = bot.placedFrom.preview;
+ const { preview, chat } = bot.placedFrom;
if (preview) return plainPreviewText(citationPreviewText(preview));
+ if (chat) return localizedTaskTitle(chat);
return advanced ? "" : bot.title;
}
@@ -197,7 +281,7 @@ export function placeMark(place: Place, health: PlaceHealth, working: boolean, n
: kind === "this-computer" ? t("together.state.offlineComputer") : t("together.mark.offline", { place: place.label, name }), "always");
if (working) return mark(device.icon, kind === "my-cloud" ? t("together.mark.workingCloud") : kind === "this-computer" ? t("together.mark.workingComputer")
: t("together.mark.workingOn", { place: place.label }), "always");
- return mark(device.icon, kind === "my-cloud" ? t("together.onCloud") : kind === "this-computer" ? t("together.onComputer") : t("together.mark.on", { place: place.label }), "hover");
+ return mark(device.icon, kind === "my-cloud" ? t("together.mark.livesCloud") : kind === "this-computer" ? t("together.mark.livesComputer") : t("together.mark.livesOn", { place: place.label }), "hover");
}
/** This page's place while the one list is on; null while it is off, in a browser, on My Cloud's page and on any other
@@ -217,9 +301,20 @@ export function useOneListHere(): BotHome | null {
return usePlacesTogetherPart(hereOf);
}
-/** The one list is on: this page's own rows and the other place's share the list. */
-export function useOneList(): boolean {
- return usePlacesTogetherPart(hereOf) !== null;
+const NO_IDS: ReadonlySet<string> = new Set();
+let listedIds: { list: readonly PlacedBot[]; ids: ReadonlySet<string> } = { list: NONE, ids: NO_IDS };
+const listedOnMyCloud = (state: PlacesTogetherState | null): ReadonlySet<string> => {
+ const list = placedList(state);
+ if (listedIds.list !== list) {
+ const ids = list.filter((bot) => bot.placedFrom.place.kind === "my-cloud").map((bot) => bot.placedFrom.id);
+ listedIds = { list, ids: ids.length ? new Set(ids) : NO_IDS };
+ }
+ return listedIds.ids;
+};
+
+/** The ids, on My Cloud, of the bots its rows list in this page's one list: none with it off. */
+export function useListedOnMyCloud(): ReadonlySet<string> {
+ return usePlacesTogetherPart(listedOnMyCloud);
}
export function resetPlaceRowsForTest(): void {
@@ -227,5 +322,10 @@ export function resetPlaceRowsForTest(): void {
lastState = undefined;
lastList = NONE;
lastSearch = { all: NONE, query: "", found: NONE };
+ lastRows = null;
+ ranked = new Map();
+ lastSettled = null;
+ if (quiet.timer !== null) clearTimeout(quiet.timer);
+ Object.assign(quiet, { inside: false, lastAt: -Infinity, version: 0, pending: false, timer: null });
openers.clear();
}
diff --git a/src/lib/sidebar-shortcut-order.test.ts b/src/lib/sidebar-shortcut-order.test.ts
index 07fa7aca2f..f1bfac71cc 100644
--- a/src/lib/sidebar-shortcut-order.test.ts
+++ b/src/lib/sidebar-shortcut-order.test.ts
@@ -73,3 +73,12 @@ describe("nextShortcutBot", () => {
expect(nextShortcutBot([], "a", 1)).toBeUndefined();
});
});
+
+describe("the one list", () => {
+ it("rows of the other place are not numbered: ⌘1…⌘9 go through this page's own bots in the order shown", () => {
+ const root = document.createElement("div");
+ root.innerHTML = ["cloud:tech", "git", "cloud:scout", "ledger", "computer:x"].map((id) => `<div data-sidebar-bot-row="${id}"></div>`).join("");
+ expect(shownBotIds(root)).toEqual(["git", "ledger"]);
+ expect(shortcutBots([{ id: "ledger" }, { id: "git" }], shownBotIds(root)).map((bot) => bot.id)).toEqual(["git", "ledger"]);
+ });
+});
diff --git a/src/lib/sidebar-shortcut-order.ts b/src/lib/sidebar-shortcut-order.ts
index ceda895bba..9c60a5f174 100644
--- a/src/lib/sidebar-shortcut-order.ts
+++ b/src/lib/sidebar-shortcut-order.ts
@@ -1,12 +1,14 @@
/**
* The bots that ⌘1…⌘9 and ⌘⇧[ / ⌘⇧] step through, in the order the sidebar shows them. Sections, a custom bot
* order, collapsed sections, pinned tiles and a search all change that order, so it is read from the rendered rows
- * instead of being rebuilt from `state.bots`.
+ * instead of being rebuilt from `state.bots`. With the one list on, rows of the other place (keyed `place:id`,
+ * src/lib/place-rows.ts) are not numbered: ⌘1…⌘9 and ⌘⇧[ / ⌘⇧] go through this page's own bots, in the order shown,
+ * and never take the window to another place or wake My Cloud. A click on such a row opens it there.
*/
export function shownBotIds(root: ParentNode | null | undefined): string[] {
if (!root) return [];
const ids = [...root.querySelectorAll<HTMLElement>("[data-sidebar-bot-row]")].map((row) => row.dataset.sidebarBotRow ?? "");
- return [...new Set(ids.filter(Boolean))];
+ return [...new Set(ids.filter((id) => id && !id.includes(":")))];
}
/** `bots` in the sidebar's order; with no sidebar on screen, `bots` as they are. */
diff --git a/src/locales/de.json b/src/locales/de.json
index 31e85474d6..c84e700b2e 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4190,7 +4190,9 @@
"together.mark.asleep": "Meine Cloud schläft. Wenn du {name} öffnest, wird sie geweckt.",
"together.mark.offlineCloud": "Meine Cloud ist gerade nicht erreichbar. {name} macht weiter, sobald sie wieder da ist.",
"together.line.asleep": "Meine Cloud schläft. Öffne sie, um ihre Bots zu sehen.",
- "together.mark.on": "Auf {place}",
+ "together.mark.livesCloud": "Wohnt in Meiner Cloud",
+ "together.mark.livesComputer": "Wohnt auf diesem Computer",
+ "together.mark.livesOn": "Wohnt auf {place}",
"together.mark.workingOn": "Arbeitet gerade auf {place}",
"together.mark.offline": "{place} ist gerade nicht erreichbar. {name} macht weiter, sobald es wieder da ist.",
"server.rooms.linkedAway": "{bot} läuft auf {place}, das gerade aus ist oder schläft. Die Antwort kommt hier, sobald {place} wieder da ist.",
diff --git a/src/locales/en.json b/src/locales/en.json
index 19e677b5b8..4c8002480e 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -11435,7 +11435,9 @@
"together.mark.asleep": "My Cloud is asleep. Opening {name} wakes it.",
"together.mark.offlineCloud": "My Cloud can't be reached right now. {name} carries on when it's back.",
"together.line.asleep": "My Cloud is asleep. Open it to see its bots.",
- "together.mark.on": "On {place}",
+ "together.mark.livesCloud": "Lives on My Cloud",
+ "together.mark.livesComputer": "Lives on this computer",
+ "together.mark.livesOn": "Lives on {place}",
"together.mark.workingOn": "Working on {place} now",
"together.mark.offline": "{place} can't be reached right now. {name} carries on when it's back.",
"together.state.signin": "Open My Cloud once to sign in.",
diff --git a/src/locales/es.json b/src/locales/es.json
index ed1c4e9a96..9ce7104130 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -6521,7 +6521,9 @@
"together.mark.asleep": "My Cloud está en reposo. Al abrir {name} se despierta.",
"together.mark.offlineCloud": "No se puede acceder a My Cloud ahora mismo. {name} seguirá cuando vuelva.",
"together.line.asleep": "My Cloud está en reposo. Ábrelo para ver sus bots.",
- "together.mark.on": "En {place}",
+ "together.mark.livesCloud": "Vive en My Cloud",
+ "together.mark.livesComputer": "Vive en este equipo",
+ "together.mark.livesOn": "Vive en {place}",
"together.mark.workingOn": "Trabajando ahora en {place}",
"together.mark.offline": "No se puede acceder a {place} ahora mismo. {name} seguirá cuando vuelva.",
"imageGen.complexity.label": "Nivel de detalle",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 8533f9d454..c5dae923b3 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -3926,7 +3926,9 @@
"together.mark.asleep": "Mon Cloud est en veille. Ouvrir {name} le réveille.",
"together.mark.offlineCloud": "Mon Cloud est injoignable pour le moment. {name} reprendra dès son retour.",
"together.line.asleep": "Mon Cloud est en veille. Ouvrez-le pour voir ses bots.",
- "together.mark.on": "Sur {place}",
+ "together.mark.livesCloud": "Vit sur Mon Cloud",
+ "together.mark.livesComputer": "Vit sur cet ordinateur",
+ "together.mark.livesOn": "Vit sur {place}",
"together.mark.workingOn": "Travaille sur {place} en ce moment",
"together.mark.offline": "{place} est injoignable pour le moment. {name} reprendra dès son retour.",
"imageGen.complexity.label": "Niveau de détail",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 7b9a29f85f..dba34f44a4 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -3778,7 +3778,9 @@
"together.mark.asleep": "मेरा क्लाउड सो रहा है। {name} खोलने पर यह जाग जाएगा।",
"together.mark.offlineCloud": "मेरे क्लाउड तक अभी पहुँचा नहीं जा सकता। इसके वापस आने पर {name} काम जारी रखेगा।",
"together.line.asleep": "मेरा क्लाउड सो रहा है। इसके बॉट देखने के लिए इसे खोलें।",
- "together.mark.on": "{place} पर",
+ "together.mark.livesCloud": "मेरे क्लाउड पर रहता है",
+ "together.mark.livesComputer": "इस कंप्यूटर पर रहता है",
+ "together.mark.livesOn": "{place} पर रहता है",
"together.mark.workingOn": "अभी {place} पर काम कर रहा है",
"together.mark.offline": "{place} तक अभी पहुँचा नहीं जा सकता। इसके वापस आने पर {name} काम जारी रखेगा।",
"imageGen.complexity.label": "विवरण स्तर",
diff --git a/src/locales/it.json b/src/locales/it.json
index d05998cbd7..306fb5f40c 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -11394,7 +11394,9 @@
"together.mark.asleep": "Il mio Cloud è in sospensione. Aprire {name} lo riattiva.",
"together.mark.offlineCloud": "Il mio Cloud non è raggiungibile al momento. {name} riprende quando torna disponibile.",
"together.line.asleep": "Il mio Cloud è in sospensione. Aprilo per vedere i suoi bot.",
- "together.mark.on": "Su {place}",
+ "together.mark.livesCloud": "Vive sul mio Cloud",
+ "together.mark.livesComputer": "Vive su questo computer",
+ "together.mark.livesOn": "Vive su {place}",
"together.mark.workingOn": "Al lavoro su {place} ora",
"together.mark.offline": "{place} non è raggiungibile al momento. {name} riprende quando torna disponibile.",
"together.state.signin": "Aprire il mio cloud una volta per accedere.",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index abcac414d0..b492b1ae4f 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -8059,7 +8059,9 @@
"together.mark.asleep": "My Cloud はスリープ中です。{name} を開くと起動します。",
"together.mark.offlineCloud": "現在 My Cloud に接続できません。復帰すると {name} は作業を続けます。",
"together.line.asleep": "My Cloud はスリープ中です。開くとボットが表示されます。",
- "together.mark.on": "{place} 上",
+ "together.mark.livesCloud": "My Cloud にいます",
+ "together.mark.livesComputer": "このコンピューターにいます",
+ "together.mark.livesOn": "{place} にいます",
"together.mark.workingOn": "現在 {place} で作業中",
"together.mark.offline": "現在 {place} に接続できません。復帰すると {name} は作業を続けます。",
"imageGen.complexity.label": "詳細レベル",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index c0526f0529..937b1cce33 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -7749,7 +7749,9 @@
"together.mark.asleep": "내 클라우드가 절전 중입니다. {name}을(를) 열면 깨어납니다.",
"together.mark.offlineCloud": "지금은 내 클라우드에 연결할 수 없습니다. 다시 연결되면 {name}이(가) 이어서 작업합니다.",
"together.line.asleep": "내 클라우드가 절전 중입니다. 열면 봇을 볼 수 있습니다.",
- "together.mark.on": "{place}에 있음",
+ "together.mark.livesCloud": "내 클라우드에 있음",
+ "together.mark.livesComputer": "이 컴퓨터에 있음",
+ "together.mark.livesOn": "{place}에 있음",
"together.mark.workingOn": "지금 {place}에서 작업 중",
"together.mark.offline": "지금은 {place}에 연결할 수 없습니다. 다시 연결되면 {name}이(가) 이어서 작업합니다.",
"imageGen.complexity.label": "세부 수준",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 72c18a331b..3fef76fbd8 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -7220,7 +7220,9 @@
"together.mark.asleep": "My Cloud śpi. Otwarcie {name} go wybudzi.",
"together.mark.offlineCloud": "My Cloud jest teraz nieosiągalny. {name} będzie kontynuować, gdy wróci.",
"together.line.asleep": "My Cloud śpi. Otwórz go, aby zobaczyć jego boty.",
- "together.mark.on": "Na: {place}",
+ "together.mark.livesCloud": "Mieszka w My Cloud",
+ "together.mark.livesComputer": "Mieszka na tym komputerze",
+ "together.mark.livesOn": "Mieszka na: {place}",
"together.mark.workingOn": "Pracuje teraz na: {place}",
"together.mark.offline": "{place} jest teraz nieosiągalne. {name} będzie kontynuować, gdy wróci.",
"imageGen.complexity.label": "Poziom szczegółowości",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 8eafb3c983..d87451f944 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -11399,7 +11399,9 @@
"together.mark.asleep": "O My Cloud está em repouso. Abrir {name} o ativa.",
"together.mark.offlineCloud": "Não é possível acessar o My Cloud agora. {name} continua quando ele voltar.",
"together.line.asleep": "O My Cloud está em repouso. Abra-o para ver os bots dele.",
- "together.mark.on": "Em {place}",
+ "together.mark.livesCloud": "Fica no My Cloud",
+ "together.mark.livesComputer": "Fica neste computador",
+ "together.mark.livesOn": "Fica em {place}",
"together.mark.workingOn": "Trabalhando em {place} agora",
"together.mark.offline": "Não é possível acessar {place} agora. {name} continua quando voltar.",
"together.state.signin": "Abra o My Cloud uma vez para entrar.",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 85fe40cf34..59a1217e3e 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -7274,7 +7274,9 @@
"together.mark.asleep": "Моё облако спит. Если открыть {name}, оно проснётся.",
"together.mark.offlineCloud": "Моё облако сейчас недоступно. {name} продолжит, когда оно вернётся.",
"together.line.asleep": "Моё облако спит. Откройте его, чтобы увидеть его ботов.",
- "together.mark.on": "Где: {place}",
+ "together.mark.livesCloud": "Живёт в Моём облаке",
+ "together.mark.livesComputer": "Живёт на этом компьютере",
+ "together.mark.livesOn": "Где живёт: {place}",
"together.mark.workingOn": "Сейчас работает: {place}",
"together.mark.offline": "{place} сейчас недоступно. {name} продолжит, когда оно вернётся.",
"imageGen.complexity.label": "Уровень детализации",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 36102b94ba..28495c89ef 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -6016,7 +6016,9 @@
"together.mark.asleep": "Cloud'um uykuda. {name} açıldığında uyanır.",
"together.mark.offlineCloud": "Cloud'uma şu anda ulaşılamıyor. {name} geri geldiğinde devam eder.",
"together.line.asleep": "Cloud'um uykuda. Botlarını görmek için açın.",
- "together.mark.on": "Konum: {place}",
+ "together.mark.livesCloud": "Cloud'umda yaşıyor",
+ "together.mark.livesComputer": "Bu bilgisayarda yaşıyor",
+ "together.mark.livesOn": "Yaşadığı yer: {place}",
"together.mark.workingOn": "Şu anda çalıştığı yer: {place}",
"together.mark.offline": "{place} şu anda erişilemiyor. {name} geri geldiğinde devam eder.",
"imageGen.complexity.label": "Ayrıntı düzeyi",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 0eab3d1434..7f411c4f63 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -4198,7 +4198,9 @@
"together.mark.asleep": "Моя хмара спить. Відкрийте {name}, і вона прокинеться.",
"together.mark.offlineCloud": "Моя хмара зараз недоступна. {name} продовжить, щойно вона повернеться.",
"together.line.asleep": "Моя хмара спить. Відкрийте її, щоб побачити її ботів.",
- "together.mark.on": "Місце: {place}",
+ "together.mark.livesCloud": "Живе в Моїй хмарі",
+ "together.mark.livesComputer": "Живе на цьому комп'ютері",
+ "together.mark.livesOn": "Де живе: {place}",
"together.mark.workingOn": "Зараз працює: {place}",
"together.mark.offline": "{place} зараз недоступне. {name} продовжить, щойно воно повернеться.",
"imageGen.complexity.label": "Рівень деталізації",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index fa3fc455e4..0f4a14bc5c 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -6016,7 +6016,9 @@
"together.mark.asleep": "My Cloud đang ngủ. Mở {name} sẽ đánh thức nó.",
"together.mark.offlineCloud": "Hiện không kết nối được với My Cloud. {name} sẽ tiếp tục khi nó trở lại.",
"together.line.asleep": "My Cloud đang ngủ. Mở nó để xem các bot của nó.",
- "together.mark.on": "Trên {place}",
+ "together.mark.livesCloud": "Ở trên My Cloud",
+ "together.mark.livesComputer": "Ở trên máy tính này",
+ "together.mark.livesOn": "Ở trên {place}",
"together.mark.workingOn": "Đang làm việc trên {place}",
"together.mark.offline": "Hiện không kết nối được với {place}. {name} sẽ tiếp tục khi nó trở lại.",
"imageGen.complexity.label": "Mức chi tiết",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 2d9004b4f3..71415d7576 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -10339,7 +10339,9 @@
"together.mark.asleep": "My Cloud 正在休眠。開啟 {name} 會喚醒它。",
"together.mark.offlineCloud": "目前無法連線到 My Cloud。它恢復後 {name} 會繼續。",
"together.line.asleep": "My Cloud 正在休眠。開啟它即可查看其中的機器人。",
- "together.mark.on": "在 {place} 上",
+ "together.mark.livesCloud": "位於 My Cloud",
+ "together.mark.livesComputer": "位於這台電腦",
+ "together.mark.livesOn": "位於 {place}",
"together.mark.workingOn": "正在 {place} 上工作",
"together.mark.offline": "目前無法連線到 {place}。它恢復後 {name} 會繼續。",
"imageGen.complexity.label": "細節等級",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index a1f12ed2d9..db183b1c41 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -10223,7 +10223,9 @@
"together.mark.asleep": "My Cloud 正在休眠。打开 {name} 会唤醒它。",
"together.mark.offlineCloud": "暂时无法连接 My Cloud。它恢复后 {name} 会继续。",
"together.line.asleep": "My Cloud 正在休眠。打开它即可查看其中的机器人。",
- "together.mark.on": "在 {place} 上",
+ "together.mark.livesCloud": "位于 My Cloud",
+ "together.mark.livesComputer": "位于这台电脑",
+ "together.mark.livesOn": "位于 {place}",
"together.mark.workingOn": "正在 {place} 上工作",
"together.mark.offline": "暂时无法连接 {place}。它恢复后 {name} 会继续。",
"together.state.signin": "打开一次 My Cloud 以登录。",