Skip to content

Allow partial configuration overrides in environments#14

Merged
dgaida merged 3 commits into
masterfrom
fix-config-validation-overrides-7219050813307336781
Feb 24, 2026
Merged

Allow partial configuration overrides in environments#14
dgaida merged 3 commits into
masterfrom
fix-config-validation-overrides-7219050813307336781

Conversation

@dgaida

@dgaida dgaida commented Feb 24, 2026

Copy link
Copy Markdown
Owner

This change fixes the configuration validation errors reported by the user when running with environment overrides. By adding default values to sub-models and using a root validator for the final merged state, we now support flexible partial overrides while ensuring the system always starts with a valid total configuration.


PR created automatically by Jules for task 7219050813307336781 started by @dgaida

Modified 'config/config_manager.py' to add default values to all required fields in sub-models. This allows Pydantic to successfully parse partial environment overrides (e.g., in the 'development' environment) without requiring all fields to be redefined.

To maintain configuration integrity, a root validator was added to the 'RobotMCPConfig' model. This validator ensures that essential configuration components (such as at least one workspace and one LLM provider) are present in the final merged configuration.

Added 'tests/test_config_manager.py' to verify the fix and ensure that invalid configurations (e.g., missing workspaces) are still correctly identified.

Co-authored-by: dgaida <23057824+dgaida@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits February 24, 2026 10:33
Modified 'config/config_manager.py' to allow partial environment overrides by providing default values for configuration sub-models. A root validator ensures the final merged configuration remains valid.

Fixed linting issues in 'tests/test_config_manager.py' by removing unused imports and re-sorting the remaining ones. Added docstrings for test functions.

Co-authored-by: dgaida <23057824+dgaida@users.noreply.github.com>
Modified 'config/config_manager.py' to allow partial environment overrides by providing default values for configuration sub-models. A root validator ensures the final merged configuration remains valid.

Fixed linting and formatting issues in 'tests/test_config_manager.py' using Ruff and Black. Added docstrings for test functions.

Co-authored-by: dgaida <23057824+dgaida@users.noreply.github.com>
@dgaida dgaida merged commit f8c4222 into master Feb 24, 2026
5 checks passed
@dgaida dgaida deleted the fix-config-validation-overrides-7219050813307336781 branch February 24, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant