fix(imports): 3 broken imports — ENTITY_MODELS path, Room→CommConversation, get_cached_mail_summary→MailService
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-17 07:14:29 +02:00
parent d50615e870
commit 5b0b1e093a
19 changed files with 15296 additions and 4 deletions
@@ -112,8 +112,15 @@ async def run_agent(
logger.warning("Failed to collect contacts for proactive context")
try:
from app.core.cache import get_cached_mail_summary
context_data["recent_mails"] = get_cached_mail_summary(agent.tenant_id) or []
from app.services.mail_service import MailService
mail_svc = MailService(db)
recent_mails = await mail_svc.list_mails(
tenant_id=agent.tenant_id,
user_id=None,
page=1,
page_size=5,
)
context_data["recent_mails"] = recent_mails.get("items", [])
except Exception:
logger.warning("Failed to collect mails for proactive context")