I was able to work around this with a monkey patch, but that's brittle so I disabled the patch for the sake of product longevity. (It was deliberately replacing part of the running Anki code, which could be bad if the Anki devs happen to edit that piece of code in a future version.)
It's been reported to the developers but they don't feel it's a priority since it just affect addons using onShowQuestion hook.
I was able to work around this with a monkey patch, but that's brittle so I disabled the patch for the sake of product longevity. (It was deliberately replacing part of the running Anki code, which could be bad if the Anki devs happen to edit that piece of code in a future version.)
It's been reported to the developers but they don't feel it's a priority since it just affect addons using onShowQuestion hook.