What happens when the operating hours end and an agent still has an active chat?
When the operating hours are on the Chat end, the agent's status is set to Invisible. Even with the status change, agents can continue their current chats.
All waiting chats in the queue remain until either the visitor leaves the chat or the chat is manually served by an agent.
Assigned routing will no longer offer chats to agents once operating hours end. Check the visitor list to see if there are any chats waiting to be served in the queue. A chat trigger can also target unserved customers who have requested a chat.
Chat triggers will not function when the account is offline but it is possible to proactively notify your end users that operating hours are ending soon.
For more information, see the article: Creating a schedule with operating hours.