Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Train fixes: quieter code-chip wrap, chip width, no issue number, pt-BR shortcut, avatar engine note
milind-soni34a6d3105389
diff --git a/packages/phone-protocol/src/open-bot-avatar/README.md b/packages/phone-protocol/src/open-bot-avatar/README.mdindex 27ae938351..64031f9053 100644--- a/packages/phone-protocol/src/open-bot-avatar/README.md+++ b/packages/phone-protocol/src/open-bot-avatar/README.md@@ -25,6 +25,8 @@ Vendored sources of [Open Bot Avatar](https://github.com/DominikScholz/open-bot-`bareSurface` in the fragment shader under the `finish` uniform; fluffy itself is unchanged.- The ribbons of `working` and `done` take our six rainbow comet palettes (`COMET_COLORS`) instead ofshades of the body colour.+- `renderAvatarSvg` writes no `<title>`, only `aria-label`, so the browser's tooltip never covers the one on+ the bot's row.Comments in `motion.ts` and `effects.ts` that pointed at an upstream pull request and a third-party demonow say "a reference animation"; the numbers are unchanged.diff --git a/packages/phone-protocol/src/open-bot-avatar/render.ts b/packages/phone-protocol/src/open-bot-avatar/render.tsindex babddcd2dc..5a6c496235 100644--- a/packages/phone-protocol/src/open-bot-avatar/render.ts+++ b/packages/phone-protocol/src/open-bot-avatar/render.ts@@ -670,7 +670,7 @@ export function renderAvatarSvg(definition: AvatarDefinition, options: RenderOptconst label = esc(frame.name);return (- // A <title> builds a browser tooltip of its own, so hovering a bot's avatar showed the body's+ // MausBot: no <title>. A <title> builds a browser tooltip of its own, so hovering a bot's avatar showed the body's// name ("Star", "Mug") instead of the name and title shown beside the row. aria-label already// names the image for assistive tech, so the duplicate title only costs the tooltip.`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"${dims} role="img" aria-label="${label}" overflow="visible">` +diff --git a/server/system-prompt.ts b/server/system-prompt.tsindex 727f672877..a243b6d47e 100644--- a/server/system-prompt.ts+++ b/server/system-prompt.ts@@ -80,8 +80,8 @@ export function replyStylePrompt(style: ReplyStyle | undefined): string {const MAUSBOT_PERSONA = "You are also this person's MausBot, their helper for everything in OpenMausBot. You know the app: answer \"how do I…\" questions with the plain steps in the app. Help them set up new bots, apps and routines, and do it yourself with your tools when they ask. Asked what is going on, give a short overview of their bots, their routines and anything waiting on them. Asked what you can do, say so in two or three short sentences and offer a few example asks.";-// The persona promises app knowledge; without this the bot greps bundles for UI strings to answer a one-line "how do I" (#5445).-const MAUSBOT_APP_MAP = " For skill questions: each bot's skills, and the shared Skills library every bot can be assigned from, live in that bot's settings under Skills — imports are local and arrive switched off until reviewed there."+// The persona promises app knowledge; without this the bot greps bundles for UI strings to answer a one-line "how do I".+const MAUSBOT_APP_MAP = " For skill questions: each bot's skills, and the shared Skills library every bot can be assigned from, live in that bot's settings under Skills — imports are local and arrive switched off until reviewed there.";export function botPersona(bot: { name: string; title?: string; description?: string; defaultBot?: object }): string {return [`You are ${bot.name}, a personal bot in OpenMausBot.`, bot.title && `Role: ${bot.title}.`, bot.description && `About: ${bot.description}`, bot.defaultBot && MAUSBOT_PERSONA + MAUSBOT_APP_MAP]diff --git a/src/components/AttachmentPreview.tsx b/src/components/AttachmentPreview.tsxindex 9c932d5c19..8a195dfd5b 100644--- a/src/components/AttachmentPreview.tsx+++ b/src/components/AttachmentPreview.tsx@@ -904,7 +904,7 @@ export function AttachedFileChip({ file, message, linked = false, compact = falsreturn (<divtitle={save.state === "saved" && save.savedTo ? t("attach.savedTo", { path: save.savedTo }) : file.name}- className={cn("w-full max-w-full sm:max-w-[280px] overflow-hidden rounded-lg border border-hairline/40 bg-inset/70 text-[12px] text-ink-secondary", className)}+ className={cn("max-w-full sm:max-w-[280px] overflow-hidden rounded-lg border border-hairline/40 bg-inset/70 text-[12px] text-ink-secondary", className)}><div className="flex items-center pe-1"><buttondiff --git a/src/components/ChatMarkdown.test.ts b/src/components/ChatMarkdown.test.tsindex 52919f4a29..ba5f39a4c7 100644--- a/src/components/ChatMarkdown.test.ts+++ b/src/components/ChatMarkdown.test.ts@@ -852,7 +852,7 @@ describe("ChatMarkdown attachments", () => {expect(html).toContain("shrink-0");});- it("names a delivered copy by its literal file name, without decoding it", () => {+ it("names a delivered copy by its literal file name, without decoding it", () => {const html = renderToStaticMarkup(createElement(ChatMarkdown, {text: "[Report](/old/100%41.html)", message: { threadId: "thread-1", messageId: "message-1" },delivered: { "100%41.html": "/store/delivered-100.html" },diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 7bf190204a..b42bc62697 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -9284,6 +9284,7 @@"shortcuts.command-palette": "Abrir a paleta de comandos (troca rápida e busca nas conversas)","shortcuts.new-bot": "Criar um novo bot","shortcuts.new-thread": "Iniciar uma nova conversa com o bot selecionado",+ "shortcuts.start-fresh": "Começar do zero nesta conversa (mantém as mensagens)","shortcuts.jump-bot": "Ir para o bot 1–9 da lista","shortcuts.switch-bot": "Ir para o bot anterior / seguinte","shortcuts.switch-thread": "Ir para a conversa seguinte / anterior do bot",diff --git a/src/styles.css b/src/styles.cssindex c193e37cca..811eb5364c 100644--- a/src/styles.css+++ b/src/styles.css@@ -1575,10 +1575,7 @@ body {line-height: 1;-webkit-box-decoration-break: clone;box-decoration-break: clone;- max-width: 100%;overflow-wrap: anywhere;- word-break: break-all;- box-sizing: border-box;}/* One row of a popover menu: 30px, 14px, icon then label. */.ui-menu-row {