When I used the Agent and then clicked on an icon in the layout to change it, the icon was added as an attachment to the Agent's chat. After deleting the attachment and closing the Agent chat, clicking the icon again was still added as an attachment and the icon selector didn't open. The only alternative solution was to remove the icon from the layout and add it again to be able to change it. Attached video.