Phase 4.7a: Extract startup helpers + graceful shutdown (#580)#583
Merged
Phase 4.7a: Extract startup helpers + graceful shutdown (#580)#583
Conversation
…es (#580) - Move seed_system_roles, seed_default_workspace → modules/core/startup.py - Move get_or_create_default_gemini_provider, auto_start_bridge → modules/llm/startup.py - Move auto_start_bots → modules/channels/{telegram,whatsapp}/startup.py - Move reload_llm_faq → modules/knowledge/startup.py - Move reload_voice_presets → modules/speech/startup.py - Add graceful shutdown: stop Telegram/WhatsApp bots and Claude bridge - Fix FAQ/presets reload to use container (after population) instead of globals - Remove 5 unused db.integration imports - orchestrator.py: 1030 → 805 lines (-225) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
orchestrator.pyinto 6 domainstartup.pymodules:modules/core/startup.py—seed_system_roles(),seed_default_workspace()modules/llm/startup.py—get_or_create_default_gemini_provider(),auto_start_bridge()modules/channels/telegram/startup.py—auto_start_bots()modules/channels/whatsapp/startup.py—auto_start_bots()modules/knowledge/startup.py—reload_llm_faq(container)modules/speech/startup.py—reload_voice_presets(container)containerargument (after population) instead of globalsdb.integrationTest plan
ruff check— all checks passedruff format— formattedpytest tests/— 65 tests passedCloses #580
🤖 Generated with Claude Code