Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(app-settings): keep the old shared-server words for server-wide settings
AdityaUmale2488c9b9fd2f
diff --git a/server/app-settings/host.test.ts b/server/app-settings/host.test.tsindex 316e9e21d5..a787b0188c 100644--- a/server/app-settings/host.test.ts+++ b/server/app-settings/host.test.ts@@ -187,7 +187,9 @@ describe("reads", () => {expect(error).toContain(`The person can change it themselves in ${where}.`);expect(error).toContain("It is set for each bot on its own, so they change it on every bot they want it for.");// A server-wide setting keeps the plain words.- expect(String((await set("general.language", "de")).body.error)).not.toContain("for each bot on its own");+ const serverWide = String((await set("general.language", "de")).body.error);+ expect(serverWide).toContain("Several people share this server, so bots never change its settings.");+ expect(serverWide).not.toContain("for each bot on its own");});it("refuses writes in a guest-driven conversation", async () => {diff --git a/server/app-settings/host.ts b/server/app-settings/host.tsindex f898e01f9c..09b0214c75 100644--- a/server/app-settings/host.ts+++ b/server/app-settings/host.ts@@ -287,7 +287,9 @@ export function whyNotOwners(why: NotOwners, where: string, perBot = false): strconst themselves = `The person can change it themselves in ${where}.${perBot ? " It is set for each bot on its own, so they change it on every bot they want it for." : ""}`;const fresh = "Or they ask again in a new conversation with this bot that only they write in.";switch (why) {- case "shared": return `Several people share this server, so bots never change settings here, not even a bot's own. ${themselves}`;+ case "shared": return perBot+ ? `Several people share this server, so bots never change settings here, not even a bot's own. ${themselves}`+ : `Several people share this server, so bots never change its settings. ${themselves}`;case "service": return `This server is set up as a shared or hosted server, so bots never change its settings. ${themselves}`;case "guest": return `A guest writes in this conversation, so it is not the owner's own. ${themselves}`;case "someone-else": return `Someone else wrote or answered in this conversation, or a bot opened it, so asking again here won't work. ${themselves} ${fresh}`;