fix(arch-a2): deactivation cleanup - container services, search provider, hook deregistration, notification sync, task state, activation order
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-23 19:24:12 +02:00
parent 73d2e109cd
commit c21634b323
10 changed files with 154 additions and 29 deletions
@@ -136,6 +136,13 @@ class KommunikationPlugin(BasePlugin):
from app.plugins.builtins.contracts import get_contract_registry
get_contract_registry().unregister(self.manifest.name)
# Remove services registered in on_activate BEFORE super() so that
# event handlers being unsubscribed can no longer reach them (ARCH-033).
for service_name in ("comm_websocket", "comm_miniapps"):
if service_container.has(service_name):
service_container.remove(service_name)
logger.info("Removed '%s' from service container", service_name)
await super().on_deactivate(db, service_container, event_bus)
logger.info("Kommunikation plugin deactivated")