Widgets stop working on comshare or `/team`
Some widgets assume that you can't change teams (broken by comshare and /team) and that you can't stop being a spectator (broken by /team). A corollary is that widgets can assume there is no-one else on your team; widgets assuming this can interfere with other players (for example GBC: #1836).
The task is to check all widgets on whether they need fixing, and fix them.
Some reported widgets known to have broken in the past:
- transport AI
- auto groups
- "unit under attack" text (changing live team is fine but going from spec to live isn't)
- some of (auto patrol nanos, auto repair, and smart nanos), see #5188
Anything that I have used in local testing probably works in a lot of situations. I've been fixing crashes caused by things as extreme as selecting and giving orders to enemy units outside LOS.
Transport AI is fixed in commshare-maintenance as well as Teleport AI. Autogroups seems fine.