2a81ea8f76
email, scheduled_messages scheduler, and cron blueprints still imported main_agent directly from agents. All now use current_app.main_agent so they read the initialized value set by build_agent() in the lifespan. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>