Skip to content

fix(extensions): report missing command files on install - #5479

Merged
mnriem merged 2 commits into
github:mainfrom
dlwlgnsrhy:fix/extension-missing-command-files
Nov 19, 2026
Merged

mnriem merged 2 commits into
github:mainfrom
dlwlgnsrhy:fix/extension-missing-command-files

Conversation

@dlwlgnsrhy

Copy link
Copy Markdown
Contributor

Description

specify extension add lists every command declared in the manifest, even when a command's source is absent from the installed extension. With the bundled bug extension copied to a local directory and commands/speckit.bug.test.md removed, 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.
  • The eight new regression cases cover complete, partial, entirely missing, and ignored command sources in Codex and Claude. Against the unchanged implementation at 59d61c5, six failed and two passed.
  • In two fresh projects, ran specify init and specify extension add --dev with the modified bug bundle. Both integrations created and listed assess and fix, and the CLI warned about speckit.bug.test (commands/speckit.bug.test.md).

AI Disclosure

  • I did use AI assistance.

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.

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)
@dlwlgnsrhy
dlwlgnsrhy requested a review from mnriem as a code owner November 18, 2026 08:43
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 08:43

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.

🟡 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)

@mnriem mnriem added the triage-nice-to-have Verdict: evidence-backed fix or greenlit feature — land after review label Nov 18, 2026
@mnriem

mnriem commented Nov 18, 2026

Copy link
Copy Markdown
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)
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 23:24

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

The supplied review evidence identifies no active issues requiring changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced (adaptive)

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 were identified for the change to report commands based on files present in installed extensions.

No open issues 🎉

Review effort: Balanced (adaptive)

@mnriem
mnriem merged commit 4a8c7f1 into github:main Nov 19, 2026
14 checks passed
@mnriem

mnriem commented Nov 19, 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