Yes, all chat interfaces store the history as it's part of the UI promise (unless you open an incognito chat) and is fully server side.
When people talk about retention they mean API usage and terminal agents, which run on your device.