Information added to an action remains in the action in many forms whether it is displayed or not. Actions consist of most than just the displayed information and may contain any other information you have entered related to the action.
Some actions save all their data, some for performance reasons avoid saving some unused data.
Keeping data when you change settings and restoring it when you restore settings is as much a feature as a bug. For example, the recorded clicks have a lot of extra invisible data relating to the environment around the recorded click (screen and window frames) so that you can change the popup menu after the recording to select different relative corners.
So while I agree there is a potential leak of information that is not entirely visible, that is not something I can guarantee to avoid.
It’s a very convenient feature that improves the usability of KM while constructing macros and trying out alternative approaches. I have always marvelled that you had the foresight to implement it - so no, I’d never thought of it as a bug!
However I (and a few others in this thread) are referring to when a macro leaves the safe haven that is the KM Editor via the export process which is when that helpful feature becomes a potential liability. I know you know this and so I trust you when you say you can’t guarantee to avoid it happening. But does that mean you will take steps to reduce/avoid it happening?
Not really. Some that is entered in the action may remain in the action even if it is not displayed. If it remains across saves, it will remain for exports, its the same code.
In cases where I happen to notice that extra data is being saved that is unnecessary to the action, then I might not save/export it, but that would largely be a decision based on saving space in the export.
My pleasure. I don't know if it's new to v11 (I haven't noticed it before), but if you type a space in the search field and then hover the mouse over the field it pops up a list of the available search qualifiers; you might find some of the others helpful for narrowing searches.