Composer stuck while generating response

When I submit a message, it often gets stuck, and I have to stop and resubmit it.
Sometimes it appears frozen, while other times it seems to be processing without displaying anything.
I’ve attached a screenshot.