Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(page): the page opens with the product's name as its title (#4187)
Milind Sonia046dc5df29f
diff --git a/index.html b/index.htmlindex bd77d28498..36e4d3ac13 100644--- a/index.html+++ b/index.html@@ -10,7 +10,7 @@<link rel="icon" type="image/svg+xml" href="/app-icon.svg" /><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /><link rel="manifest" href="/manifest.webmanifest" />- <title>OpenMausBot</title>+ <title>MausBot</title></head><body><div id="root"></div>diff --git a/rail.html b/rail.htmlindex 20eef0b177..d8b644be2d 100644--- a/rail.html+++ b/rail.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>OpenMausBot</title>+ <title>MausBot</title></head><body><div id="root"></div>diff --git a/src/lib/brand.test.ts b/src/lib/brand.test.tsindex 20391e3bf4..7a36da4e2c 100644--- a/src/lib/brand.test.ts+++ b/src/lib/brand.test.ts@@ -1,6 +1,7 @@+import { readFileSync } from "node:fs";import { describe, expect, it } from "vitest";-import { accentInk, applyBrand, bootstrapBrand, brand, brandVars, DEFAULT_BRAND, iconType, luminance, productName } from "./brand";+import { accentInk, applyBrand, bootstrapBrand, brand, brandVars, DEFAULT_BRAND, iconType, luminance, PRODUCT_NAME, productName } from "./brand";describe("brand", () => {it("derives readable ink for light and dark accents", () => {@@ -64,3 +65,9 @@ describe("the tab icon", () => {expect(iconType("https://agentada.cc/icon.png")).toBe("");});});++// The title shows before /api/brand answers, and stays if that request fails.+it.each(["index.html", "rail.html"])("%s starts with the product's name as its title", (page) => {+ const html = readFileSync(new URL(`../../${page}`, import.meta.url), "utf8");+ expect(html).toContain(`<title>${PRODUCT_NAME}</title>`);+});