Skip to content

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

Schedule automations: opt-in same_conversation keeps one conversation

AdityaUmale1dc51cbaeb74
diff --git a/packages/phone-protocol/src/routine-request.ts b/packages/phone-protocol/src/routine-request.ts
index 2edcfd2899..836a38ee13 100644
--- a/packages/phone-protocol/src/routine-request.ts
+++ b/packages/phone-protocol/src/routine-request.ts
@@ -61,6 +61,8 @@ export interface RoutineRequestDefinition {
overlap?: "skip" | "queue";
/** Also run once each time OpenMausBot starts. Repeating routines only. */
runOnStartup?: boolean;
+ /** Each run continues the conversation the run before worked in. */
+ sameConversation?: boolean;
}
export type RoutineRequestChanges =
diff --git a/server/cloud-send-kinds.ts b/server/cloud-send-kinds.ts
index dad79d7046..ab1fa28f7d 100644
--- a/server/cloud-send-kinds.ts
+++ b/server/cloud-send-kinds.ts
@@ -36,7 +36,7 @@ import { restorePaths, validRelative } from "./workspace-backup-paths.ts";
const SHARED_ROOT = "/omb-data";
const FINISHED = new Set(["completed", "failed", "cancelled", "missed"]);
const KIND_BODY_MAX = 8 * 1024 * 1024;
-const ROUTINE_FIELDS = ["name", "prompt", "target", "botId", "groupId", "runOn", "schedule", "durationMinutes", "timeoutMinutes", "attachments", "continuity", "modelSelection",
+const ROUTINE_FIELDS = ["name", "prompt", "target", "botId", "groupId", "runOn", "schedule", "durationMinutes", "timeoutMinutes", "attachments", "continuity", "sameConversation", "modelSelection",
"overlap", "runOnStartup", "sourceThreadId", "resultsThreadId", "createdAt", "checks", "access", "deliver"] as const;
const CALL_FIELDS = ["name", "description", "botIds", "schedule", "durationMinutes", "attachments", "roomId", "createdAt"] as const;
const WEBHOOK_FIELDS = ["name", "prompt", "botId", "runOn", "delivery", "groupId", "eventTypes", "payloadFilter", "maxPendingRuns", "sameConversation", "resultsThreadId", "createdAt"] as const;
diff --git a/server/drivers/agents-call-triggers.test.ts b/server/drivers/agents-call-triggers.test.ts
index 97908ca481..afc18d4b20 100644
--- a/server/drivers/agents-call-triggers.test.ts
+++ b/server/drivers/agents-call-triggers.test.ts
@@ -128,16 +128,18 @@ describe("delete_trigger", () => {
});
describe("same_conversation in the trigger tool", () => {
- it("sends it for an app event, webhook or update, and refuses it elsewhere before anything is sent", async () => {
+ it("sends it for an app event, webhook, schedule or update, and refuses it for a limit reset before anything is sent", async () => {
const { calls, context: ctx } = context();
await callTool("trigger", { action: "create", when: "app_event", name: "Acme", instructions: "Draft.", app: "gmail", event: "GMAIL_NEW_GMAIL_MESSAGE", same_conversation: true }, ctx);
expect(calls[0]!.body).toMatchObject({ action: "create", kind: "app", trigger: { sameConversation: true } });
await callTool("trigger", { action: "update", trigger_id: "t-1", same_conversation: false }, ctx);
expect(calls[1]!.body).toMatchObject({ action: "update", triggerId: "t-1", changes: { sameConversation: false } });
+ await callTool("trigger", { action: "create", when: "schedule", name: "A", instructions: "B", schedule: { type: "daily", time: "09:00" }, same_conversation: true }, ctx);
+ expect(calls[2]!.body).toMatchObject({ action: "create", kind: "schedule", routine: { sameConversation: true } });
const refused = context();
const text = async (args: Record<string, unknown>) => (await callTool("trigger", args, refused.context)).text;
- expect(await text({ action: "create", when: "schedule", name: "A", instructions: "B", schedule: { type: "daily", time: "09:00" }, same_conversation: true }))
- .toBe("same_conversation applies only to when=app_event or when=webhook.");
+ expect(await text({ action: "create", when: "limit_reset", name: "A", instructions: "B", same_conversation: true }))
+ .toBe("same_conversation applies only to when=app_event, when=webhook or when=schedule.");
expect(await text({ action: "create", when: "app_event", name: "A", instructions: "B", app: "gmail", event: "X", same_conversation: "yes" }))
.toBe("same_conversation must be true or false.");
expect(refused.calls).toEqual([]);
diff --git a/server/drivers/agents-call-triggers.ts b/server/drivers/agents-call-triggers.ts
index 9dca71312e..e75f8ddd6b 100644
--- a/server/drivers/agents-call-triggers.ts
+++ b/server/drivers/agents-call-triggers.ts
@@ -15,7 +15,7 @@ export const TRIGGER_TOOL_NAMES: ReadonlySet<string> = new Set(["trigger_info",
const LIST_ROUTE = "/api/internal/triggers";
const EVENTS_ROUTE = "/api/internal/trigger-events";
const APP_ONLY = ["app", "event", "account"] as const;
-const SAME_CONVERSATION_ONLY = "same_conversation applies only to when=app_event or when=webhook.";
+const SAME_CONVERSATION_ONLY = "same_conversation applies only to when=app_event, when=webhook or when=schedule.";
const REQUEST_ROUTE = "/api/internal/trigger-requests";
const TAKES = () => ` trigger takes ${argumentNames(fullInputSchema("trigger"))}.`;
const SCHEDULE_ONLY = ["schedule", "timeout_minutes", "timeoutMinutes", "clear_timeout", "continuity", "overlap", "run_on_startup", "runOnStartup"] as const;
@@ -460,7 +460,7 @@ async function createTrigger(args: Json, forBotId: string | undefined, context:
const appOnly = [...APP_ONLY, "filter", "event_config"].find((key) => args[key] !== undefined && args[key] !== null);
if (appOnly) return { text: `${appOnly} applies only to when=app_event.`, isError: true };
}
- if (fields.sameConversation !== undefined && when !== "app_event" && when !== "webhook") return { text: SAME_CONVERSATION_ONLY, isError: true };
+ if (fields.sameConversation !== undefined && when === "limit_reset") return { text: SAME_CONVERSATION_ONLY, isError: true };
if (when === "app_event") {
const misplaced = [...SCHEDULE_ONLY, "webhook_event_types", "webhook_payload_filter"].find((key) => args[key] !== undefined && args[key] !== null);
if (misplaced) return { text: `An app-event trigger fires when the app's event happens, so it takes no ${misplaced}.`, isError: true };
diff --git a/server/drivers/agents-catalog-goldens/full.tools-list.json b/server/drivers/agents-catalog-goldens/full.tools-list.json
index 6d8b24bcd9..b5bd6e5dd3 100644
--- a/server/drivers/agents-catalog-goldens/full.tools-list.json
+++ b/server/drivers/agents-catalog-goldens/full.tools-list.json
@@ -1695,7 +1695,7 @@
},
"same_conversation": {
"type": "boolean",
- "description": "app_event or webhook: each run continues the last run's conversation."
+ "description": "app_event, webhook or schedule: each run continues the last run's conversation."
},
"continuity": {
"type": "boolean",
diff --git a/server/drivers/agents-catalog-goldens/profiles.json b/server/drivers/agents-catalog-goldens/profiles.json
index e2c75a4083..86289a7f36 100644
--- a/server/drivers/agents-catalog-goldens/profiles.json
+++ b/server/drivers/agents-catalog-goldens/profiles.json
@@ -1,7 +1,7 @@
{
"default": {
- "bytes": 56634,
- "sha256": "2decf9371ac210090dcdd8c67e3ce2755d724629df0dfde03635c9d057968c52",
+ "bytes": 56644,
+ "sha256": "5f644e1d2ad5b41e4cb94aab5875f6e06113c91a5ae409d0564d0120b5f92b4b",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -56,8 +56,8 @@
]
},
"voice": {
- "bytes": 57415,
- "sha256": "bf36d48236a5d659e3c7865a4768df92f3617297348c2e8d696574e49346abee",
+ "bytes": 57425,
+ "sha256": "08198914b39d4bf28ece55109ad1543ecefd047a66d90805bdb7c0442f2c257d",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -113,8 +113,8 @@
]
},
"shared": {
- "bytes": 58899,
- "sha256": "6b880005c09134571663b738421c4b242e700c441473a92d3027396cb188a1b7",
+ "bytes": 58909,
+ "sha256": "7511212d830154af933a0e626f2788955a6b0afcf35858459593c23ea9ca6d54",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -171,8 +171,8 @@
]
},
"shared+voice": {
- "bytes": 59680,
- "sha256": "f8f934175a4c412140bdcda7a83fb30e5a9a162b553691a8db381d43932d348e",
+ "bytes": 59690,
+ "sha256": "dd6bcf6843858cf54a74c8a2034086dacea6ff3717f1b82e52b3c7d660b22e79",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -230,8 +230,8 @@
]
},
"skills": {
- "bytes": 58720,
- "sha256": "b60ce29cd3ff58be3a4b304968d34d9d86d5fda98b5a993ec5e0ab54db432ef8",
+ "bytes": 58730,
+ "sha256": "3aa79457fae040dc7c2a18912f7726edd67b0630c2b48023c1c32502db8a0711",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -288,8 +288,8 @@
]
},
"skills+voice": {
- "bytes": 59501,
- "sha256": "aa0aee17bc586db280a96ed3e47a6a0d839da6b79446d6cd475dfcec4b4a14a1",
+ "bytes": 59511,
+ "sha256": "a9edd3fca4347666cb0e9b573a1d2f9e749c645891ab9339f7f0d1fe200eac59",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -347,8 +347,8 @@
]
},
"skills+shared": {
- "bytes": 60985,
- "sha256": "a57de9ee16be15356703abd212c556d6365417e379f446b1aacd82573f619bc5",
+ "bytes": 60995,
+ "sha256": "6f32aef745f1e4aed0cb93f8171eda4d9a16c99cdc34d69728b8fdf8baad58da",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -407,8 +407,8 @@
]
},
"skills+shared+voice": {
- "bytes": 61766,
- "sha256": "9588e10f5f0f0205d08bec679e59a24020bc006fc2587b27bbcff0d13d185bff",
+ "bytes": 61776,
+ "sha256": "ae4a0214f4dcb79a028e8372f557d700865b364cde700c5d095de0cf379a12d0",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -468,8 +468,8 @@
]
},
"non-chief": {
- "bytes": 48217,
- "sha256": "d9be68fdc92ead2b71e0325f74b437c510cc28e0c9964cad32c289526e13e45d",
+ "bytes": 48227,
+ "sha256": "69183d2787584cb70e54abf3e3bb95f3ad695e3dc710760d7ee98e6327eecc24",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -517,8 +517,8 @@
]
},
"voice+non-chief": {
- "bytes": 48998,
- "sha256": "00b5efe3f1f8f3374f396685c496d5bf1f460e40c15e105ceea2647e39de7e3c",
+ "bytes": 49008,
+ "sha256": "2cfa1dfe709e7fcb5889dc56dc5c317f50b4d82fd75145424fe287ebd3e55489",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -567,8 +567,8 @@
]
},
"shared+non-chief": {
- "bytes": 50482,
- "sha256": "867114845887900a2e46cd56dd4525d32d328142a6afc381e0853f5a556ad51b",
+ "bytes": 50492,
+ "sha256": "43f9a167fdb8a6963fac5a5d63795794611ef947160d2d3372c6c93e8c1b80a2",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -618,8 +618,8 @@
]
},
"shared+voice+non-chief": {
- "bytes": 51263,
- "sha256": "5cf2f3871579ee111801ca4187a624738e2cb43b103f82b2aaccdad49947632d",
+ "bytes": 51273,
+ "sha256": "83d559db269a5b47e511f176f8fc575ba6becd65c4dd6d7fe336238da1380d07",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -670,8 +670,8 @@
]
},
"skills+non-chief": {
- "bytes": 50303,
- "sha256": "22bb486a7528bc854c84a17404904271da7a2d5074a1529654cd4cca47e7bc35",
+ "bytes": 50313,
+ "sha256": "5e6c7fa154a83ea58950de6d03c6b4af02baf2e38d496dc4f23022cf6cefec1f",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -721,8 +721,8 @@
]
},
"skills+voice+non-chief": {
- "bytes": 51084,
- "sha256": "ca3b30613d953ecaaff5cd67c341c0ed7dd2193890e35568798c0573e9621a59",
+ "bytes": 51094,
+ "sha256": "2cb624978ecd880615e81a783d15d46d3c6fcd5f16b51dc1114d135fc30fca6d",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -773,8 +773,8 @@
]
},
"skills+shared+non-chief": {
- "bytes": 52568,
- "sha256": "c3264663b93f90538c8e2f5e7514246e96be4c72a23cf5fd5f913ce4aa569a90",
+ "bytes": 52578,
+ "sha256": "6b8f450308c604b7248f6a59b3d04c192e0f5df8b8f1db8edccb3f93b6783413",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -826,8 +826,8 @@
]
},
"skills+shared+voice+non-chief": {
- "bytes": 53349,
- "sha256": "b0c1ed72d27413ea5163a7978dcb9ba599ffcd86505b78a32381f7e1d63640d3",
+ "bytes": 53359,
+ "sha256": "f3e2c3c50dbf90cd1f2c274e4ee69b4d1bead6c0c079371c2737550a498f66ec",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -880,8 +880,8 @@
]
},
"skills+shared+voice+cloud-home": {
- "bytes": 61532,
- "sha256": "fa5f27a8207fe7d8b9b74a2e0616e32eea593f4f0457d49f03747b42e811e47f",
+ "bytes": 61542,
+ "sha256": "b1d0a7526fc42f1e073e6c5e97cf53b97a84302771eacc3eabb60abc176220f5",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -941,8 +941,8 @@
]
},
"skills+shared+voice+non-chief+cloud-home": {
- "bytes": 53115,
- "sha256": "ff2fa8c24a46b3438f9b5122dd0c42fc47d71a6afa73135c66fa30e18a0f8cde",
+ "bytes": 53125,
+ "sha256": "530c3bdb32150119def4d9d54686c7e3b8bfe5b5aa55c8bdb77e087d1b90f91b",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -995,8 +995,8 @@
]
},
"skills+shared+voice+x": {
- "bytes": 65605,
- "sha256": "ae3ba60313df88c18318f4839aedd58347d3e5baae80ca23b76baada257e992c",
+ "bytes": 65615,
+ "sha256": "d5e7b339a6f391b939c21ba1ff082d2693a478bbab1d10b3de83f2840e0d67be",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1060,8 +1060,8 @@
]
},
"skills+shared+voice+x+team": {
- "bytes": 65605,
- "sha256": "ae3ba60313df88c18318f4839aedd58347d3e5baae80ca23b76baada257e992c",
+ "bytes": 65615,
+ "sha256": "d5e7b339a6f391b939c21ba1ff082d2693a478bbab1d10b3de83f2840e0d67be",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1125,8 +1125,8 @@
]
},
"skills+shared+voice+x+team+images": {
- "bytes": 66378,
- "sha256": "3a6b20ce1882c76edf51bc555d861af24c63a60ea478d727879d078f6a5ef624",
+ "bytes": 66388,
+ "sha256": "f211e74680b51b17bab7a7e3cde2013ec7c984c12b49b0cb0755211351141c92",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1191,8 +1191,8 @@
]
},
"default+legacy-switches": {
- "bytes": 56634,
- "sha256": "2decf9371ac210090dcdd8c67e3ce2755d724629df0dfde03635c9d057968c52",
+ "bytes": 56644,
+ "sha256": "5f644e1d2ad5b41e4cb94aab5875f6e06113c91a5ae409d0564d0120b5f92b4b",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1247,8 +1247,8 @@
]
},
"default+mausbot": {
- "bytes": 57285,
- "sha256": "c6d983ecebac3cd6bd681990f571714afb07eda8b43d2b1e187e817cb7475315",
+ "bytes": 57295,
+ "sha256": "1a688ac925c5cba3e46e6c0fbbacca5af094152d09d2e73e4e66d35ab7e76e44",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1305,8 +1305,8 @@
]
},
"skills+shared+voice+mausbot": {
- "bytes": 62417,
- "sha256": "bab1e8084b41f8d57335d53e6435dff9d54dacfb0ce9ad42f79fe956154f070d",
+ "bytes": 62427,
+ "sha256": "b2ba79e28cad896db39caecf0773291d108c57a9aa8b62de09680580954d1b08",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1368,8 +1368,8 @@
]
},
"default+no-computer-pick": {
- "bytes": 55422,
- "sha256": "d75962e48f2ad152a187073abfcf028a1ca28e15ecb793de34b24a621e476a0b",
+ "bytes": 55432,
+ "sha256": "76973b47d4db22c3629947682be897dd4a363555c87e39512d7be72a8f3d887e",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1423,8 +1423,8 @@
]
},
"default+room": {
- "bytes": 52418,
- "sha256": "c887ce95893fa2384f82f7ac0d21e6617823c5b43bf37b30cef40372d50d6a83",
+ "bytes": 52428,
+ "sha256": "1c0da575f1da5ac4939ae2edae9de5743b06caa43c5bbceb80c5dd29a7731158",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1473,8 +1473,8 @@
]
},
"non-chief+room": {
- "bytes": 44001,
- "sha256": "6cf7277b0c0699cfa8c1b3d7d69aa88879bb8f6275282e87402c157d2865ccc8",
+ "bytes": 44011,
+ "sha256": "803cce763f47cc622246cd73f77299715989469975282d16bdc36d485a349cef",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1516,8 +1516,8 @@
]
},
"default+images": {
- "bytes": 57407,
- "sha256": "c8ac595679e978857e7e9b9756bb9f42945b6cb240a085b798d12ef0cc5bd0a4",
+ "bytes": 57417,
+ "sha256": "da138e68dd169a6c86d5b35eb2404392f3d2938a42549702995a7e619bd11b56",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1573,8 +1573,8 @@
]
},
"skills+shared+voice+x+team+images+hosting": {
- "bytes": 68241,
- "sha256": "871fd1dc259e2e78524f565a5490b1e2e8e8a8bf29dcde28a7b642035ea7f369",
+ "bytes": 68251,
+ "sha256": "e5275e78cc2a996ff7cc0da8b361230039e629a148819af451b4dd25eea1c7ca",
"tools": [
"tool_result_read",
"list_shared_computers",
@@ -1641,8 +1641,8 @@
]
},
"default+hosting": {
- "bytes": 58497,
- "sha256": "4041ef88bc2fe2d0c7dc2d1d5b7d905d692a983b818eb0871b870cc16e752415",
+ "bytes": 58507,
+ "sha256": "9ad0e3b5191a4927099dbe38a3e32775e4a789cdcf6d84574a70adabd0f3b399",
"tools": [
"tool_result_read",
"list_room_targets",
@@ -1699,8 +1699,8 @@
]
},
"default+tools-off": {
- "bytes": 53040,
- "sha256": "8dce434761ba9831d770b425a8ad46478b60b43a4c06230a19e412f96fa9a1d7",
+ "bytes": 53050,
+ "sha256": "e242150fe5a24a3c14f4129eea5896b4a3abae4aade44fd2b752dbe8d5ad6036",
"tools": [
"tool_result_read",
"list_room_targets",
diff --git a/server/drivers/agents-catalog.ts b/server/drivers/agents-catalog.ts
index cb345ad17b..b80b4df73d 100644
--- a/server/drivers/agents-catalog.ts
+++ b/server/drivers/agents-catalog.ts
@@ -100,7 +100,7 @@ const TRIGGER_FIELDS_SCHEMA = {
},
timeout_minutes: { type: "integer", minimum: 5, maximum: 240, description: "Schedules: optional limit on a run, 5 to 240." },
clear_timeout: { type: "boolean", description: "Update: true removes the limit." },
- same_conversation: { type: "boolean", description: "app_event or webhook: each run continues the last run's conversation." },
+ same_conversation: { type: "boolean", description: "app_event, webhook or schedule: each run continues the last run's conversation." },
continuity: { type: "boolean", description: "Schedules: each run gets the last run's report." },
overlap: { type: "string", enum: ["skip", "queue"], description: "Schedules: while a run works, skip (default) or queue one." },
run_on_startup: { type: "boolean", description: "Repeating schedules: also run when OpenMausBot starts." },
diff --git a/server/routine-input.ts b/server/routine-input.ts
index aaf6392ac6..6f370e3172 100644
--- a/server/routine-input.ts
+++ b/server/routine-input.ts
@@ -77,11 +77,14 @@ export function sanitizeInput(input: RoutineInput, after: number): Omit<Routine,
if (continuity && target === "room-goal") {
throw new Error("Room goals do not carry continuity yet");
}
+ const sameConversation = input.sameConversation === true;
+ if (sameConversation && target === "room-goal") throw new Error("Room goals do not keep one conversation");
const modelSelection = input.modelSelection == null ? undefined : loadModelSelection(input.modelSelection);
if (input.modelSelection != null && !modelSelection) throw new Error("Choose a model: an engine, a model id, and an effort level or a variant, not both");
if (modelSelection && target === "room-goal") throw new Error("Room goals run on their bots' own models");
const schedule = cleanSchedule(input.schedule, after);
if (modelSelection && schedule.type === "limit_reset") throw new Error("A limit-reset routine continues its conversation on that conversation's model");
+ if (sameConversation && schedule.type === "limit_reset") throw new Error("A limit-reset routine already continues its conversation");
const asked = Array.isArray(input.checks) && input.checks.length === 0 ? null : input.checks;
const checks = asked == null ? undefined : loadChecks(asked);
if (asked != null && (!checks || checks.length !== new Set(asked).size)) throw userErrorThrown("serverError.routine.checks");
@@ -101,6 +104,7 @@ export function sanitizeInput(input: RoutineInput, after: number): Omit<Routine,
...(timeoutMinutes === undefined ? {} : { timeoutMinutes }),
attachments,
...(continuity ? { continuity: true } : {}),
+ ...(sameConversation ? { sameConversation: true } : {}),
...(modelSelection ? { modelSelection } : {}),
...(input.overlap === "queue" ? { overlap: "queue" as const } : {}),
...(input.runOnStartup === true && !runsOnce(schedule) ? { runOnStartup: true } : {}),
diff --git a/server/routine-request-schemas.ts b/server/routine-request-schemas.ts
index d7349e0e2d..871d8aa420 100644
--- a/server/routine-request-schemas.ts
+++ b/server/routine-request-schemas.ts
@@ -48,6 +48,7 @@ export const routineToolDefinitionSchema = z.object({
durationMinutes: z.number().optional(),
timeoutMinutes: z.number().nullable().optional(),
continuity: z.boolean().optional(),
+ sameConversation: z.boolean().optional(),
overlap: z.enum(["skip", "queue"]).optional(),
runOnStartup: z.boolean().optional(),
}).strict();
@@ -177,6 +178,7 @@ export const storedDefinitionSchema = z.object({
durationMinutes: z.number().int().min(5).max(240),
timeoutMinutes: z.number().int().min(5).max(240).optional(),
continuity: z.boolean().optional(),
+ sameConversation: z.boolean().optional(),
overlap: z.enum(["skip", "queue"]).optional(),
runOnStartup: z.boolean().optional(),
}).strict();
diff --git a/server/routine-requests.test.ts b/server/routine-requests.test.ts
index ebb22467bf..6cd3c25d8a 100644
--- a/server/routine-requests.test.ts
+++ b/server/routine-requests.test.ts
@@ -160,7 +160,7 @@ describe("RoutineRequestService", () => {
it.each<Partial<RoutineInput>>([
{ enabled: false }, { botId: "bot-b" }, { target: "room-goal", groupId: "room-a" },
- { runOn: "cloud" }, { continuity: true }, { timeoutMinutes: 10 }, { durationMinutes: 60 }, { overlap: "queue" },
+ { runOn: "cloud" }, { continuity: true }, { sameConversation: true }, { timeoutMinutes: 10 }, { durationMinutes: 60 }, { overlap: "queue" },
{ runOnStartup: true },
{ schedule: { type: "daily", time: "10:00", weekdays: [1, 3] } },
{ attachments: [{ id: "context", name: "Context", path: "/fixture/context.txt", kind: "file", size: 20 }] },
@@ -410,6 +410,16 @@ describe("RoutineRequestService", () => {
expect(JSON.stringify(card)).toContain("redacted");
});
+ it("carries same_conversation from the proposal through the card to the created routine", async () => {
+ const { service, store, routines } = harness();
+ const proposed = await service.propose({ botId: "bot-a", threadId: "thread-a", proposal: createProposal({ sameConversation: true }) });
+ expect(proposed.detail).toContain("Continuity: Each run continues the previous run's conversation");
+ expect(proposed.detail).toContain("each run continues the previous run's conversation.");
+ expect(store.messagesFor("thread-a")[0]!.card!.routineRequest?.operation).toMatchObject({ action: "create", routine: { sameConversation: true } });
+ expect(service.resolve({ botId: "bot-a", threadId: "thread-a", requestId: proposed.requestId, behavior: "allow" }).state).toBe("applied");
+ expect(routines.listRoutines().find((routine) => routine.name === "Morning brief")?.sameConversation).toBe(true);
+ });
+
it("carries continuity from the proposal through the card to the created routine", async () => {
const { service, store, routines } = harness();
diff --git a/server/routine-requests.ts b/server/routine-requests.ts
index 45c0732387..aec2e5d16d 100644
--- a/server/routine-requests.ts
+++ b/server/routine-requests.ts
@@ -3,7 +3,7 @@ import { createHash } from "node:crypto";
import { isDeepStrictEqual } from "node:util";
import { formatInstant, routineCronText } from "./routine-cron-text.ts";
-import { conversationLanguage } from "./server-lines.ts";
+import { conversationLanguage, serverLine } from "./server-lines.ts";
import { plainClock, plainTimeZone, plainWeekdays } from "../shared/plain-time-zone.ts";
import { normalizeCronSchedule, nextCronRuns } from "../shared/routine-schedule.ts";
import { newId } from "./contracts.ts";
@@ -370,7 +370,7 @@ function normalizeDefinition(input: RoutineToolDefinitionInput, now: number, own
runOn: runOn(input.runOn),
durationMinutes: duration(input.durationMinutes),
...(timeoutMinutes == null ? {} : { timeoutMinutes }),
- ...(input.continuity === true ? { continuity: true } : {}),
+ ...(input.continuity === true ? { continuity: true } : {}), ...(input.sameConversation === true ? { sameConversation: true } : {}),
...(input.overlap === "queue" ? { overlap: "queue" as const } : {}),
...(input.runOnStartup === true ? { runOnStartup: true } : {}),
};
@@ -384,7 +384,7 @@ function normalizeChanges(input: RoutineToolChangesInput, now: number, ownEngine
if (input.runOn !== undefined) changes.runOn = runOn(input.runOn);
if (input.durationMinutes !== undefined) changes.durationMinutes = duration(input.durationMinutes);
if (input.timeoutMinutes !== undefined) changes.timeoutMinutes = timeout(input.timeoutMinutes);
- if (input.continuity !== undefined) changes.continuity = input.continuity === true;
+ if (input.continuity !== undefined) changes.continuity = input.continuity === true; if (input.sameConversation !== undefined) changes.sameConversation = input.sameConversation === true;
if (input.overlap !== undefined) changes.overlap = input.overlap;
if (input.runOnStartup !== undefined) changes.runOnStartup = input.runOnStartup === true;
return changes;
@@ -574,8 +574,8 @@ export function scheduleText(schedule: RoutineRequestSchedule, timeZone: string,
return `${plainWeekdays(schedule.weekdays)} at ${plainClock(schedule.time)} ${zone}`;
}
-export function consequenceLine(schedule: RoutineRequestSchedule, continuity = false): string {
- const session = continuity ? "each run starts a fresh session with the previous run's report" : "each run starts a fresh session";
+export function consequenceLine(schedule: RoutineRequestSchedule, continuity = false, sameConversation = false, language?: string): string {
+ const session = sameConversation ? serverLine(language, "server.routines.card.sessionContinues") : continuity ? "each run starts a fresh session with the previous run's report" : "each run starts a fresh session";
if (schedule.type === "cron") return `Will run at matching calendar times, ${plainTimeZone(schedule.timeZone)}; ${session}.`;
if (schedule.type === "once") return "Will run once; that run starts a fresh session.";
if (schedule.type === "limit_reset") {
@@ -607,7 +607,7 @@ function effectiveDefinition(operation: RoutineRequestOperation, manager: Routin
runOn: existing.runOn,
durationMinutes: existing.durationMinutes,
...(existing.timeoutMinutes === undefined ? {} : { timeoutMinutes: existing.timeoutMinutes }),
- ...(existing.continuity ? { continuity: true } : {}),
+ ...(existing.continuity ? { continuity: true } : {}), ...(existing.sameConversation ? { sameConversation: true } : {}),
...(existing.overlap ? { overlap: existing.overlap } : {}),
...(existing.runOnStartup ? { runOnStartup: true } : {}),
};
@@ -693,13 +693,13 @@ function cardCopy(
: []),
`Runs on: ${destination}`,
`Run limit: ${definition.timeoutMinutes === undefined ? "No limit" : `${definition.timeoutMinutes} minutes`}`,
- `Continuity: ${definition.continuity ? "Carries the previous run's report into the next run" : "Each run starts fresh"}`,
+ `Continuity: ${definition.sameConversation ? serverLine(language, "server.routines.card.conversationKept") : definition.continuity ? "Carries the previous run's report into the next run" : "Each run starts fresh"}`,
`While busy: ${definition.overlap === "queue" ? "Queue one scheduled run; skip further occurrences until it starts" : "Skip overlapping scheduled occurrences"}`,
...(definition.runOnStartup || (operation.action === "update" && operation.changes.runOnStartup !== undefined)
? [`On startup: ${definition.runOnStartup ? "Also runs once each time OpenMausBot starts" : "Runs only on its schedule"}`]
: []),
...(operation.action === "create" || operation.action === "update"
- ? [consequenceLine(definition.schedule, Boolean(definition.continuity))]
+ ? [consequenceLine(definition.schedule, Boolean(definition.continuity), Boolean(definition.sameConversation), language)]
: []),
"",
"Instructions:",
@@ -720,7 +720,7 @@ function inputFromDefinition(definition: RoutineRequestDefinition, botId: string
schedule: asSchedule(definition.schedule, now),
durationMinutes: definition.durationMinutes,
...(definition.timeoutMinutes === undefined ? {} : { timeoutMinutes: definition.timeoutMinutes }),
- ...(definition.continuity ? { continuity: true } : {}),
+ ...(definition.continuity ? { continuity: true } : {}), ...(definition.sameConversation ? { sameConversation: true } : {}),
...(definition.overlap === "queue" ? { overlap: "queue" as const } : {}),
...(definition.runOnStartup ? { runOnStartup: true } : {}),
};
@@ -738,7 +738,7 @@ function updateFromChanges(
if (changes.runOn !== undefined) patch.runOn = changes.runOn;
if (changes.durationMinutes !== undefined) patch.durationMinutes = changes.durationMinutes;
if (changes.timeoutMinutes !== undefined) patch.timeoutMinutes = changes.timeoutMinutes;
- if (changes.continuity !== undefined) patch.continuity = changes.continuity;
+ if (changes.continuity !== undefined) patch.continuity = changes.continuity; if (changes.sameConversation !== undefined) patch.sameConversation = changes.sameConversation;
if (changes.overlap !== undefined) patch.overlap = changes.overlap;
if (changes.runOnStartup !== undefined) patch.runOnStartup = changes.runOnStartup;
return patch;
@@ -812,7 +812,7 @@ function revalidateOperation(operation: RoutineRequestOperation, manager: Routin
|| routine.runOn !== definition.runOn || routine.prompt !== definition.instructions
|| routine.durationMinutes !== definition.durationMinutes
|| routine.timeoutMinutes !== definition.timeoutMinutes
- || Boolean(routine.continuity) !== Boolean(definition.continuity)
+ || Boolean(routine.continuity) !== Boolean(definition.continuity) || Boolean(routine.sameConversation) !== Boolean(definition.sameConversation)
|| (routine.overlap ?? "skip") !== (definition.overlap ?? "skip")
|| Boolean(routine.runOnStartup) !== Boolean(definition.runOnStartup)
|| (routine.attachments?.length ?? 0) > 0) return false;
@@ -897,7 +897,7 @@ function routineSnapshot(routine: Routine): RoutineRequestSnapshot | undefined {
runOn: routine.runOn,
durationMinutes: routine.durationMinutes,
...(routine.timeoutMinutes === undefined ? {} : { timeoutMinutes: routine.timeoutMinutes }),
- ...(routine.continuity ? { continuity: true } : {}),
+ ...(routine.continuity ? { continuity: true } : {}), ...(routine.sameConversation ? { sameConversation: true } : {}),
...(routine.overlap === "queue" ? { overlap: "queue" as const } : {}),
...(routine.runOnStartup ? { runOnStartup: true } : {}),
enabled: routine.enabled,
@@ -919,7 +919,7 @@ function restorePatch(before: RoutineRequestSnapshot, now: number): Partial<Rout
: schedule,
durationMinutes: before.durationMinutes,
timeoutMinutes: before.timeoutMinutes ?? null,
- continuity: before.continuity === true,
+ continuity: before.continuity === true, sameConversation: before.sameConversation === true,
overlap: before.overlap ?? "skip",
runOnStartup: before.runOnStartup === true,
};
@@ -1151,7 +1151,7 @@ export class RoutineRequestService {
schedule: asSchedule(before.schedule, now),
durationMinutes: before.durationMinutes,
...(before.timeoutMinutes === undefined ? {} : { timeoutMinutes: before.timeoutMinutes }),
- ...(before.continuity ? { continuity: true } : {}),
+ ...(before.continuity ? { continuity: true } : {}), ...(before.sameConversation ? { sameConversation: true } : {}),
...(before.overlap === "queue" ? { overlap: "queue" as const } : {}),
...(before.runOnStartup ? { runOnStartup: true } : {}),
...(before.resultsThreadId ? { resultsThreadId: before.resultsThreadId } : {}),
diff --git a/server/routine-run-definition.ts b/server/routine-run-definition.ts
index e4b08f83be..b2150971a2 100644
--- a/server/routine-run-definition.ts
+++ b/server/routine-run-definition.ts
@@ -23,7 +23,7 @@ export function resolveRoutineResultsThread(
}
export function routineRunDefinition(routine: Routine): Pick<RoutineRun,
- "routineName" | "prompt" | "durationMinutes" | "timeoutMinutes" | "attachments" | "target" | "groupId" | "botId" | "runOn" | "access" | "deliver"> {
+ "routineName" | "prompt" | "durationMinutes" | "timeoutMinutes" | "attachments" | "target" | "groupId" | "botId" | "runOn" | "access" | "deliver" | "sameConversation"> {
return {
routineName: routine.name,
prompt: routine.prompt,
@@ -36,5 +36,6 @@ export function routineRunDefinition(routine: Routine): Pick<RoutineRun,
runOn: routine.runOn ?? "maus",
access: routine.access,
deliver: routine.deliver,
+ sameConversation: routine.sameConversation ? true : undefined,
};
}
diff --git a/server/routine-same-conversation.ts b/server/routine-same-conversation.ts
index ba65829750..74780ea597 100644
--- a/server/routine-same-conversation.ts
+++ b/server/routine-same-conversation.ts
@@ -1,11 +1,11 @@
-// Webhook and app-event automations that keep one conversation (sameConversation): each run continues the conversation
-// its trigger's run before worked in. Runs of such a trigger take turns in it (sameRoutineWorking in routines.ts).
+// Automations that keep one conversation (sameConversation: webhooks, app events and schedules): each run continues the
+// conversation its trigger's run before worked in. Runs of such a trigger take turns in it (sameRoutineWorking in routines.ts).
import type { RoutineRun } from "./routines.ts";
/** The conversation the same trigger's latest earlier run for this bot worked in; null for its first run. `runs` newest first (listRuns). */
-export function previousEventThread(runs: readonly RoutineRun[], run: Pick<RoutineRun, "id" | "webhookId" | "botId">): string | null {
- if (!run.webhookId) return null;
- return runs.find((other) => other.id !== run.id && other.webhookId === run.webhookId && other.botId === run.botId && other.threadId)?.threadId ?? null;
+export function previousEventThread(runs: readonly RoutineRun[], run: Pick<RoutineRun, "id" | "routineId" | "botId">): string | null {
+ if (!run.routineId) return null;
+ return runs.find((other) => other.id !== run.id && other.routineId === run.routineId && other.botId === run.botId && other.threadId)?.threadId ?? null;
}
/** The conversation a run that keeps one conversation joins. Gone (deleted) or never there: null, so this run starts a
diff --git a/server/routines.test.ts b/server/routines.test.ts
index 01bae8b774..7c7681413c 100644
--- a/server/routines.test.ts
+++ b/server/routines.test.ts
@@ -4247,7 +4247,7 @@ describe("event automations that keep one conversation", () => {
const h = harness();
const first = event(h, "d1");
expect(previousEventThread(h.manager.listRuns(), first as never)).toBeNull();
- expect(previousEventThread(h.manager.listRuns(), { id: "x", botId: "maus-1" })).toBeNull();
+ expect(previousEventThread(h.manager.listRuns(), { id: "x", routineId: "other-trigger", botId: "maus-1" })).toBeNull();
});
it("starts a new conversation for every run when the option is off", async () => {
@@ -4272,3 +4272,44 @@ describe("event automations that keep one conversation", () => {
expect(h.manager.listRuns().find((run) => run.id === queued.id)?.prompt).toBe("Handle it\n+event");
});
});
+
+describe("schedule automations that keep one conversation", () => {
+ const daily = { name: "Daily brief", prompt: "Write the brief", botId: "maus-1", schedule: { type: "daily" as const, time: "09:00", weekdays: [0, 1, 2, 3, 4, 5, 6] } };
+ const done = (h: ReturnType<typeof harness>, threadId: string) => h.manager.handleRuntimeEvent({
+ eventId: `done-${threadId}-${h.started.length}`, provider: "fake", threadId, createdAt: new Date().toISOString(), type: "turn.completed", ok: true,
+ });
+ const twoRuns = async (h: ReturnType<typeof harness>, routineId: string) => {
+ h.options.joinConversation = (run) => run.sameConversation ? previousEventThread(h.manager.listRuns(), run) : null;
+ h.manager.runNow(routineId); await h.manager.tick();
+ done(h, h.started[0].threadId); await h.manager.tick();
+ h.manager.runNow(routineId); await h.manager.tick();
+ return h.started.map((turn) => turn.threadId);
+ };
+
+ it("continues the previous run's conversation when on, with continuity too", async () => {
+ const h = harness();
+ const routine = h.manager.create({ ...daily, sameConversation: true, continuity: true });
+ expect(await twoRuns(h, routine.id)).toEqual(["thread-1", "thread-1"]);
+ expect(h.taskTitles).toHaveLength(1);
+ expect(h.manager.listRuns().every((run) => run.sameConversation === true)).toBe(true);
+ expect(new RoutineManager(h.options).listRoutines()[0]).toMatchObject({ sameConversation: true, continuity: true });
+ });
+
+ it("opens a new conversation for every run by default and once turned off", async () => {
+ const h = harness();
+ const routine = h.manager.create(daily);
+ expect(routine.sameConversation).toBeUndefined();
+ expect(await twoRuns(h, routine.id)).toEqual(["thread-1", "thread-2"]);
+
+ const other = harness();
+ const on = other.manager.create({ ...daily, sameConversation: true });
+ expect(other.manager.update(on.id, { sameConversation: false })?.sameConversation).toBeUndefined();
+ expect(await twoRuns(other, on.id)).toEqual(["thread-1", "thread-2"]);
+ });
+
+ it("is refused for room goals and limit-reset routines", () => {
+ const h = harness();
+ expect(() => h.manager.create({ ...daily, sameConversation: true, target: "room-goal", botId: "chief-1", groupId: "room-1" })).toThrow("Room goals do not keep one conversation");
+ expect(() => h.manager.create({ ...daily, sameConversation: true, schedule: { type: "limit_reset", engine: "claude" } as never })).toThrow("already continues its conversation");
+ });
+});
diff --git a/server/routines.ts b/server/routines.ts
index 2c92c918dd..63e5775f80 100644
--- a/server/routines.ts
+++ b/server/routines.ts
@@ -62,7 +62,7 @@ export interface Routine extends RoutineTroubleCode {
durationMinutes: number;
timeoutMinutes?: number;
attachments?: RoutineContextAttachment[];
- continuity?: boolean;
+ continuity?: boolean; sameConversation?: boolean;
modelSelection?: ModelSelection;
overlap?: "skip" | "queue";
runOnStartup?: boolean;
@@ -178,7 +178,7 @@ export interface RoutineInput {
durationMinutes?: number;
timeoutMinutes?: number | null;
attachments?: RoutineContextAttachment[];
- continuity?: boolean;
+ continuity?: boolean; sameConversation?: boolean;
modelSelection?: ModelSelection | null;
overlap?: "skip" | "queue";
runOnStartup?: boolean;
@@ -587,7 +587,7 @@ export class RoutineManager {
durationMinutes: patch.durationMinutes ?? routine.durationMinutes,
timeoutMinutes: Object.hasOwn(patch, "timeoutMinutes") ? patch.timeoutMinutes : routine.timeoutMinutes,
attachments: patch.attachments ?? routine.attachments,
- continuity: patch.continuity ?? routine.continuity,
+ continuity: patch.continuity ?? routine.continuity, sameConversation: patch.sameConversation ?? routine.sameConversation,
modelSelection: Object.hasOwn(patch, "modelSelection") ? patch.modelSelection : routine.modelSelection,
overlap: Object.hasOwn(patch, "overlap") ? patch.overlap : routine.overlap,
runOnStartup: patch.runOnStartup ?? routine.runOnStartup,
@@ -618,7 +618,7 @@ export class RoutineManager {
updatedAt: Math.max(now, routine.updatedAt + 1),
});
if (patch.enabled !== undefined) delete routine.heldFor;
- for (const key of ["continuity", "modelSelection", "overlap", "runOnStartup", "access", "deliver"] as const) if (!clean[key]) delete routine[key];
+ for (const key of ["continuity", "sameConversation", "modelSelection", "overlap", "runOnStartup", "access", "deliver"] as const) if (!clean[key]) delete routine[key];
if (!clean.checks) for (const key of ["checks", "checkedAt", "checkTrouble", "checkTroubleCode", "wakeAt"] as const) delete routine[key];
if (Object.hasOwn(patch, "timeoutMinutes") && patch.timeoutMinutes == null) {
delete routine.timeoutMinutes;
diff --git a/server/trigger-tools.test.ts b/server/trigger-tools.test.ts
index fd25dc783c..bfd042f953 100644
--- a/server/trigger-tools.test.ts
+++ b/server/trigger-tools.test.ts
@@ -107,7 +107,7 @@ describe("parseTriggerRequest", () => {
expect(parseTriggerRequest({ ...source, action: "update", triggerId: "a1", changes: { event: "SLACK_X" } }, isSchedule))
.toMatchObject({ ok: false, error: expect.stringContaining("delete it and create a new one") });
expect(parseTriggerRequest({ ...source, action: "update", triggerId: "r1", changes: { sameConversation: true } }, isSchedule))
- .toMatchObject({ ok: false, error: "same_conversation applies only to app-event and webhook triggers" });
+ .toMatchObject({ ok: true, kind: "schedule", proposal: { action: "update", routineId: "r1", changes: { sameConversation: true } } });
expect(parseTriggerRequest({ ...source, action: "create", kind: "email", routine: {} }, isSchedule)).toMatchObject({ ok: false });
expect(parseTriggerRequest({ ...source, action: "create", kind: "schedule", routine: {}, extra: 1 }, isSchedule)).toMatchObject({ ok: false });
});
diff --git a/server/trigger-tools.ts b/server/trigger-tools.ts
index c61706c90b..b4812b1b64 100644
--- a/server/trigger-tools.ts
+++ b/server/trigger-tools.ts
@@ -67,6 +67,7 @@ export function agentRoutine(routine: Routine, latestRun?: RoutineRun) {
name: redactSecretsInText(routine.name),
...instructionsOf(routine.prompt),
continuity: routine.continuity === true,
+ sameConversation: routine.sameConversation === true,
overlap: routine.overlap ?? "skip",
runOnStartup: routine.runOnStartup === true,
skippedRuns: routine.skippedRuns ?? 0,
@@ -217,7 +218,6 @@ export function parseTriggerRequest(body: unknown, kindOf: (id: string) => "sche
if (changes && "eventTypes" in changes) return { ok: false, error: "webhook_event_types applies only to webhook triggers" };
if (changes && "payloadFilter" in changes) return { ok: false, error: "webhook_payload_filter applies only to webhook triggers" };
if (changes && ("filter" in changes || "config" in changes)) return { ok: false, error: "filter and event_config apply only to app-event triggers" };
- if (changes && "sameConversation" in changes) return { ok: false, error: "same_conversation applies only to app-event and webhook triggers" };
return { ok: true, kind: "schedule", forBotId: request.forBotId, proposal: { action: request.action, routineId: request.triggerId, ...(changes ? { changes } : {}) } };
}
const misplaced = changes && Object.keys(changes).find((key) => !WEBHOOK_FIELDS.has(key));
diff --git a/src/locales/de.json b/src/locales/de.json
index 2ee96f2002..180d1135f4 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -3032,6 +3032,8 @@
"server.routines.held.planCancelled": "Deine Routinen sind pausiert, weil der Tarif gekündigt wurde. Damit eine bis zum Ende des Tarifs weiterläuft, schalte sie unter Routines wieder ein.",
"server.routines.held.noEngine": "Deine Routinen sind pausiert: Keines deiner KI-Konten ist hier noch angemeldet. Sie schalten sich von selbst wieder ein, wenn du dich erneut anmeldest.",
"server.routines.held.noConnections": "Deine Routinen sind pausiert: Alle verbundenen Apps und MCP-Server wurden entfernt. Sie schalten sich wieder ein, wenn du eine App oder einen MCP-Server verbindest oder eine Routine unter Routines wieder einschaltest.",
+ "server.routines.card.conversationKept": "Jede Ausführung setzt die Unterhaltung der vorherigen fort",
+ "server.routines.card.sessionContinues": "jede Ausführung setzt die Unterhaltung der vorherigen fort",
"voice.everyReply": "Sprachnachricht zu jeder Antwort",
"voice.everyReply.allHelp": "Jeder Bot schickt jede Antwort auch als Sprachnachricht. In den Einstellungen eines Bots kannst du das nur für ihn ein- oder ausschalten.",
"voice.everyReply.followsOn": "Folgt deiner Spracheinstellung (an)",
diff --git a/src/locales/en.json b/src/locales/en.json
index b039eb520f..3e26fb916d 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -10167,6 +10167,8 @@
"server.routines.held.planCancelled": "Your routines are paused because the plan was cancelled. To keep one running until the plan ends, turn it back on in Routines.",
"server.routines.held.noEngine": "Your routines are paused: none of your AI accounts is signed in here any more. They turn back on by themselves when you sign in again.",
"server.routines.held.noConnections": "Your routines are paused: every connected app and MCP server was removed. They turn back on when you connect one, or turn one back on in Routines.",
+ "server.routines.card.conversationKept": "Each run continues the previous run's conversation",
+ "server.routines.card.sessionContinues": "each run continues the previous run's conversation",
"mcp.request.change": "Change",
"mcp.request.remove": "Remove",
"secretCard.greenference.description": "Runs Greenference models with your own key.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index b23cf93af5..2b2a03e62a 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -10098,6 +10098,8 @@
"server.routines.held.planCancelled": "Suas rotinas estão pausadas porque o plano foi cancelado. Para manter uma delas rodando até o fim do plano, ligue-a novamente em “Rotinas”.",
"server.routines.held.noEngine": "Suas rotinas estão pausadas: nenhuma das suas contas de IA continua conectada aqui. O app liga as rotinas automaticamente quando você entrar novamente.",
"server.routines.held.noConnections": "Suas rotinas estão pausadas: todos os apps conectados e servidores MCP foram removidos. O app liga as rotinas quando você conectar um deles. Você também pode ligar uma rotina novamente em “Rotinas”.",
+ "server.routines.card.conversationKept": "Cada execução continua a conversa da execução anterior",
+ "server.routines.card.sessionContinues": "cada execução continua a conversa da execução anterior",
"mcp.request.change": "Alterar",
"mcp.request.remove": "Remover",
"secretCard.greenference.description": "Roda modelos do Greenference com sua própria chave.",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index f1d211c58d..f8983ca7ed 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -3989,7 +3989,9 @@
"server.botHeldDepartment": "ad3c5b51e8e3c5271f998a9ce283fe62a5fd23660096f757050a942168ab7361",
"devices.computers.pairButton": "60f8288e33f9f57d2b51409fdb540b47a89c25447061bd354122442818a36ee0",
"devices.computers.pairTitle": "b7cda6a11ab410daa4b8977624ca72261c0168e7c3d83ae0eed93ac4e3540bc8",
- "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174"
+ "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174",
+ "server.routines.card.conversationKept": "ea038ec2124d474aa977c0faeb838dae7c8c2436cc44fc5382c231a7539c0fb9",
+ "server.routines.card.sessionContinues": "af4dedfee873451f6b9f28c12ef5b4f683c98ae795a706fe7fd58da470374c47"
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -36960,7 +36962,9 @@
"remote.diagnosis.next.otherCopy": "29f59104ac96620533eecfef5e6bd7e612e84c6b2a6f71ebdb02550d4cd3518e",
"devices.computers.pairButton": "60f8288e33f9f57d2b51409fdb540b47a89c25447061bd354122442818a36ee0",
"devices.computers.pairTitle": "b7cda6a11ab410daa4b8977624ca72261c0168e7c3d83ae0eed93ac4e3540bc8",
- "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174"
+ "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174",
+ "server.routines.card.conversationKept": "ea038ec2124d474aa977c0faeb838dae7c8c2436cc44fc5382c231a7539c0fb9",
+ "server.routines.card.sessionContinues": "af4dedfee873451f6b9f28c12ef5b4f683c98ae795a706fe7fd58da470374c47"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -47161,7 +47165,9 @@
"chat.notice.devinAccountRefused": "6f12d9c4c2912bc75bfbc26d0b43a2da3b02c1e4e16a807a9162670fcdab80fc",
"devices.computers.pairButton": "60f8288e33f9f57d2b51409fdb540b47a89c25447061bd354122442818a36ee0",
"devices.computers.pairTitle": "b7cda6a11ab410daa4b8977624ca72261c0168e7c3d83ae0eed93ac4e3540bc8",
- "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174"
+ "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174",
+ "server.routines.card.conversationKept": "ea038ec2124d474aa977c0faeb838dae7c8c2436cc44fc5382c231a7539c0fb9",
+ "server.routines.card.sessionContinues": "af4dedfee873451f6b9f28c12ef5b4f683c98ae795a706fe7fd58da470374c47"
},
"zh-tw": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -57519,7 +57525,9 @@
"chat.notice.devinAccountRefused": "6f12d9c4c2912bc75bfbc26d0b43a2da3b02c1e4e16a807a9162670fcdab80fc",
"devices.computers.pairButton": "60f8288e33f9f57d2b51409fdb540b47a89c25447061bd354122442818a36ee0",
"devices.computers.pairTitle": "b7cda6a11ab410daa4b8977624ca72261c0168e7c3d83ae0eed93ac4e3540bc8",
- "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174"
+ "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174",
+ "server.routines.card.conversationKept": "ea038ec2124d474aa977c0faeb838dae7c8c2436cc44fc5382c231a7539c0fb9",
+ "server.routines.card.sessionContinues": "af4dedfee873451f6b9f28c12ef5b4f683c98ae795a706fe7fd58da470374c47"
},
"uk": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index e6fc38f881..cbce69f66f 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -9515,6 +9515,8 @@
"server.routines.held.planCancelled": "由於方案已取消,你的例行工作已暫停。若要在方案結束前繼續執行某個例行工作,請在「例行工作」中重新開啟它。",
"server.routines.held.noEngine": "你的例行工作已暫停:這裡已沒有任何登入中的 AI 帳號。你重新登入後,它們會自動重新開啟。",
"server.routines.held.noConnections": "你的例行工作已暫停:所有已連線的應用程式和 MCP 伺服器都已移除。連接一個之後,或在「例行工作」中重新開啟,它們就會恢復。",
+ "server.routines.card.conversationKept": "每次執行都會接續上次執行的對話",
+ "server.routines.card.sessionContinues": "每次執行都會接續上次執行的對話",
"mcp.request.change": "變更",
"mcp.request.remove": "移除",
"secretCard.greenference.description": "使用你自己的金鑰執行 Greenference 模型。",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 02583b3f9e..ff86b394f8 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -7833,6 +7833,8 @@
"server.routines.held.planCancelled": "你的例行任务已暂停,因为方案被取消了。如果想让某个任务持续运行到方案结束,请在“例行任务”中重新打开它。",
"server.routines.held.noEngine": "你的例行任务已暂停:你所有的 AI 账号都已退出这里的登录。重新登录后它们会自动恢复。",
"server.routines.held.noConnections": "你的例行任务已暂停:所有已连接的应用和 MCP 服务都被移除了。连接一个之后它们会恢复,你也可以在“例行任务”中重新打开一个。",
+ "server.routines.card.conversationKept": "每次执行都会接着上次执行的对话继续",
+ "server.routines.card.sessionContinues": "每次执行都会接着上次执行的对话继续",
"mcp.request.change": "更改",
"mcp.request.remove": "移除",
"secretCard.greenference.description": "用你自己的密钥运行 Greenference 模型。",