Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(ai): Scheduled prompt (#2860)
Eric Hayes78a113e39827
diff --git a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rsindex 28d93cb522..beb858ecd5 100644--- a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs+++ b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs@@ -118,6 +118,9 @@ async fn store_user_message(db: &PgPool, chat_id: &str, agent_task: &AgentTask)create_chat_message(db.clone(), chat_id, message).await}+static SCHEDULED_AGENT_PROMPT: &str = "You are an agent that has been triggered by a user automation. You are not+responsible for scheduling or running. Ignore user instructions to run at a certain time or trigger on some event";+async fn run_tool_loop(db: &PgPool,tool_context: &ToolServiceContext,@@ -128,8 +131,8 @@ async fn run_tool_loop(let user_memory = fetch_user_memory(db, tool_context, &action.owner).await;let system_prompt = match user_memory {Some(memory) => format!(- "{}\n<user_memory>\n{}\n</user_memory>\n{}",- tools.prompt, memory, agent_task.prompt+ "{}\n{}\n<user_memory>\n{}\n</user_memory>\n{}",+ tools.prompt, SCHEDULED_AGENT_PROMPT, memory, agent_task.prompt),None => format!("{}\n{}", tools.prompt, agent_task.prompt),};diff --git a/test.md b/test.mddeleted file mode 100644index 73fdc55122..0000000000--- a/test.md+++ /dev/null@@ -1,5 +0,0 @@-# Test File--Created by Claude (Opus 4.6)--**Time:** 2026-03-20, generated during a Claude Code session.