SIGN IN SIGN UP
github / spec-kit UNCLAIMED

๐Ÿ’ซ Toolkit to help you get started with Spec-Driven Development

0 0 28 Python

fix: migrate extension commands on integration switch (#2404)

* fix: migrate extension commands on integration switch

When switching integrations (e.g. kimi โ†’ opencode), extension commands
were not re-registered for the new agent, leaving the new agent without
extension support and orphaning files in the old agent's directory.

Changes:
- Add ExtensionManager.unregister_agent_artifacts() to clean up old
  agent extension files and registry entries during switch
- Add ExtensionManager.register_enabled_extensions_for_agent() to
  re-register all enabled extensions for the new agent
- Wire both into integration_switch() after uninstall/install phases
- Handle skills mode (Copilot --skills) correctly
- Add tests for kimiโ†’opencodeโ†’claude migration, Copilot skills mode,
  and disabled extension handling

Fixes extension commands not appearing after integration switch.

* Update src/specify_cli/extensions.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
C
Chengyou Liu committed
5edc9a5358ce1e56a417bd797cd98b1915d1238a
Parent: da1bf02
Committed by GitHub <noreply@github.com> on 5/1/2026, 12:41:38 PM