Attributes have:
esp_err_t set_override_callback(attribute_t *attribute, callback_t callback)
There is no parallel API for commands.
When implementing a bridge you have to be able to override the commands too.
When fixing this, consider if you need two callbacks (original and override) or if the new callback could simply replace the old one saving memory. If you replace the old one be sure and cleanup all of the previously allocated memory.