Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix: say a routine isn't confirmed as the owner's instead of claiming an outside edit
AdityaUmale3024781ad395
diff --git a/server/cloud-lending.ts b/server/cloud-lending.tsindex 1ffaa1c07e..0ebd50f04b 100644--- a/server/cloud-lending.ts+++ b/server/cloud-lending.ts@@ -68,9 +68,9 @@ export function cloudLendingRefusalText(why: CloudLendingRefusal | "memory-changreturn `Only conversations you start with a bot, and routines you wrote, can use ${yours}. Start a new conversation with this bot to use it.`;}-/** A routine's run that someone else's change made no longer the owner's: saving it again in its editor renews it. */+/** A routine's run that isn't proven the owner's (changed or made outside their chats): saving it in its editor renews it. */export function changedRoutineRefusalText(name: string, device: "Mac" | "PC" | "computer"): string {- return `"${name}" was changed outside your own chats, so it can't use your ${device}. Open it and save it to make it yours again.`;+ return `"${name}" can't use your ${device} because it isn't confirmed as yours: it was last changed or made outside your own chats. Open it and save it to make it yours again.`;}/** On a team nobody's own computer is lent: the team's bots use the team's cloud computer. */diff --git a/server/host/cloud-lending-turns.test.ts b/server/host/cloud-lending-turns.test.tsindex ba46fc18f7..96cb3617c4 100644--- a/server/host/cloud-lending-turns.test.ts+++ b/server/host/cloud-lending-turns.test.ts@@ -214,7 +214,7 @@ describe("a routine someone else changed (email 1a1bca40)", () => {lentPlatform: () => "darwin",});}- const changed = "\"Morning inbox\" was changed outside your own chats, so it can't use your Mac. Open it and save it to make it yours again.";+ const changed = "\"Morning inbox\" can't use your Mac because it isn't confirmed as yours: it was last changed or made outside your own chats. Open it and save it to make it yours again.";it("its scheduled run is told, by name, how to make it theirs again", () => {const host = routineRun();@@ -228,7 +228,7 @@ describe("a routine someone else changed (email 1a1bca40)", () => {expect(routineRun({ ownerAuthored: true }).cloudLendingRefusalNotice(turn)).toBeNull();for (const host of [routineRun({ trigger: "webhook" }), routineRun({ trigger: "manual" }), routineRun({ flagged: true })]) {expect(host.cloudLendingRefusalNotice(turn)).not.toBeNull();- expect(host.cloudLendingRefusalNotice(turn)).not.toContain("was changed outside your own chats");+ expect(host.cloudLendingRefusalNotice(turn)).not.toContain("isn't confirmed as yours");}});});