Answer
In the older enterprise-client generation, there's a client-side option (under general tool settings) specifically to hide disabled context-menu items — check for that setting before assuming every context menu entry has to stay visible regardless of whether it's currently applicable.