Consult not working as expected

Obviously if it is not working. I seriously doubt you have found a bug. What you are doing has been the same for many, many years.

No, you did not provide a minimal working example. I can only guess at what you are doing.