Repository navigation
fix(extensions): report missing command files on install - #5479
Merged
mnriem merged 2 commits intoNov 19, 2026
Merged
Conversation
List only commands with installed source files. Report missing sources by manifest command name and path, including files excluded by .extensionignore. Assisted-by: OpenAI Codex (model: GPT-6, autonomous)
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
All eight new tests can fail during Windows teardown because cleanup attempts to delete the current working directory before monkeypatch restores the original directory.
1 open issue
What changed in this PR
This PR makes Specify CLI’s extension-install summary reflect command source files actually installed, rather than every command declared in the manifest.
Changes:
- List available commands with their existing name formatting.
- Warn about missing or ignored command files, including their manifest paths.
- Add eight regression cases covering complete, partial, missing, and ignored sources for Codex and Claude.
AI disclosure: GitHub Copilot (model: unknown, automated review mode) reviewed and authored this feedback for the requester. Tests were not independently run.
| File | Description |
|---|---|
tests/specify_cli/extensions/test_command_add.py |
Adds regression coverage for command summaries and missing-file warnings. |
src/specify_cli/extensions/command_add.py |
Separates available and missing commands using installed source files. |
Review effort: Balanced (adaptive)
Collaborator
|
Please address Copilot feedback |
Limit the working directory change to the CLI invocation so the temporary extension project can be removed during fixture teardown on Windows. Assisted-by: OpenAI Codex (model: GPT-6.2, autonomous)
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
specify extension addlists every command declared in the manifest, even when a command's source is absent from the installed extension. With the bundledbugextension copied to a local directory andcommands/speckit.bug.test.mdremoved, Codex and Claude each create two skills while the install summary lists three.Build the command summary from the installed files, so the warning covers both missing sources and files excluded by
.extensionignore. Report each missing command with its manifest path and retain the existing name formatting for available commands.Testing
.venv/bin/python -m pytest -q tests/specify_cli/extensions tests/test_extensions.py tests/test_extension_skills.py: 887 passed.59d61c5, six failed and two passed.specify initandspecify extension add --devwith the modifiedbugbundle. Both integrations created and listedassessandfix, and the CLI warned aboutspeckit.bug.test (commands/speckit.bug.test.md).AI Disclosure
AI disclosure: OpenAI Codex (GPT-6, default reasoning settings, autonomous implementation and validation under contributor direction) investigated the issue, wrote the code and regression tests, ran the validation, and drafted this PR description. The contributor authorized submission.