fix(email): prevent email reply prompt from injecting into non-email chats
linuztx committed
Mar 15, 2026 at 13:19 UTC
a3821fbec0fb7605af43374d2f2a278f8718f417
2 files changed
+1
-1
plugins/_email_integration/extensions/python/system_prompt/_20_email_context.py
+1
-1
@@ -16,5 +16,5 @@ class EmailContextPrompt(Extension):
16
17
# Only inject email conversation context if this chat was started by email
18
if self.agent.context.data.get(CTX_EMAIL_HANDLER):
19
- prompt = self.agent.read_prompt("agent.system.tool.email_reply.md")
19
+ prompt = self.agent.read_prompt("fw.email.system_context_reply.md")
20
system_prompt.append(prompt)