Log configuration overrides when user config overwrites defaults#292
Log configuration overrides when user config overwrites defaults#292
Conversation
Co-authored-by: from2001 <387880+from2001@users.noreply.github.com>
Co-authored-by: from2001 <387880+from2001@users.noreply.github.com>
Co-authored-by: from2001 <387880+from2001@users.noreply.github.com>
|
@codex Review this PR. |
|
To use Codex here, create a Codex account and connect to github. |
|
@gemini-cli Review this PR. |
|
🤖 Hi @from2001, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
Pull Request ReviewI have reviewed the changes in this pull request and they look good. The introduction of the The new test cases in Overall, the changes are well-implemented, address the issue effectively, and maintain good code quality. Approved! |
When loading a user config.toml, the server now logs which values override defaults, making configuration behavior transparent at startup.
Changes
ConfigOverrideNamedTuple and modifiedcreate_config_from_args()to return(ServerConfig, list[ConfigOverride])key: default_value -> new_valueTestConfigOverridesclass with 5 test cases covering override tracking scenariosExample
Starting with a custom config that overrides
dealer_portandserver_name:When no config file is provided or overrides match defaults, no override logs appear.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.