refactor(config): migrate ConfigManager callers to get_config_manager() (#3829)#3981
Merged
mrveiss merged 1 commit intoDev_new_guifrom Apr 8, 2026
Merged
refactor(config): migrate ConfigManager callers to get_config_manager() (#3829)#3981mrveiss merged 1 commit intoDev_new_guifrom
mrveiss merged 1 commit intoDev_new_guifrom
Conversation
…nager() (#3829) Replace all direct ConfigManager() instantiations in production code with get_config_manager() singleton accessor. This eliminates redundant config object creation and ensures all callers share the same singleton instance. Also fixes #3945: removes duplicate ConfigManager initialization in chat_history/base.py by using the already-available global_config_manager. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Migrate all direct
ConfigManager()instantiations in production code to useget_config_manager()singleton accessor.chat_history/base.pywas redundantly instantiating ConfigManager just forget_host("redis"), now uses already-available global instanceImpact
Test Plan
pytest autobot-backend/tests/ -x --tb=shortpassesfrom config import ConfigManagerin production codeconfig.managerCloses #3829
Closes #3945
🤖 Generated with Claude Code