SetCommandSessionEnabled() appears to disable a specific command phrase, not the command that phrase is attached to.
This means if a command has multiple phrases or dynamic command segments, only the specifically disabled phrase will be stopped from executing, even when the command is triggered by something other than speech.
E.G. if a command has the "When I say" value "this is a [command;test]", disabling the phrase "this is a test" means speaking "this is a command" still executes the command, and using a shortcut assigned to that command will also trigger it.
If "this is a command" is disabled instead, speaking "this is a test" will execute the command, but using the shortcut will not.
This also applies to "Execute Another Command"; If the "Execute selected command" option is used, the command will still execute if "this is a test" is disabled", but not if "this is a command" is disabled.
When using the "Execute by name (Advanced)" option, it works as if the command was spoken, I.E. the disabled phrase is disabled, but the other still works.
The latter also applies to the "executeCommand()" method.
The "Execute" item in the command list context menu will work regardless of a command being disabled(which may be on purpose but is not documented).
When the profile is edited(E.G. modifying a command and using the "Apply" button, or modifying a command setting and using the "Done" button), all disabled commands are enabled again.
EDIT: Fixed in v1.7.3.8