Hey, thanks for the report. The close (X) button should close the Cursor Tab chat itself, but instead it just hides the sidebar and the chat stays open.
The X button in the top panel is acting wrong right now. There’s an active UI bugs megathread here [Megathread] Cursor layout and UI feedback, can you add your feedback there?