Repository navigation
fix(extensions): clarify the remove prompt when keeping config - #5518
Merged
Merged
Conversation
Assisted-by: OpenAI Codex (model: GPT-6.2, autonomous)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active issues are identified for this narrowly scoped prompt clarification, which also includes regression coverage for the revised wording.
No open issues 🎉
What changed in this PR
Clarifies the specify extension remove --keep-config confirmation prompt so it distinguishes removable non-config content from configuration retained in the extension directory.
Changes:
- Lists non-config files as the removal target when
--keep-configis used. - Shows where configuration files will remain.
- Adds regression coverage for the revised confirmation wording.
| File | Description |
|---|---|
| tests/specify_cli/extensions/test_command_remove.py | Adds regression coverage verifying the clarified preservation message and removal of the misleading directory label. |
| src/specify_cli/extensions/command_remove.py | Updates confirmation output for --keep-config to distinguish removable non-config files from retained configuration. |
Review effort: Lite (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
With
--keep-config, the removal confirmation lists the extension directory among the items being removed, even though the directory is retained for configuration. The prompt now lists removal of non-config files and shows where configuration will remain.Testing
The new confirmation test failed against the original prompt and passed with the fix. All four tests in
tests/specify_cli/extensions/test_command_remove.pypassed.AI Disclosure
AI disclosure: OpenAI Codex (GPT-6.2, autonomous) reproduced the misleading prompt, implemented the fix and regression test, ran verification, and drafted this description.