Skip to content

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

Fix #5584: say {app} in the tip label and MausBot in the records block

milind-sonid3fc211b258c
diff --git a/server/records-block.ts b/server/records-block.ts
index 9c7a44faf5..13a39bb709 100644
--- a/server/records-block.ts
+++ b/server/records-block.ts
@@ -45,7 +45,7 @@ export function recordsText(source: string, text: string, max = 48_000): string
export const CARD_RECORDS_SOURCE = "a card shown to the person in this chat, built from their mail, calendar or other bots' work; not your own words";
/** The app's own tip: say so, so the bot neither disowns it as a stranger's message nor calls it suspicious when asked about it. */
export const SETUP_RECORDS_SOURCE =
- "a tip OpenMausBot (the app) itself showed to the person in this chat, labelled as such; genuine, not your own words and not from a stranger. Jev (typesafe.ai) and Cloudflare Workers AI are helper-model services whose key is added in Settings";
+ "a tip MausBot (the app) itself showed to the person in this chat, labelled as such; genuine, not your own words and not from a stranger. Jev (typesafe.ai) and Cloudflare Workers AI are helper-model services whose key is added in Settings";
/** Security invariant: a card the server built from records replays into a turn only through this block. */
export function cardRecords(text: string, source = CARD_RECORDS_SOURCE): string {
diff --git a/server/replies.test.ts b/server/replies.test.ts
index ad91d79a14..cdec83f927 100644
--- a/server/replies.test.ts
+++ b/server/replies.test.ts
@@ -30,7 +30,7 @@ describe("the app's own add-a-key suggestion", () => {
const card = message({ text, setupSuggestion: { kind: "helperKey" } });
const records = cardRecords(text, SETUP_RECORDS_SOURCE);
expect(records).not.toContain("mail, calendar");
- expect(records).toContain("a tip OpenMausBot (the app) itself showed");
+ expect(records).toContain("a tip MausBot (the app) itself showed");
expect(records).toContain("genuine, not your own words and not from a stranger");
expect(records).toContain("Jev (typesafe.ai)");
expect(transcriptText(card, new Map())).toBe(records);
diff --git a/src/components/HelperKeySuggestion.test.ts b/src/components/HelperKeySuggestion.test.ts
index cc45274ce9..5a3ade6cbd 100644
--- a/src/components/HelperKeySuggestion.test.ts
+++ b/src/components/HelperKeySuggestion.test.ts
@@ -1,6 +1,7 @@
import { Children, createElement, isValidElement, type ReactElement, type ReactNode } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import { beforeEach, describe, expect, it, vi } from "vitest";
+import { PRODUCT_NAME } from "@/lib/brand";
import type { Message } from "@/state/store";
import { HelperKeySuggestion } from "./HelperKeySuggestion";
import { richRowKind } from "./RichMessageRow";
@@ -61,10 +62,10 @@ describe("the add-a-key suggestion card", () => {
expect(answered.notNow).toBeUndefined();
});
- it("says it is a tip from OpenMausBot and what the key and Jev are, so it never looks like a stranger's message", () => {
+ it("says it is a tip from the app and what the key and Jev are, so it never looks like a stranger's message", () => {
for (const view of [render(message()), render(message("notNow"))]) {
expect(view.html).toContain('data-testid="helper-suggestion-from"');
- expect(view.html).toContain("Tip from OpenMausBot");
+ expect(view.html).toContain(`Tip from ${PRODUCT_NAME}`);
expect(view.html).toContain("A helper key lets a small model sort your mail without using your main AI. Jev (typesafe.ai) and Cloudflare Workers AI both offer one.");
}
});
diff --git a/src/locales/en.json b/src/locales/en.json
index fa1fad80c6..9ba1ed547c 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -7724,7 +7724,7 @@
"chat.preview.removePoint": "Remove {label}",
"chat.preview.pointedAt": "Pointed at {parts}",
"chat.helperSuggestion.text": "Want me to sort your email for free? Add a Cloudflare Workers AI key (free tier) or a Jev key.",
- "chat.helperSuggestion.from": "Tip from OpenMausBot",
+ "chat.helperSuggestion.from": "Tip from {app}",
"chat.helperSuggestion.about": "A helper key lets a small model sort your mail without using your main AI. Jev (typesafe.ai) and Cloudflare Workers AI both offer one.",
"chat.helperSuggestion.addKey": "Add key",
"chat.helperSuggestion.notNow": "Not now",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index afc52a15f8..772db5de4f 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -7534,7 +7534,7 @@
"chat.preview.removePoint": "Remover {label}",
"chat.preview.pointedAt": "Você apontou para {parts}",
"chat.helperSuggestion.text": "Quer que eu organize seus e-mails de graça? Adicione uma chave do Cloudflare Workers AI (plano grátis) ou do Jev.",
- "chat.helperSuggestion.from": "Dica do OpenMausBot",
+ "chat.helperSuggestion.from": "Dica do {app}",
"chat.helperSuggestion.about": "Uma chave auxiliar deixa um modelo pequeno organizar seus e-mails sem usar sua IA principal. O Jev (typesafe.ai) e o Cloudflare Workers AI oferecem um.",
"chat.helperSuggestion.addKey": "Adicionar chave",
"chat.helperSuggestion.notNow": "Agora não",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 991b03669c..c5114bc39a 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -36478,7 +36478,7 @@
"computer.reset.button": "196d09c7f7dc0290cc84c7a01347ae3f9a50067925490e7a0b9e262fa2add7f7",
"computer.reset.confirm": "49ee8910d29a1da38e3b3dd2518685d77c45bd5fbb248f44566c2d7b721765f9",
"computer.reset.pending": "cae5248026f571c7a73a8b7319a8ae7b276ebd6b2ed3615572086f0e9b2ca36d",
- "chat.helperSuggestion.from": "338d86d437daa564bbad98f115c5cf2fef5c34206d9a81c637cd6e8a8b13990e",
+ "chat.helperSuggestion.from": "a18ce56f0c7920f241bf64e3146c8d865c3a1f5b9e8b793bd2e4c9729fd2de27",
"chat.helperSuggestion.about": "90a8c616bbb161c27ffad72536c2ba545bbe837e31c70c581a19c0d0d5bb0bbf"
},
"zh": {
@@ -54710,7 +54710,7 @@
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
"backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
- "chat.helperSuggestion.from": "338d86d437daa564bbad98f115c5cf2fef5c34206d9a81c637cd6e8a8b13990e",
+ "chat.helperSuggestion.from": "a18ce56f0c7920f241bf64e3146c8d865c3a1f5b9e8b793bd2e4c9729fd2de27",
"chat.helperSuggestion.about": "90a8c616bbb161c27ffad72536c2ba545bbe837e31c70c581a19c0d0d5bb0bbf"
},
"uk": {
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index aa919b868f..94a4922925 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -7353,7 +7353,7 @@
"chat.preview.removePoint": "移除 {label}",
"chat.preview.pointedAt": "指出了 {parts}",
"chat.helperSuggestion.text": "要我免費幫你整理郵件嗎?新增一個 Cloudflare Workers AI 金鑰(免費額度)或 Jev 金鑰就行。",
- "chat.helperSuggestion.from": "來自 OpenMausBot 的提示",
+ "chat.helperSuggestion.from": "來自 {app} 的提示",
"chat.helperSuggestion.about": "輔助金鑰讓一個小型模型幫你整理郵件,不會用到你的主要 AI。Jev(typesafe.ai)和 Cloudflare Workers AI 都有提供。",
"chat.helperSuggestion.addKey": "新增金鑰",
"chat.helperSuggestion.notNow": "暫時不要",