Skip to content

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

fix(antigravity): name the product with productName() in the attached-media note

milind-sonib8c92a2fc849
diff --git a/server/drivers/acp/acp.test.ts b/server/drivers/acp/acp.test.ts
index 62a9e0913a..2e9e44d016 100644
--- a/server/drivers/acp/acp.test.ts
+++ b/server/drivers/acp/acp.test.ts
@@ -10,6 +10,7 @@ import { BUILT_IN_DATA_SYSTEM_PROMPT } from "../../data/instructions.ts";
import type { ProviderInstance } from "../../contracts.ts";
import { TurnNotStartedError } from "../../contracts.ts";
import { recordEvents, type EventRecorder } from "../../testing/events.ts";
+import { productName } from "../../brand.ts";
import { publishedMessages } from "../../harness/text-items.testkit.ts";
import { promptSplitFingerprints, writePromptSplitReceipt } from "../prompt-split.ts";
import { classifyError } from "../retry.ts";
@@ -503,7 +504,7 @@ describe("ACP turns (fake CLI)", () => {
expect(prompt).toEqual([
{ type: "text", text: expect.stringContaining(`What happens in ${clipPath}?
-(OpenMausBot attached these files`) },
+(${productName()} attached these files`) },
{ type: "resource_link", uri: acpMediaUri(clipPath), name: "media link clip.mp4" },
]);
expect(JSON.stringify(prompt)).not.toContain("private-acp-video-bytes");
diff --git a/server/drivers/acp/media-links.ts b/server/drivers/acp/media-links.ts
index e5ce0baa28..b7e8b9ef4b 100644
--- a/server/drivers/acp/media-links.ts
+++ b/server/drivers/acp/media-links.ts
@@ -4,6 +4,8 @@
// PDF. This finds existing local media files named in the turn text and returns those blocks plus a short note.
import { stat } from "node:fs/promises";
+import { productName } from "../../brand.ts";
+
export interface AcpResourceLink {
type: "resource_link";
uri: string;
@@ -78,7 +80,7 @@ export async function readAcpMediaLinks(text: string, usedBytes = 0, budget = AC
}
let note = "";
if (attached.length) {
- note += `\n\n(OpenMausBot attached these files to this message so you can see and hear them directly; do not open them with a file tool: ${attached.join(" | ")})`;
+ note += `\n\n(${productName()} attached these files to this message so you can see and hear them directly; do not open them with a file tool: ${attached.join(" | ")})`;
}
if (skipped.length) {
const limitMb = Math.floor(budget / 1048576);