I've found out that the LOOT_SCENE uses the CLEAR_CURSOR_FRAGMENT which hides the stuff at the cursor.
If you remove it the cursor will show the hidden state "that you got last before the looting starts" but it will never update as the state change (EVENT_STEALTH_STATE_CHANGED or EVENT_DISGUISE_STATE_CHANGED) does seem to fire, but does not visibly update any texts anymore as long as you are looting.
Even if a NPC is directly next to you...
If you press the key to close the loot or change to the non-mouse mode again the cursor updates to "DETECTED" all of sudden, but it never does as you are looting
So changing this would be of no help I guess but if you want to test it, here is the version:
Edit:
And after some more tests removing the fragment does not fix it for 100%, somehow it is hidden sometimes but not always. I'll test a bit more with the scene and fragments and maybe remove them as the scene get's shown.
Better Stealth Text 2.0 Baertram
Chagelog:
-removed LibStub and embedded libraries
-changed calls to LibAddonMenu-2.0
-changed texts to do not use duplicate texts but use SI_ string constants where given
-changed some text detections to cache
-added event filter for the action result of buff gained
-added event filter for the target at the combat event -> player
-changed player name to be determiend only once and not at every combat event
-changed some other variables to local pointers -> better performance
-changed SavedVariables to save with characterId instead of name (rename safe!)
-changed SavedVariables to use the server name
-changed the loot scene to not hide the cursor attached info texts anymore