Commit e80aaeb
fix(cli): count aliases in removal confirmation command count (#2017)
The "N commands from AI agent" line in the removal confirmation was
derived from len(manifest.commands) which counts command entries, not
registered names. Extensions with aliases therefore showed the wrong
count (e.g. 1 instead of 2 for a command with one alias).
Use the registry's registered_commands dict instead — summing actual
registered names across all agents — so the count reflects what will
actually be removed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c870cb8 commit e80aaeb
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3123 | 3123 | | |
3124 | 3124 | | |
3125 | 3125 | | |
3126 | | - | |
3127 | | - | |
3128 | 3126 | | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
3129 | 3133 | | |
3130 | 3134 | | |
3131 | 3135 | | |
| |||
0 commit comments