When sending 'canned responses' or any other email templates to ticket owners/users, the %{ticket.dept.name} department identifier will show all assigned departments regardless of them being labelled as 'private' or not.
I'd suggest to report that over at github too:https://github.com/osTicket/osTicket-1.8/issues/new