fix: update validation to accept minimal server environment without inference models - #1445
Merged
Conversation
Teingi
reviewed
Sep 3, 2026
Member
|
resolve conflicts |
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.
Which issue or RFC does this PR close?
Closes #1442.
Rationale for this change
powercontext config validate --env-fileincorrectly required a complete inference configuration, even when the environment file was only intended to configure a minimal Server.This made valid configurations accepted by
powercontext server run --env-filefail validation because no generation model was configured.What changes are included in this PR?
config validateto validate minimal Server-only environment files without inference models.config init.POWERCONTEXT_SERVER_*values from the shell.Are there any user-facing changes?
Yes.
powercontext config validate --env-filenow accepts valid minimal Server configurations that do not configure inference models.There are no breaking API changes or persistence format changes.
How was this change tested?
pytest -q tests/test_config_cli.py -k 'not init_validate_and_show_round_trip_managed_environment'127.0.0.18888zensical build --strictThe skipped existing test checks Unix file permissions and is not portable on Windows.
AI usage statement
This PR was developed with OpenAI Codex using the GPT-5 model. The AI assisted with repository inspection, implementation, test updates, documentation updates, and validation.