Repository navigation
fix(presets): report preset layers hidden by project overrides - #5560
Merged
Merged
Conversation
List the hidden preset IDs and their strategies on stderr when a project override wins resolution. Assisted-by: OpenAI Codex (model: GPT-6, autonomous)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the change making project overrides visible in preset-resolution diagnostics.
No open issues 🎉
What changed in this PR
Makes project overrides visible in Spec Kit’s preset resolution diagnostics, addressing #5337 without changing template selection or stdout output.
Changes:
- Reports hidden enabled presets and their composition strategies on stderr.
- Includes preset identifiers on all collected preset layers.
- Documents the diagnostic and adds regression coverage for hidden, disabled, and non-matching presets.
| File | Description |
|---|---|
tests/specify_cli/presets/test_command_resolve.py |
Tests hidden-preset diagnostics and cases that should remain silent. |
src/specify_cli/presets/command_resolve.py |
Prints hidden preset names and strategies on stderr. |
src/specify_cli/presets/_resolver.py |
Adds preset identifiers to every preset layer. |
docs/presets/cli.md |
Explains override precedence and the new diagnostic. |
Review effort: Balanced (adaptive)
Collaborator
|
Thank you! |
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.
Description
When a project override wins template resolution,
specify preset resolvenow prints the hidden enabled presets and their composition strategies on stderr. The selected template path and source stay on stdout. This helps someone who has installed a preset understand why its content is missing from the selected template.Fixes #5337.
Testing
Codex ran the following checks on
22cdab3.specify --help.The new regression test failed on upstream
f61648dbecause stderr was empty and passed with the fix. All 21 separately run Windows Git Bash workflow checks passed. Earlier runs with Git Bash enabled across the Windows suite reproduced failures on both clean upstream and the candidate.Contributor verification
AI Disclosure
AI disclosure: OpenAI Codex (GPT-6, autonomous mode with default collaboration settings) investigated the issue, wrote the fix, regression tests, and documentation, authored the attributed commit and resolved its rebase, ran the automated checks, and drafted this PR. Codex lightly copyedited the contributor’s verification note.