Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
UI clarity: one row style, Thinking folds to a row, quiet app logos (stacked on #4889) (#4929)
Omkar Satputede439fb3fbbf
diff --git a/src/components/BotSettingsDialog.simple.test.ts b/src/components/BotSettingsDialog.simple.test.tsindex e4b365325d..d080241ad2 100644--- a/src/components/BotSettingsDialog.simple.test.ts+++ b/src/components/BotSettingsDialog.simple.test.ts@@ -602,11 +602,11 @@ describe("the avatar editor", () => {describe("the Details tab", () => {- it("holds the model, the conversations, routines and this conversation's rows, in that order, with no switch or Thinking row", () => {+ it("holds the model, the conversations, this conversation's rows and routines, in that order, with no switch or Thinking row", () => {const rendered = botTab(makeBot());expect(ofType(rendered, ModelPicker)!.props).toMatchObject({ bot: expect.objectContaining({ id: "scout" }), threadId: "thread-scout", contained: true });expect(ofType(rendered, BotConversations)!.props.bot).toMatchObject({ id: "scout" });- const order = ['data-panel-row="model"', 'data-panel-card="conversations"', 'data-panel-empty="routines"', 'data-panel-item="find"', 'data-panel-item="activity"']+ const order = ['data-panel-row="model"', 'data-panel-card="conversations"', 'data-panel-item="find"', 'data-panel-item="activity"', 'data-panel-empty="routines"'].map((marker) => rendered.html.indexOf(marker));expect(order.every((index) => index > -1)).toBe(true);expect([...order].sort((a, b) => a - b)).toEqual(order);@@ -618,11 +618,11 @@ describe("the Details tab", () => {expect(switches(rendered.html)).toBe(0);});- it("says what routines are while the bot has none, with Add a routine, and lists them once it has some", () => {+ it("offers Add a routine, which says what routines are, and Automations while the bot has none, and lists them once it has some", () => {const empty = botTab(makeBot());expect(empty.html).toContain('data-panel-empty="routines"');- expect(empty.html).toContain(">Jobs this bot runs on a schedule, like a news roundup every morning.</p>");- expect(empty.html).toContain(">View all routines in Automations<svg");+ expect(empty.html).toContain('title="Jobs this bot runs on a schedule, like a news roundup every morning."');+ expect(empty.html).toMatch(/data-panel-automations=""[^>]*>Automations<svg/);expect(empty.html.match(/data-panel-page="routines"/g)).toHaveLength(1);const add = find(empty, "data-panel-page", "routines");expect(empty.html).toMatch(/data-panel-page="routines"[^>]*>.*<span class="truncate">Add a routine<\/span><\/button>/);diff --git a/src/components/ChatView.setup-offer.test.ts b/src/components/ChatView.setup-offer.test.tsindex ddecb5d9d2..1cdb832d64 100644--- a/src/components/ChatView.setup-offer.test.ts+++ b/src/components/ChatView.setup-offer.test.ts@@ -58,7 +58,7 @@ describe("the setup card in the chat", () => {it("is drawn under a blank bot's greeting and sends a pick's words for this conversation", async () => {await draw(profile());expect(card()?.textContent).toContain("Pick a starting point");- expect(firstAnswer()?.textContent).toBe("AResearch and digging into topics");+ expect(firstAnswer()?.textContent).toBe("Research and digging into topicsA");sent.length = 0;flushSync(() => firstAnswer()!.click());await settle();diff --git a/src/components/ModelPicker.dom.test.ts b/src/components/ModelPicker.dom.test.tsindex 442007ce85..2060b232ec 100644--- a/src/components/ModelPicker.dom.test.ts+++ b/src/components/ModelPicker.dom.test.ts@@ -163,6 +163,12 @@ describe("choosing a model with the keyboard", () => {it("moves through the Thinking steps with the arrow keys and applies one only on Enter, staying open", async () => {await openWith("click");+ const toggle = document.querySelector<HTMLElement>("[data-simple-thinking-toggle]")!;+ expect(toggle.textContent).toBe("ThinkingAuto");+ expect(document.querySelector("[data-simple-effort]")!.closest("[hidden]")).not.toBeNull();+ flushSync(() => toggle.click());+ expect(toggle.getAttribute("aria-expanded")).toBe("true");+ expect(document.querySelector("[data-simple-effort]")!.closest("[hidden]")).toBeNull();const low = document.querySelector<HTMLElement>("[data-effort-pill]:not([data-effort-auto])")!;low.focus();press("ArrowRight");diff --git a/src/components/ModelPicker.simple.test.ts b/src/components/ModelPicker.simple.test.tsindex 5caee128d6..82c9f2d0ad 100644--- a/src/components/ModelPicker.simple.test.ts+++ b/src/components/ModelPicker.simple.test.ts@@ -359,7 +359,7 @@ describe("the model picker in Simple mode", () => {const atDefault = region(menu(open(bot()).html), "data-simple-effort-band");expect(atDefault.match(/aria-pressed="true"/g)).toHaveLength(1);expect(atDefault).toMatch(/data-effort-auto="true" aria-pressed="true"[^>]*>Auto<\/button>/);- expect(atDefault).toContain('data-simple-effort-auto="true" class="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">Recommended. The model picks how hard to think; higher levels are slower but more careful.</p>');+ expect(atDefault).toContain('data-simple-effort-auto="true" class="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">Recommended. Effort is picked per message.</p>');});it("names the model on the Simple chip, quiet until hovered; thinking and route stay in its tooltip and the menu", () => {@@ -1021,7 +1021,7 @@ describe("every capability of the picker stays reachable", () => {if (!advanced) {const band = region(html, "data-simple-effort-band");expect(band).toContain(">X-High</button>");- expect(band).not.toContain('role="separator"');+ expect(band.lastIndexOf('role="separator"')).toBeLessThan(band.indexOf(">X-High</button>"));}} finally {delete window.ogb;diff --git a/src/components/PeopleSection.tsx b/src/components/PeopleSection.tsxindex f70c8e632f..6261a0d430 100644--- a/src/components/PeopleSection.tsx+++ b/src/components/PeopleSection.tsx@@ -1,6 +1,6 @@// Security: the invite link is convenience, not a second door; the one-time code still goes to the address itself.import { useCallback, useEffect, useState } from "react";-import { Check, Copy, ExternalLink, Link2, Loader2, Plus, RefreshCw, X } from "lucide-react";+import { Check, Copy, ExternalLink, Link2, Loader2, Plus, RefreshCw, Users, X } from "lucide-react";import { api } from "@/state/store";import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";@@ -10,7 +10,7 @@ import { readMembership, type Membership } from "../lib/membership";import { readSessionState, type SessionState } from "../lib/session";import { canPairDevices } from "./ServerPairingCard";import { normalizeAccessEntry, withEntry, withoutEntry, type SignInLists } from "./SignInAccessCard";-import { Card, SettingRow } from "./SettingsPrimitives";+import { Card } from "./SettingsPrimitives";import { Select } from "./Select";export type Role = "admin" | "member";@@ -297,11 +297,17 @@ export function PeopleSection({ simple = false, startOpen = false }: { simple?:if (simple) {return (<div data-people-summary="">- <SettingRow title={t("people.title")} subtitle={t("settings.simple.people")}>- <button type="button" aria-expanded={open} className="ui-button" onClick={() => setOpen(!open)}>+ {/* Drawn like the name row above it, a round mark then two lines, so the Account card has one text edge. */}+ <div role="group" aria-label={t("people.title")} className="flex min-w-0 items-center gap-3 px-4 py-[13px]">+ <span aria-hidden="true" className="flex size-11 shrink-0 items-center justify-center rounded-full bg-ink/[0.06] text-ink-secondary"><Users size={20} /></span>+ <div className="min-w-0 flex-1">+ <div className="truncate text-[14px] leading-5 text-ink">{t("people.title")}</div>+ <div className="text-[13px] leading-[18px] text-ink-secondary">{t("settings.simple.people")}</div>+ </div>+ <button type="button" aria-expanded={open} className="ui-button shrink-0" onClick={() => setOpen(!open)}>{open ? t("common.done") : t("settings.simple.people.invite")}</button>- </SettingRow>+ </div>{open && <div className="px-3.5 pb-3.5 pt-1">{portal ?? content}</div>}</div>);diff --git a/src/components/ProfileSettings.tsx b/src/components/ProfileSettings.tsxindex af11e23e9e..5bce0d68de 100644--- a/src/components/ProfileSettings.tsx+++ b/src/components/ProfileSettings.tsx@@ -230,7 +230,10 @@ export function ProfileSummaryRow() {{name || email ? <><div className="truncate text-[14px] leading-5 text-ink">{name || email}</div>{name && email && <div className="truncate text-[13px] leading-[18px] text-ink-secondary">{email}</div>}- </> : <div className="truncate text-[14px] leading-5 text-ink-secondary">{t("settings.simple.account.noName")}</div>}+ </> : <>+ <div className="truncate text-[14px] leading-5 text-ink">{t("settings.simple.account.yourName")}</div>+ <div className="truncate text-[13px] leading-[18px] text-ink-secondary">{t("settings.simple.account.noNameHint")}</div>+ </>}</div><button type="button" aria-expanded={editing} aria-controls={fieldsId} className="ui-button shrink-0" onClick={() => setEditing(!editing)}>{editing ? t("common.done") : t(name || email ? "settings.simple.account.edit" : "settings.simple.account.add")}diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.tsindex 8cf15bc301..4846597279 100644--- a/src/components/SettingsModal.simple.test.ts+++ b/src/components/SettingsModal.simple.test.ts@@ -171,7 +171,8 @@ describe("Settings in Simple mode", () => {expect([...html.matchAll(/<button[^>]*role="switch"[^>]*>/g)].at(-1)?.[0]).toContain('aria-label="Advanced mode"');expect(html).toContain("Show every control, including tools for builders. Nothing is deleted either way.");expect(html).not.toContain("border-accent-border/40");- expect(html).toContain("Add your name");+ expect(html).toContain(">Your name</div>");+ expect(html).toContain(">Not set yet</div>");expect(html).toMatch(/aria-expanded="false" aria-controls="[^"]+"[^>]*>Add<\/button>/);});@@ -298,7 +299,7 @@ describe("Settings in Simple mode", () => {fixture.section = "appearance";const general = render();expect(currentPage(general)).toBe("general");- expect(general).not.toContain("Add your name");+ expect(general).not.toContain(">Your name</div>");expect(general).toContain('aria-label="App language"');expect(general).toContain('aria-label="Advanced mode"');});diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsxindex 7bd3c74b73..46905d676e 100644--- a/src/components/SettingsSimplePages.tsx+++ b/src/components/SettingsSimplePages.tsx@@ -112,9 +112,10 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peopfunction LooksRow({ onLooks }: { onLooks: () => void }) {const choice = useSkinChoice();const current = SKINS.find((skin) => skin.id === resolveSkin(choice))?.name;- const hint = choice === "system" ? t("settings.simple.themes.followHint") : t("settings.simple.themes.fixedHint");+ // A fixed theme is named under the label; Follow system says which it switches between.+ const hint = choice === "system" ? t("settings.simple.themes.followHint") : current;return (- <SettingRow title={current ? `${t("settings.theme.title")} · ${current}` : t("settings.theme.title")} subtitle={hint}>+ <SettingRow title={t("settings.theme.title")} subtitle={hint}><button type="button" className="ui-button" onClick={onLooks}>{t("settings.simple.themes.browse")}</button></SettingRow>);diff --git a/src/components/SetupOffer.test.ts b/src/components/SetupOffer.test.tsindex 41c9298fc2..459e978632 100644--- a/src/components/SetupOffer.test.ts+++ b/src/components/SetupOffer.test.ts@@ -71,11 +71,11 @@ describe("the setup card under a new bot's greeting", () => {it("asks what to help with first, with the greeting's own answers lettered in order, then Something else", () => {const view = renderOffer(offered);expect(view.html).toContain("Pick a starting point");- expect(view.choices.map(label)).toEqual(["A|Plan my trips", "B|Watch the news", "C|Something else"]);+ expect(view.choices.map(label)).toEqual(["Plan my trips|A", "Watch the news|B", "Something else|C"]);});it("offers its own answers on an older greeting that carries none", () => {- expect(renderOffer(greeting).choices.map((node) => label(node).split("|")[1])).toEqual(["Research and digging into topics", "Keeping an eye on things for me", "Email, calendar and messages", "Bookings, shopping and errands", "Data, spreadsheets and reports", "Something else"]);+ expect(renderOffer(greeting).choices.map((node) => label(node).split("|")[0])).toEqual(["Research and digging into topics", "Keeping an eye on things for me", "Email, calendar and messages", "Bookings, shopping and errands", "Data, spreadsheets and reports", "Something else"]);});it("is not shown for a bot given a role or instructions, when the AI cannot set the bot up, or once closed", () => {diff --git a/src/components/SetupOffer.tsx b/src/components/SetupOffer.tsxindex b464721935..ea153974b2 100644--- a/src/components/SetupOffer.tsx+++ b/src/components/SetupOffer.tsx@@ -111,7 +111,7 @@ export function SetupOffer({ botId, threadId, message, transcript }: { botId: st<div className="flex items-start justify-between gap-2 ps-3 pe-1"><div className="min-w-0"><h3 dir="auto" className="py-px text-[16px] font-semibold leading-[22px] text-ink">{title}</h3>- {!settled && <p dir="auto" className="text-[13px] leading-[18px] text-ink-tertiary">{t("chat.setupCard.hint")}</p>}+ {!settled && <p dir="auto" className="text-[13px] leading-[18px] text-ink-tertiary">{t("chat.setupCard.hint", { name: bot.name })}</p>}</div>{!settled && <button type="button" onClick={close} aria-label={t("common.close")} title={t("common.close")}className="-mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-tertiary hover:bg-ink/[0.07] hover:text-ink-secondary">@@ -125,16 +125,14 @@ export function SetupOffer({ botId, threadId, message, transcript }: { botId: st</div>))}</div> : <div key={choices.join("\n")} data-setup-updating={updating ? "" : undefined}- className={cn("mt-2 flex flex-col gap-1", updating ? "motion-safe:animate-pulse" : waitedOnce.current && "motion-safe:animate-msg-in")}>+ className={cn("mt-2 flex flex-col", updating ? "motion-safe:animate-pulse" : waitedOnce.current && "motion-safe:animate-msg-in")}>{options.map((option, index) => (<button key={option.label} type="button" data-ask-choice="" disabled={quiet || busy} onClick={option.pick}className={cn("group flex min-h-10 items-center gap-3 rounded-lg px-3 py-2 text-start",- quiet ? "cursor-default" : "bg-ink/[0.05] hover:bg-ink/[0.09] disabled:cursor-default")}>- <kbd className={cn("flex size-6 shrink-0 items-center justify-center rounded-md font-sans text-[12px] font-medium",- quiet ? "bg-ink/[0.04] text-ink-tertiary" : "bg-ink/[0.07] text-ink-secondary group-hover:bg-ink/[0.1]")}>- {LETTERS[index]}- </kbd>- <span dir="auto" className={cn("min-w-0 break-words text-[14px] leading-5", quiet ? "text-ink-tertiary" : "text-ink")}>{option.label}</span>+ quiet ? "cursor-default" : "hover:bg-ink/[0.05] disabled:cursor-default")}>+ <span dir="auto" className={cn("min-w-0 flex-1 break-words text-[14px] leading-5", quiet ? "text-ink-tertiary" : "text-ink")}>{option.label}</span>+ {/* The letter picks the row from the keyboard; it trails the words so they line up with the heading. */}+ <kbd className="shrink-0 font-mono text-[12px] text-ink-tertiary">{LETTERS[index]}</kbd></button>))}</div>}diff --git a/src/components/SidebarConnectApps.test.ts b/src/components/SidebarConnectApps.test.tsindex 84e92027d5..a689b82153 100644--- a/src/components/SidebarConnectApps.test.ts+++ b/src/components/SidebarConnectApps.test.ts@@ -27,9 +27,9 @@ describe("the Connect apps faces", () => {expect(html).toMatch(/class="group\/apps flex h-9 min-w-0 flex-1 items-center justify-center gap-1\.5 rounded-full pl-4 pr-3 text-\[14px\] font-medium leading-5 text-ink /);const faces = [...html.matchAll(/data-app-face="[^"]+" class="([^"]*)"/g)].map(([, classes]) => classes!);expect(faces).toHaveLength(3);- for (const face of faces) expect(face).toContain("size-[18px] shrink-0 items-center justify-center overflow-hidden rounded-md bg-white p-px");+ for (const face of faces) expect(face).toContain("size-[18px] shrink-0 items-center justify-center overflow-hidden rounded-md p-px");expect(faces[0]).toContain("motion-safe:group-hover/apps:-rotate-[8deg]");- expect(faces[1]).toContain("-ms-1.5");+ expect(faces[1]).not.toContain("-ms-1.5");expect(faces[1]).not.toContain("rotate");expect(faces[2]).toContain("motion-safe:group-hover/apps:translate-x-[3px] motion-safe:group-hover/apps:rotate-[8deg]");});diff --git a/src/components/SidebarConnectApps.tsx b/src/components/SidebarConnectApps.tsxindex 05403c44eb..7105216d6f 100644--- a/src/components/SidebarConnectApps.tsx+++ b/src/components/SidebarConnectApps.tsx@@ -54,7 +54,7 @@ function AppFaceIcon({ face, className }: { face: AppFace; className?: string })const [failed, setFailed] = useState(0);const src = sources[failed];return (- <span data-app-face={face.slug} className={cn("flex size-[18px] shrink-0 items-center justify-center overflow-hidden rounded-md bg-white p-px ring-[1.5px] ring-composer", className)}>+ <span data-app-face={face.slug} className={cn("flex size-[18px] shrink-0 items-center justify-center overflow-hidden rounded-md p-px motion-safe:transition-colors group-hover/apps:bg-white group-focus-visible/apps:bg-white", className)}>{src? <img src={src} alt="" draggable={false} className="size-4 object-contain" onError={() => setFailed((count) => count + 1)} />: <span className="text-[10px] font-semibold leading-none text-neutral-700">{face.label.slice(0, 1).toUpperCase()}</span>}@@ -83,9 +83,10 @@ export function SidebarConnectApps({ circle = false }: { circle?: boolean }) {>{circle ? <Puzzle size={18} strokeWidth={1.5} aria-hidden="true" /> : <><span className="min-w-0 truncate">{label}</span>- <span aria-hidden="true" className="flex shrink-0 items-center">+ {/* The logos rest grey and apart, with no tile, so the sidebar's loudest colour is never an ad; hover brings the tiles and colour back. */}+ <span aria-hidden="true" data-app-faces="" className="flex shrink-0 items-center gap-1 opacity-60 grayscale motion-safe:transition-[filter,opacity] group-hover/apps:opacity-100 group-hover/apps:grayscale-0 group-hover/apps:invert-0 group-hover/apps:mix-blend-normal group-focus-visible/apps:opacity-100 group-focus-visible/apps:grayscale-0 group-focus-visible/apps:invert-0 group-focus-visible/apps:mix-blend-normal">{faces.map((face, index) => <AppFaceIcon key={face.slug} face={face}- className={cn(index > 0 && "-ms-1.5", faces.length > 1 && FAN[index === 0 ? 0 : index === faces.length - 1 ? 2 : 1], "motion-safe:transition-transform motion-safe:duration-150")} />)}+ className={cn(faces.length > 1 && FAN[index === 0 ? 0 : index === faces.length - 1 ? 2 : 1], "motion-safe:transition-transform motion-safe:duration-150")} />)}</span></>}</button>diff --git a/src/components/SidebarProfileMenu.test.ts b/src/components/SidebarProfileMenu.test.tsindex 1f45ff47b6..3dcad88c24 100644--- a/src/components/SidebarProfileMenu.test.ts+++ b/src/components/SidebarProfileMenu.test.ts@@ -435,11 +435,12 @@ describe("Simple mode's account menu", () => {return all;}, []);- it("leads with usage, the phone app, support and Settings, then Automations and Team map, then where this window is and Cloud", () => {+ it("leads with Automations and Team map, then usage and Settings, then the phone app and support, then where this window is and Cloud", () => {const items = build();expect(groups(items)).toEqual([- ["usage", "phone-app", "support", "settings"],["automations", "team-map"],+ ["usage", "settings"],+ ["phone-app", "support"],["place", "switch-place", "account"],]);expect(items.find((item) => item.key === "support")!.submenu!.map((item) => item.key)).toEqual(["help", "feedback", "shortcuts", "about", "update"]);@@ -467,10 +468,11 @@ describe("Simple mode's account menu", () => {});it("gives the usage row a trailing meta and a chevron, with the reset as its second line", () => {- const usage = build({ usageSummary: { value: "12% used", weekly: true, resets: "Resets in 3 days" } })[0]!;- expect(usage).toMatchObject({ label: "Weekly usage", value: "12% used", subtitle: "Resets in 3 days", chevron: true });- expect(build()[0]).toMatchObject({ label: "Usage", chevron: true });- expect(build()[0]!.value).toBeUndefined();+ const usageRow = (items: SidebarMenuItem[]) => items.find((item) => item.key === "usage")!;+ expect(usageRow(build({ usageSummary: { value: "12% used", weekly: true, resets: "Resets in 3 days" } })))+ .toMatchObject({ label: "Weekly usage", value: "12% used", subtitle: "Resets in 3 days", chevron: true });+ expect(usageRow(build())).toMatchObject({ label: "Usage", chevron: true });+ expect(usageRow(build()).value).toBeUndefined();});it("keeps Advanced's account menu as it was", () => {@@ -522,12 +524,13 @@ describe("Simple mode's account menu", () => {const update = { key: "update", label: "OpenMausBot 0.2.0 ready, restart", onSelect: noop };expect(groups(build({ move }))).toEqual([["cloud-move"],- ["usage", "phone-app", "support", "settings"],["automations", "team-map"],+ ["usage", "settings"],+ ["phone-app", "support"],["place", "switch-place", "account"],]);expect(groups(build({ move, update, updateTop: { label: "Update ready", action: "Restart" } })).slice(0, 2)).toEqual([["cloud-move"], ["update"]]);- expect(groups(build({ move: [] }))[0]).toEqual(["usage", "phone-app", "support", "settings"]);+ expect(groups(build({ move: [] }))[0]).toEqual(["automations", "team-map"]);});it("gives a moving move one row shaped like Usage and Settings, and a failing one the reason written under its Try again", () => {diff --git a/src/components/SidebarProfileMenu.tsx b/src/components/SidebarProfileMenu.tsxindex 68da1c186e..5dc333933b 100644--- a/src/components/SidebarProfileMenu.tsx+++ b/src/components/SidebarProfileMenu.tsx@@ -525,8 +525,10 @@ export function profileMenuItems({const groups = [move,present(raised),- [...present(usageItem), ...phone, { ...support, submenu: raised ? help : [...help, ...present(update)] }, settings],+ // Places you go first, then the app's own settings, then getting the phone app and help.simple.tools,+ [...present(usageItem), settings],+ [...phone, { ...support, submenu: raised ? help : [...help, ...present(update)] }],[...simple.places, ...present(accountItem)],accounts,].filter((group) => group.length > 0);diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsxindex 1d8c56581f..f9f1400e9d 100644--- a/src/components/SidebarThreadRow.tsx+++ b/src/components/SidebarThreadRow.tsx@@ -307,7 +307,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,return () => { observer?.disconnect(); window.removeEventListener("resize", keepOnScreen); };}, [menu]);const heading = <span className="flex min-w-0 flex-1 items-baseline gap-1.5">- <span dir="auto" className={cn("min-w-0 flex-1 max-w-max", panel ? "line-clamp-2 break-words" : "truncate", task.unread && "font-semibold text-ink", (closed || archived || snoozed) && !current && "text-ink-tertiary")}>{displayTitle}</span>+ <span dir="auto" className={cn("min-w-0 flex-1 max-w-max", panel ? "truncate pe-6" : "truncate", task.unread && "font-semibold text-ink", (closed || archived || snoozed) && !current && "text-ink-tertiary")}>{displayTitle}</span>{byline && (<span className="min-w-0 max-w-[45%] shrink truncate font-normal text-ink-tertiary">{byline}</span>)}@@ -323,7 +323,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,{...(selectMode ? { role: "checkbox", "aria-checked": checked, "aria-disabled": !tickable, "aria-label": t("task.bulk.rowCheck", { title: displayTitle }) } : {})}onClick={choose} onDoubleClick={selectMode ? undefined : startRename} onContextMenu={contextMenu}onKeyDown={(event) => { if (opensRowMenuFromKey(event.key, event.shiftKey, selectMode)) { event.preventDefault(); const rect = event.currentTarget.getBoundingClientRect(); openMenu(rect.left, rect.bottom); } }}- className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[8px] py-2 pl-3.5 text-[14px]", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>+ className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[8px] py-2 pl-3.5 pr-3.5 text-[14px] text-ink", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>{selectMode && <span aria-hidden="true" title={tickable ? undefined : t("task.bulk.running")}className={cn("flex size-3.5 shrink-0 items-center justify-center rounded-[3px] border", checked ? "border-accent bg-accent text-white" : "border-ink-tertiary", !tickable && "opacity-50")}>{checked && <Check size={10} strokeWidth={3} />}@@ -341,7 +341,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,</button>}{task.link && <a href={task.link} target="_blank" rel="noreferrer" dir="ltr" title={task.link} aria-label={t("task.openLink", { link: threadLinkLabel(task.link) ?? task.link })}className={cn("shrink-0 rounded px-1 font-mono text-[11px] text-ink-secondary hover:bg-raised hover:text-ink outline-none focus-visible:ring-1 focus-visible:ring-accent/60 [unicode-bidi:isolate]", panel && "mt-2.5")}>{threadLinkLabel(task.link) ?? t("task.link")}</a>}- {!renaming && <span className={cn("flex shrink-0 items-center gap-2 px-1", panel && "pt-2.5")} onClick={choose} onContextMenu={contextMenu}>+ {!renaming && <span className={cn("flex shrink-0 items-center gap-2 px-1", panel && "pt-2.5 empty:hidden")} onClick={choose} onContextMenu={contextMenu}>{updatedLabel && !panel && <time dateTime={new Date(updatedAt).toISOString()} className="shrink-0 tabular-nums text-[10px] text-ink-secondary">{updatedLabel}</time>}{task.pinned === true && <Pin size={11} className="shrink-0 text-ink-secondary" aria-label={t("sidebar.bot.pin")} />}{task.activity === "waiting-on-you" ? <span className="shrink-0 text-[10px] font-medium text-warning">{t("task.waiting")}</span> : isWaitingOnTeammate(task) ? <Clock3 size={11} className="shrink-0 text-ink-secondary" aria-label={t("task.waitingOnTeammate")} /> : isWorking(task) && !panel ? <Loader2 size={11} className="shrink-0 animate-spin text-success" aria-label={activityLabel ?? t("chat.activity.working")} /> : task.queued ? <span className="shrink-0 text-[10px] text-ink-secondary">{t("task.queued")}</span> : null}@@ -349,7 +349,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,</span>}{!selectMode && <button ref={actionRef} type="button" aria-label={t("task.actions", { title: displayTitle })} aria-expanded={Boolean(menu)}onClick={(event) => { if (menu) { setMenu(null); return; } const rect = event.currentTarget.getBoundingClientRect(); openMenu(rect.left, rect.bottom); }}- className={cn("mr-0.5 flex size-6 shrink-0 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink focus-visible:opacity-100 group-hover/thread:opacity-100 max-md:opacity-70 touch:opacity-70", panel && "mt-1.5")}>+ className={cn("mr-0.5 flex size-6 shrink-0 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink focus-visible:opacity-100 group-hover/thread:opacity-100 max-md:opacity-70 touch:opacity-70", panel && "absolute end-1.5 top-1.5 me-0")}><MoreHorizontal size={13} /></button>}</div>diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsxindex 0aa29ff86b..24d97f6de9 100644--- a/src/components/SimpleModelMenu.tsx+++ b/src/components/SimpleModelMenu.tsx@@ -1,5 +1,5 @@-import type { ReactNode } from "react";-import { Check, ChevronDown, ChevronRight, ChevronUp, Download, Loader2, LogIn, RefreshCw, Search, Settings, X } from "lucide-react";+import { useState, type ReactNode } from "react";+import { Check, ChevronDown, ChevronRight, ChevronUp, Download, Lightbulb, Loader2, LogIn, RefreshCw, Search, Settings, X } from "lucide-react";import type { Bot, InstanceInfo } from "@/state/store";import type { EffortLevel } from "../../shared/wire";import type { MenuGroup, MenuModelRow, SimpleMenu } from "@/lib/simple-model-menu";@@ -154,7 +154,9 @@ function GroupBody({ group, props }: { group: MenuGroup; props: SimpleModelMenuP}}+/** Thinking folds to one row that names the level; the steps open under it, so most people only ever read "Auto". */function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: string }) {+ const [open, setOpen] = useState(false);if ("variants" in thinking) return <div data-simple-thinking>{thinking.variants}</div>;const levels = thinking;const auto = levels.current === undefined;@@ -164,33 +166,41 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st);return (<div data-simple-thinking className="flex flex-col">- <div className="flex h-6 items-end justify-between gap-2 px-2 pb-0.5">- <span id={labelId} className="text-[12px] font-medium leading-4 text-ink-tertiary">{t("botSettings.simple.thinking")}</span>- </div>- <div data-simple-effort role="group" aria-labelledby={labelId} className="m-1 grid rounded-full bg-ink/[0.05] p-[3px]"- style={{ gridTemplateColumns: `repeat(${levels.levels.length + 1}, auto)` }}>- <button type="button" data-effort-pill data-effort-auto aria-pressed={auto} tabIndex={auto ? 0 : -1}- title={t("model.simple.thinkingDefault")} onClick={levels.onReset} className={pill(auto)}>- {t("model.simple.auto")}- </button>- {levels.levels.map((level) => (- <button- key={level}- type="button"- data-effort-pill- aria-pressed={levels.current === level}- tabIndex={levels.current === level ? 0 : -1}- title={t("model.simple.thinkingLevel", { level: effortLabel(level) })}- onClick={() => levels.onPick(level)}- className={pill(levels.current === level)}- >- {effortLabel(level)}+ <button type="button" data-menu-row data-simple-thinking-toggle tabIndex={-1} aria-expanded={open} aria-controls={`${labelId}-steps`}+ onClick={() => setOpen(!open)} className={cn(MENU_ROW, open && "hover:bg-transparent focus:bg-transparent")}>+ <Gutter><Lightbulb size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" /></Gutter>+ <span id={labelId} className="min-w-0 flex-1 truncate">{t("botSettings.simple.thinking")}</span>+ {!open && <span className="shrink-0 text-ink-secondary">{auto ? t("model.simple.auto") : effortLabel(levels.current!)}</span>}+ {open+ ? <ChevronUp size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />+ : <ChevronDown size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />}+ </button>+ <div id={`${labelId}-steps`} hidden={!open}>+ <div data-simple-effort role="group" aria-labelledby={labelId} className="m-1 grid rounded-full bg-ink/[0.05] p-[3px]"+ style={{ gridTemplateColumns: `repeat(${levels.levels.length + 1}, auto)` }}>+ <button type="button" data-effort-pill data-effort-auto aria-pressed={auto} tabIndex={auto ? 0 : -1}+ title={t("model.simple.thinkingDefault")} onClick={levels.onReset} className={pill(auto)}>+ {t("model.simple.auto")}</button>- ))}+ {levels.levels.map((level) => (+ <button+ key={level}+ type="button"+ data-effort-pill+ aria-pressed={levels.current === level}+ tabIndex={levels.current === level ? 0 : -1}+ title={t("model.simple.thinkingLevel", { level: effortLabel(level) })}+ onClick={() => levels.onPick(level)}+ className={pill(levels.current === level)}+ >+ {effortLabel(level)}+ </button>+ ))}+ </div>+ <p data-simple-effort-auto={auto || undefined} className="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">+ {auto ? t("model.simple.thinkingAuto") : t(`model.simple.effortHint.${levels.current!}`)}+ </p></div>- <p data-simple-effort-auto={auto || undefined} className="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">- {auto ? t("model.simple.thinkingAuto") : t(`model.simple.effortHint.${levels.current!}`)}- </p></div>);}@@ -290,7 +300,8 @@ export function SimpleModelMenu(props: SimpleModelMenuProps) {</div>{(props.thinking || props.onResetVariant || props.onManage) && (- <div data-simple-effort-band className="flex shrink-0 flex-col gap-0.5 border-t-[0.5px] border-ink/10 p-1.5">+ <div data-simple-effort-band className="flex shrink-0 flex-col gap-0.5 p-1.5 pt-0">+ <div role="separator" className={MENU_SEPARATOR} />{props.thinking && (<><Thinking thinking={props.thinking} labelId={`${idPrefix}-thinking`} />diff --git a/src/components/bot-panel/Conversations.dom.test.ts b/src/components/bot-panel/Conversations.dom.test.tsindex 3856669330..3600dbeb22 100644--- a/src/components/bot-panel/Conversations.dom.test.ts+++ b/src/components/bot-panel/Conversations.dom.test.ts@@ -131,12 +131,12 @@ describe("a bot's conversations in its panel", () => {expect(list).toEqual(expect.arrayContaining(["[&_.font-semibold]:font-medium", "[&_time]:text-[12px]", "[&_time]:text-ink-tertiary", "[&_span.bg-accent]:size-2"]));});- it("puts New conversation first, as a labelled button beside search", () => {+ it("puts New conversation first, as a labelled button, with search on the section's label line", () => {render(research());const add = host.querySelector("[data-conversations-new]")!;expect(add.textContent).toBe("New conversation");expect(add.compareDocumentPosition(host.querySelector("[data-conversation]")!) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();- expect(add.nextElementSibling).toBe(host.querySelector("[data-conversations-search]"));+ expect(host.querySelector("[data-conversations-search]")!.compareDocumentPosition(add) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();});it("shows no Show more when every conversation fits", () => {diff --git a/src/components/bot-panel/Conversations.tsx b/src/components/bot-panel/Conversations.tsxindex 49fdccefbf..555568c07f 100644--- a/src/components/bot-panel/Conversations.tsx+++ b/src/components/bot-panel/Conversations.tsx@@ -121,7 +121,19 @@ export function BotConversations({ bot }: { bot: Bot }) {return (<section data-panel-card="conversations" aria-label={t("botPanel.conversations.title")}>- <CardLabel>{t("botPanel.conversations.title")}</CardLabel>+ <CardLabel action={listed && (+ <button+ type="button"+ data-conversations-search+ aria-label={t("botPanel.conversations.search")}+ title={t("botPanel.conversations.search")}+ aria-pressed={searching}+ onClick={() => (searching ? stopSearching() : setSearching(true))}+ className={cn("-me-1 flex size-6 shrink-0 items-center justify-center rounded-[6px] text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink", searching && "bg-ink/[0.06] text-ink")}+ >+ <Search size={14} aria-hidden="true" />+ </button>+ )}>{t("botPanel.conversations.title")}</CardLabel><div className={cn("flex items-center gap-2", listed && "mb-2")}>{bot.yourAccess !== "view" && (<button@@ -135,19 +147,6 @@ export function BotConversations({ bot }: { bot: Bot }) {<span className="truncate">{t("botPanel.conversations.new")}</span></button>)}- {listed && (- <button- type="button"- data-conversations-search- aria-label={t("botPanel.conversations.search")}- title={t("botPanel.conversations.search")}- aria-pressed={searching}- onClick={() => (searching ? stopSearching() : setSearching(true))}- className={cn("flex size-9 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary transition-colors hover:bg-ink/[0.09] hover:text-ink", searching && "bg-ink/[0.09] text-ink")}- >- <Search size={15} aria-hidden="true" />- </button>- )}</div>{listed && searching && (<inputdiff --git a/src/components/bot-panel/DetailsTab.tsx b/src/components/bot-panel/DetailsTab.tsxindex 1a0efc13bd..ad356c6e96 100644--- a/src/components/bot-panel/DetailsTab.tsx+++ b/src/components/bot-panel/DetailsTab.tsx@@ -10,7 +10,7 @@ import type { useBotSettingsDerived } from "../bot-settings/useBotSettingsDeriveimport { BotConversations } from "./Conversations";import type { SimplePageId } from "./page-registry";import { TryAsking } from "./TryAsking";-import { Card, CardLabel, panelActionCls, NavRow, RowIcon, rowCls, RowText } from "./rows";+import { Card, CardLabel, LabelAction, panelActionCls, NavRow, RowIcon, rowCls, RowText } from "./rows";type Derived = ReturnType<typeof useBotSettingsDerived>;@@ -27,7 +27,7 @@ export function ItemRow({ item }: { item: SidebarMenuItem }) {disabled={item.disabled}aria-pressed={item.active || undefined}onClick={item.onSelect}- className={cn(rowCls, "w-full text-left enabled:hover:bg-ink/[0.03] disabled:cursor-default disabled:opacity-45")}+ className={cn(rowCls, "w-full rounded-[8px] text-left enabled:hover:bg-ink/[0.04] disabled:cursor-default disabled:opacity-45")}><span className="flex size-4 shrink-0 items-center justify-center text-ink-secondary [&_svg]:size-4" aria-hidden="true">{item.icon}@@ -51,8 +51,9 @@ export function DetailsTab({ bot, derived, onOpen }: {return (<div data-panel-tabpanel="details">- <Card anchor="model">- <div data-panel-row="model" className={rowCls}>+ {/* One row style down the whole tab: flat rows under quiet labels, no cards. */}+ <section data-panel-card="model" className="pt-2">+ <div data-panel-row="model" className={cn(rowCls, "rounded-[8px]")}><ModelPickerbot={bot}contained@@ -60,23 +61,30 @@ export function DetailsTab({ bot, derived, onOpen }: {label={<span className="flex shrink-0 items-center gap-2.5"><RowIcon icon={Sparkles} /><RowText title={t("model.simple.model")} /></span>}/></div>- </Card>+ </section><BotConversations bot={bot} />+ <TryAsking bot={bot} />++ {conversationItems.length > 0 && (+ <section data-panel-card="conversation">+ <CardLabel>{t("botPanel.section.conversation")}</CardLabel>+ {conversationItems.map((item) => <ItemRow key={item.key} item={item} />)}+ </section>+ )}+{derived.botRoutines.length === 0 ? (<section data-panel-empty="routines">- <CardLabel>{t("botSettings.simple.routines")}</CardLabel>- <p className="mx-3.5 text-[13px] leading-[18px] text-ink-tertiary">{t("botPanel.routines.emptyHint")}</p>- <button type="button" data-panel-automations onClick={() => dispatch({ type: "showRoutines", view: "list" })}- className="mx-3.5 mt-0.5 inline-flex min-h-7 items-center gap-0.5 rounded-[4px] text-[13px] font-medium text-ink underline decoration-ink/30 underline-offset-2 hover:decoration-ink">- {t("botPanel.routines.seeAll")}<ChevronRight size={14} aria-hidden="true" className="rtl:-scale-x-100" />- </button>+ <CardLabel action={<LabelAction data-panel-automations="" onClick={() => dispatch({ type: "showRoutines", view: "list" })}>{t("sidebar.nav.automations")}</LabelAction>}>+ {t("botSettings.simple.routines")}+ </CardLabel><buttontype="button"data-panel-page="routines"+ title={t("botPanel.routines.emptyHint")}onClick={() => onOpen("routines")}- className={cn(panelActionCls, "mt-2.5 w-full")}+ className={cn(panelActionCls, "w-full")}><CalendarPlus size={15} aria-hidden="true" className="shrink-0 text-ink-secondary" /><span className="truncate">{t("botPanel.routines.add")}</span>@@ -93,14 +101,6 @@ export function DetailsTab({ bot, derived, onOpen }: {/></Card>)}-- <TryAsking bot={bot} />-- {conversationItems.length > 0 && (- <Card label={t("botPanel.section.conversation")} anchor="conversation">- {conversationItems.map((item) => <ItemRow key={item.key} item={item} />)}- </Card>- )}</div>);}diff --git a/src/components/bot-panel/rows.tsx b/src/components/bot-panel/rows.tsxindex 9e001ed956..774c0cf7be 100644--- a/src/components/bot-panel/rows.tsx+++ b/src/components/bot-panel/rows.tsx@@ -13,8 +13,9 @@ const titleCls = "text-[14px] font-medium text-ink";const hintCls = "mt-px text-[13px] leading-[1.35] text-ink-secondary";export const buttonCls ="inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-[8px] bg-control px-3.5 text-[13px] font-medium text-ink hover:bg-raised-hover disabled:cursor-not-allowed disabled:opacity-50";-/** The panel's one action row: New conversation, Add a routine. */-export const panelActionCls = "flex h-9 min-w-0 items-center gap-2.5 rounded-full [&>svg]:size-4 bg-ink/[0.05] px-3.5 text-[14px] font-medium text-ink transition-colors hover:bg-ink/[0.09]";+/** The panel's action rows, New conversation and Add a routine: flat like every other row, so the only fill in the+ * tab is the conversation you are in. */+export const panelActionCls = "flex h-9 min-w-0 items-center gap-2.5 rounded-[8px] [&>svg]:size-4 px-3.5 text-[14px] font-medium text-ink transition-colors hover:bg-ink/[0.04]";export const chipCls = (on: boolean) =>cn("rounded-full px-2.5 py-1 text-[12px] transition-colors disabled:cursor-not-allowed disabled:opacity-50",@@ -30,10 +31,11 @@ export function CardLabel({ children, action }: { children: ReactNode; action?:);}-export function LabelAction({ children, onClick, ...rest }: { children: ReactNode; onClick: () => void; "aria-label"?: string; "data-panel-action"?: string }) {+export function LabelAction({ children, onClick, ...rest }: { children: ReactNode; onClick: () => void; "aria-label"?: string; "data-panel-action"?: string; "data-panel-automations"?: string }) {return (- <button type="button" {...rest} onClick={onClick} className="shrink-0 rounded-[6px] px-1 py-px text-[13px] text-ink-secondary hover:bg-ink/[0.04] hover:text-ink">+ <button type="button" {...rest} onClick={onClick} className="inline-flex shrink-0 items-center gap-0.5 rounded-[6px] px-1 py-px text-[13px] font-normal text-ink-secondary hover:bg-ink/[0.04] hover:text-ink">{children}+ <ChevronRight size={12} aria-hidden="true" className="text-ink-tertiary rtl:-scale-x-100" /></button>);}diff --git a/src/components/model-menu-keys.ts b/src/components/model-menu-keys.tsindex d91f873025..a3608cb9a4 100644--- a/src/components/model-menu-keys.ts+++ b/src/components/model-menu-keys.ts@@ -20,7 +20,7 @@ export function modelMenuKey(event: ReactKeyboardEvent<HTMLElement>, { query, tyevent.stopPropagation();};if (event.key === "Tab") {- const stops = [...menu.querySelectorAll<HTMLElement>(FOCUSABLE)].filter((element) => element !== target && element.tabIndex >= 0);+ const stops = [...menu.querySelectorAll<HTMLElement>(FOCUSABLE)].filter((element) => element !== target && element.tabIndex >= 0 && !element.closest("[hidden]"));const follows = (first: Node, second: Node) => Boolean(first.compareDocumentPosition(second) & Node.DOCUMENT_POSITION_FOLLOWING);if (!stops.some((stop) => (event.shiftKey ? follows(stop, target) : follows(target, stop)))) {handled();diff --git a/src/components/model-picker-reasoning.ts b/src/components/model-picker-reasoning.tsindex ceec53fb67..bae30eacf7 100644--- a/src/components/model-picker-reasoning.ts+++ b/src/components/model-picker-reasoning.ts@@ -46,7 +46,7 @@ export function useRefocusAfterPick(menuRef: RefObject<HTMLElement | null>, openpending.current = false;const menu = menuRef.current;if (!open || !menu || menu.contains(document.activeElement)) return;- (menu.querySelector<HTMLElement>('[data-simple-effort] [tabindex="0"]') ?? menu).focus({ preventScroll: true });+ (menu.querySelector<HTMLElement>(':not([hidden]) > [data-simple-effort] [tabindex="0"]') ?? menu).focus({ preventScroll: true });}, [selection, query, open, menuRef]);return () => { pending.current = true; };}diff --git a/src/locales/en.json b/src/locales/en.jsonindex 0554ebb8d4..43b9a81668 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -3041,7 +3041,7 @@"model.simple.clearSearch": "Clear search","model.simple.thinkingLevel": "{level} thinking. Higher is slower but more careful.","model.simple.thinkingDefault": "The model decides how hard to think.",- "model.simple.thinkingAuto": "Recommended. The model picks how hard to think; higher levels are slower but more careful.",+ "model.simple.thinkingAuto": "Recommended. Effort is picked per message.","model.simple.effortHint.none": "No extra thinking. The fastest replies.","model.simple.effortHint.low": "A little thinking. Quick replies for simple asks.","model.simple.effortHint.medium": "Some thinking. A good balance for most work.",@@ -7531,7 +7531,7 @@"chat.savedSteps.forgotten": "Forgotten","chat.savedSteps.forgetFailed": "Couldn't forget these steps. Try again.","chat.setupCard.title": "What should I help you with first?",- "chat.setupCard.hint": "Choose a focus for this bot, or type your own below. You can change it later.",+ "chat.setupCard.hint": "{name} sets itself up for whichever you choose, or type your own below.","chat.setupCard.heading": "Pick a starting point","chat.setupCard.other": "Something else","chat.setupCard.answer": "Your answer",@@ -9830,5 +9830,7 @@"remote.client.endsDec7": "This connection type ends Dec 7. After that, pair this computer again from the other computer's Phone & devices.","phone.code.pairingCode": "Pairing code","phone.code.typeIntro": "Open the {app} app and type this pairing code.",- "phone.signIn.emailCode": "Sign-in code from your email"+ "phone.signIn.emailCode": "Sign-in code from your email",+ "settings.simple.account.noNameHint": "Not set yet",+ "settings.simple.account.yourName": "Your name"}diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 8663d792a0..bbfba15e7d 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -2911,7 +2911,7 @@"model.simple.clearSearch": "Limpar busca","model.simple.thinkingLevel": "Raciocínio: {level}. Níveis mais altos deixam o raciocínio mais lento, mas mais cuidadoso.","model.simple.thinkingDefault": "O modelo decide quanto precisa pensar.",- "model.simple.thinkingAuto": "Recomendado. O modelo escolhe quanto pensar; níveis mais altos são mais lentos, porém mais cuidadosos.",+ "model.simple.thinkingAuto": "Recomendado. O esforço é escolhido a cada mensagem.","model.simple.effortHint.none": "Sem raciocínio extra. As respostas mais rápidas.","model.simple.effortHint.low": "Um pouco de raciocínio. Respostas rápidas para pedidos simples.","model.simple.effortHint.medium": "Algum raciocínio. Um bom equilíbrio para a maioria das tarefas.",@@ -7458,7 +7458,7 @@"voice.libraryHint": "A voz que você escolher entra na sua lista de vozes.","voice.adding": "Adicionando…","chat.setupCard.title": "Com o que devo ajudar primeiro?",- "chat.setupCard.hint": "Escolha um foco para este bot ou digite o seu abaixo. Você pode mudar depois.",+ "chat.setupCard.hint": "{name} se configura para a opção que você escolher, ou escreva a sua abaixo.","chat.setupCard.heading": "Escolha um ponto de partida","chat.setupCard.other": "Outra coisa","chat.setupCard.answer": "Sua resposta",@@ -9830,5 +9830,7 @@"remote.client.endsDec7": "Este tipo de conexão termina em 7 de dezembro. Depois disso, pareie este computador de novo em Celular e dispositivos no outro computador.","phone.code.pairingCode": "Código de pareamento","phone.code.typeIntro": "Abra o app do {app} e digite este código de pareamento.",- "phone.signIn.emailCode": "Código de login do seu e-mail"+ "phone.signIn.emailCode": "Código de login do seu e-mail",+ "settings.simple.account.noNameHint": "Ainda não definido",+ "settings.simple.account.yourName": "Seu nome"}diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 1c63a8bb92..b149ddeecf 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -33399,7 +33399,7 @@"phone.code.pairingCode": "1c5ea2f7ed52a91c82993d40cf16581ac6ccff5283e1840cad1a1857311d1121","phone.code.typeIntro": "eefcfc11ed512a8866f3764a972fa5a7c7bdd01bcbe4cb1681c37ae697f69fe1","phone.signIn.emailCode": "81c2e322abeb89f738de06ccdbefa7893c976a129b89c194299c75bd490fe128",- "chat.setupCard.hint": "c6ddd65e5fdd0145d1711ce1a16c81129537e39f2b81f1ee165aa231d6e208d8",+ "chat.setupCard.hint": "d7bbe8e1ab022e478f36b7338b2b278b9ad5b2d421eced2fd24b157b5df8db74","inbox.emptyHint": "0105954275918cda7ea87a1d942173015f96aaf820ba74a4bd07386d6426b4d8","settings.simple.group.typing": "0b96af8bce90a78a3ab5958209736b8738fe952deefc38fc958a14fbbeb75ef6","model.simple.auto": "0286249762f7c94349cdc0ba3bb2255baf9a80036e2193ead1d77696f888582f",@@ -33407,7 +33407,7 @@"botPanel.routines.seeAll": "d527f42e92589c7cdf4206957f30f7f0236358f47139f591023c83a68e8ce3b2","settings.userBubbles.simpleTitle": "376821eb1ffb476bbbe293fe9c8f43d79e8f64417292afade8a351e443941aaa","chat.openBotPanel": "1f9ede9056d58ca37a4f7f79dd7da5226a8f30d0f1b616ac7eaaca6dcebaccbf",- "model.simple.thinkingAuto": "06130b18bfad8c684041ec5c924ff0f27083fc192dbf275be321c8dcabc978b9",+ "model.simple.thinkingAuto": "1d0caa99d3ed5904336835bfcf2966ed4d0b76486100da2f725dea4b580fbcc7","model.simple.botsModelScope": "c82c64a1fc353ed97f01626c16baf213f73cc6c0859519653ec5eaea9608bbee","settings.simple.themes.title": "eceab8df6ddf48352bc730a2784437d15472a4e9d81ee29834587d7f1a532e08","settings.simple.themes.browse": "5d7a5476ede9e8cb334ca24996a48200bea59e871006443754457753f797bf53",@@ -33444,7 +33444,9 @@"botLimit.paused.chooseAction": "a79a6acb715b89549164ec01e72282653c74175dff445e98a40612870f8e650e","chat.setupCard.heading": "c55d59f402bbe025ee81dbf0efa20086040334938ed8617f340ab81db478b196","settings.simple.themes.followHint": "d42ba551158199061ebfda7029c05ad07f84ebad29cfc8c24ffe4a7323ed5629",- "settings.simple.themes.fixedHint": "9debc6ac74d17e0dee92665cd9c4c39963b0a25c3de4830d59175e94e2ad5625"+ "settings.simple.themes.fixedHint": "9debc6ac74d17e0dee92665cd9c4c39963b0a25c3de4830d59175e94e2ad5625",+ "settings.simple.account.noNameHint": "488c9a6a017d6ea2f145c838bee156e762ffcebdaddc173135f4d0590f0b6271",+ "settings.simple.account.yourName": "2c6b2e253c01fb2ed7209c15766745ccee92a35ac8209f544789bdf9500e0944"},"zh": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",diff --git a/src/styles.css b/src/styles.cssindex e90e99ad59..77b8b69284 100644--- a/src/styles.css+++ b/src/styles.css@@ -1149,25 +1149,36 @@[data-reply-bubble] {padding: 12px 16px;}-/* A table inside a reply sits on the bubble as an inset card, like a code block. */-[data-reply-bubble] [data-table-card],-[data-reply-bubble] [data-table-card] thead {- background: color-mix(in srgb, var(--color-card), var(--color-ink) 4%);-}+/* A table inside a reply is drawn in lines on the bubble, not as another grey box: a hairline edge, a faint header. */[data-reply-bubble] [data-table-card] {width: 100%;border-radius: 12px;+ background: transparent;+ /* An outline, not a border or inset shadow, so the header's fill can't paint over the top edge. */+ outline: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);+ outline-offset: -1px;}-[data-reply-bubble] [data-table-card] thead {- background: color-mix(in srgb, var(--color-card), var(--color-ink) 7%);+/* A code block in a reply is drawn the same way, so the reply's inset blocks speak one language. */+/* The resting grey logos blend into the pill, so a favicon's own white disc or box drops out and only its mark is+ left (Google's G read as ©): multiply on light skins, invert + screen on dark. In base, so hover utilities win. */+@layer base {+ [data-app-faces] { mix-blend-mode: multiply; }+ @container style(--code-color-scheme: dark) {+ [data-app-faces] { --tw-invert: invert(100%); mix-blend-mode: screen; }+ }}-/* On Daylight's pale bubble the inset table steps back to a whisper of ink. */-:root[data-skin="daylight"] [data-reply-bubble] [data-table-card] {- background: color-mix(in srgb, var(--color-card), var(--color-ink) 2%);++[data-reply-bubble] .chat-code-block {+ background: color-mix(in srgb, var(--color-card), var(--color-ink) 3%);+ outline: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);+ outline-offset: -1px;}-:root[data-skin="daylight"] [data-reply-bubble] [data-table-card] thead {+[data-reply-bubble] [data-table-card] thead {background: color-mix(in srgb, var(--color-card), var(--color-ink) 4%);}+:root[data-skin="daylight"] [data-reply-bubble] [data-table-card] thead {+ background: color-mix(in srgb, var(--color-card), var(--color-ink) 3%);+}/* A section that opens right after a table keeps the space a heading gets elsewhere in the reply. */[data-reply-bubble] > [data-reply-table] + * .chat-md > .md-heading:first-child {margin-top: 6px;