spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Bug: extension list doesn't show extension ID

Open mbachorik opened this issue 8 months ago • 0 comments

Problem

specify extension list does not display the extension ID in its output.

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

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

However, users have no way to discover the ID without manually inspecting .specify/extensions/registry.json.

Current Output

  ✓ Extension Name (v1.0.0)
     Description here
     Commands: 2 | Hooks: 0 | Status: Enabled

Expected Output

  ✓ Extension Name (v1.0.0)
     publisher/extension-id
     Description here
     Commands: 2 | Hooks: 0 | Status: Enabled

Fix

Add the ID to the output in extension_list() (init.py:1953-1959):

console.print(f"  [{status_color}]{status_icon}[/{status_color}] [bold]{ext['name']}[/bold] (v{ext['version']})")
console.print(f"     [dim]{ext['id']}[/dim]")  # ADD THIS
console.print(f"     {ext['description']}")

mbachorik avatar Mar 13 '26 14:03 mbachorik