{% from "_macros.html" import icon %} {# New chat, and New folder. Its own partial because "New chat" changes with the Chat/Agent switch and this row sits *outside* the tree the switch swaps -- above the scroll area, so it does not scroll away. It arrives out of band instead, the move the `done` frame already makes for the chat title. It was not a partial to begin with, and the button went on saying "New chat" after the switch moved to Agents while the tree beneath it showed agent chats. Whether it worked was not the question: it said one thing and did another, which is exactly the shape of failure the switch itself was arranged to avoid. #} {% if can.get("chat.create") or can.get("folder.manage") %} {% endif %}