Skip to content

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

test(chat): cover delivered-copy source matching

meutex2209d5c65199
diff --git a/server/bot-attachment.test.ts b/server/bot-attachment.test.ts
index 11a0029c6b..06423b4b6b 100644
--- a/server/bot-attachment.test.ts
+++ b/server/bot-attachment.test.ts
@@ -297,6 +297,7 @@ describe("deliveredCopy", () => {
const bot = (id: string, parentId: string | null, extra: Partial<Message> = {}): Message =>
({ id, at: 1, parentId, role: "bot", kind: "text", text: "", ...extra }) as Message;
const photo = { kind: "image" as const, path: "/store/copy.png", mime: "image/png", name: "sideboard.png" };
+ const renamed = { kind: "file" as const, path: "/store/copy.md", mime: "text/markdown; charset=utf-8", name: "团队技能包-README.md", source: "D:\\AI\\openmausbot-skills\\README.md" };
const ask = { id: "ask", at: 1, parentId: null, role: "user", kind: "text", text: "find a sideboard" } as Message;
it("finds the picture the reply's turn delivered under the name its inline image uses", () => {