Skip to content

fix(extensions): show extension ID in list output#1843

Open
mbachorik wants to merge 1 commit intogithub:mainfrom
mbachorik:fix/extension-list-show-id
Open

fix(extensions): show extension ID in list output#1843
mbachorik wants to merge 1 commit intogithub:mainfrom
mbachorik:fix/extension-list-show-id

Conversation

@mbachorik
Copy link
Contributor

@mbachorik mbachorik commented Mar 14, 2026

Summary

  • Display extension ID in specify extension list output

Problem

When extension names are ambiguous, users are told to use the extension ID:

Please rerun using the extension ID:
  specify extension <command> <extension-id>

But specify extension list didn't show the ID, forcing users to inspect .specify/extensions/registry.json manually.

Solution

Add the ID on a separate line (dim style) below the extension name:

  ✓ Jira Integration (v1.2.0)
     speckit/jira
     Integrate Jira issues with spec-kit workflows
     Commands: 3 | Hooks: 1 | Status: Enabled

Test plan

  • Run full test suite (301 tests pass)
  • Ruff linter passes
  • Added TestExtensionListCLI::test_list_shows_extension_id test

Fixes #1832

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 14, 2026 11:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves the UX of extension management by making the installed extension ID discoverable directly in specify extension list, aligning the list output with guidance shown in ambiguous-name error flows.

Changes:

  • Print each installed extension’s id on a separate (dim) line beneath the extension name in specify extension list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Display the extension ID below the name in `specify extension list` output.
This allows users to easily copy the ID when disambiguation is needed.

Fixes github#1832

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the specify extension list CLI output to include each installed extension’s ID, making it easier for users to act on extensions when names are ambiguous (as suggested by existing CLI error guidance).

Changes:

  • Print the installed extension id on a dimmed line directly under the extension name in specify extension list.
  • Add a CLI integration test asserting the list output includes the extension ID (plus name/version).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/specify_cli/__init__.py Adds a new output line in extension_list() to print ext["id"] beneath the extension name.
tests/test_extensions.py Adds TestExtensionListCLI::test_list_shows_extension_id to validate the new list output includes the extension ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@mbachorik mbachorik marked this pull request as ready for review March 14, 2026 12:00
@mbachorik mbachorik requested a review from mnriem as a code owner March 14, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: extension list doesn't show extension ID

2 participants