Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(cli): remind agents not to drop original task on email interruption

Guse1f61c321b78
diff --git a/src/cli/daemon/prompt.ts b/src/cli/daemon/prompt.ts
index 7a96ed262..941bc375c 100644
--- a/src/cli/daemon/prompt.ts
+++ b/src/cli/daemon/prompt.ts
@@ -9,7 +9,8 @@ const DM_RESPONSE_NOTICE =
const EMAIL_NOTICE =
"This task was triggered by an incoming email. Reply to the sender via email — use the email sending tool to respond." +
" If you need more information or confirmation, email them and then exit." +
- " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response.";
+ " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response." +
+ " IMPORTANT: Do not let this email interrupt any task you were previously working on. After handling this email, return to your original task and make sure it reaches completion.";
const CALENDAR_NOTICE =
"This task was triggered by a scheduled calendar event." +