Search didn't turn up any results. I think it would be useful for granite flask logic (preemptive flask). My observation with the bot since the vaal patch is that my character has been dying because of stun strongboxes.
There's no way to detect Stun at the moment. You can disable all Strongboxes from being opened for now if it's a big problem. In the future, you'll be able to change the chest logic to use a flask before you open it if you need something custom like that.