Skip to content

fix(extensions): clarify the remove prompt when keeping config - #5518

Merged
mnriem merged 1 commit into
github:mainfrom
dlwlgnsrhy:fix/keep-config-confirmation
Nov 23, 2026
Merged

mnriem merged 1 commit into
github:mainfrom
dlwlgnsrhy:fix/keep-config-confirmation

Conversation

@dlwlgnsrhy

Copy link
Copy Markdown
Contributor

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.py passed.

AI Disclosure

  • I did use AI assistance.

AI disclosure: OpenAI Codex (GPT-6.2, autonomous) reproduced the misleading prompt, implemented the fix and regression test, ran verification, and drafted this description.

Assisted-by: OpenAI Codex (model: GPT-6.2, autonomous)
@dlwlgnsrhy
dlwlgnsrhy requested a review from mnriem as a code owner November 22, 2026 10:38
Copilot AI adaptive review requested due to automatic review settings November 22, 2026 10:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-config is 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)

@mnriem mnriem added the triage-nice-to-have Verdict: evidence-backed fix or greenlit feature — land after review label Nov 22, 2026
@mnriem
mnriem requested a balanced review from Copilot November 23, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change clarifying removal confirmations when --keep-config preserves configuration.

No open issues 🎉

Review effort: Balanced

@mnriem
mnriem merged commit 0c2c393 into github:main Nov 23, 2026
14 checks passed
@mnriem

mnriem commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage-nice-to-have Verdict: evidence-backed fix or greenlit feature — land after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants