Stealth drive should stay active but cloaking should definitely disabled as soon as something on your ship or its docks fires a weapon.
With the effect config, it might not be a bad idea to have any change done through the config:
- float: seconds disrupted when firing (including warhead detonations)
- float: seconds disrupted when receiving block damage
- float: seconds disrupted when receiving shield damage
Negative values would disable each, or you could do 3 more booleans to enable/disable each as then a negative value could be used for "permanently disabled till next toggle".