# Chat History

Every message you send and every response the AI generates is saved server-side as it happens, so a conversation is available from any device you sign in on — start an analysis on your laptop, review it on your phone. That storage is not permanent: every chat is deleted a fixed number of days after it was created (28 by default, 60 at most), so your history is a working record rather than an archive — anything you need to keep belongs in a [work folder](/products/ai-studio/concepts/work-folders) file, which the retention period does not delete. This page covers finding, titling, renaming, and deleting past chats, and how long you have before one expires.

Note
Chat history is stored on Treasure AI's servers, not in your browser or on your device. There is nothing to configure — persistence is automatic from your first message.

## Prerequisites

- Signed in to Treasure AI Studio ([Getting Started](/products/ai-studio/getting-started))


## How Chats Are Saved

Every message you send and every response the AI generates is persisted on the server in real time.

- **No local storage dependency.** Your conversations are stored server-side, not in the browser or on your device.
- **Cross-device access.** Sign in on any platform (Web, Desktop, or Mobile) and your full chat history is available.
- **Session-based.** Each chat has its own message history and context window. On every platform, a new chat is saved in a [work folder](/products/ai-studio/concepts/work-folders) and shares that folder's file space; a chat with no work folder keeps its files to itself.


## Recent Chats

**Recent Chats** is the sidebar section that lists your conversations from every work folder, most recently active first. Every chat appears here whether or not it belongs to a work folder, so it is the one place to look for any conversation.

### Web & Desktop

Recent Chats groups conversations by when they were last active, under four headings: **Today**, **Previous 7 Days**, **Previous 30 Days**, and **Older**. A heading appears only when it has chats, and the most recently active chat comes first within each group.

Each row shows:

- **Chat title** — Auto-generated or manually renamed (see [How Chats Are Titled](#how-chats-are-titled))
- **Work folder** — The name of the work folder the chat belongs to, at the trailing edge of the row. Chats with no work folder are marked **Legacy** instead; see [Chats Without a Work Folder](/products/ai-studio/concepts/work-folders#chats-without-a-work-folder)
- **Time indicator** — A short relative timestamp showing how recently the chat was active (e.g., "2m", "1h", "3d"). It appears on hover, beside the work folder name, along with the ⋯ menu
- The currently active chat is highlighted


The section shows a digest of your most recent conversations rather than the whole history. Click **Show all** at the end of the list to expand it — older chats then load as you scroll — and **Show fewer** to collapse it back to the digest.

### Mobile

Open the navigation drawer (tap the menu button at the top left, or swipe right from the left edge of the screen) and find your chats in the **Recent Chats** section. It is one flat list across all work folders, most recently active first, with no date grouping. Scroll to load older chats, and pull down to refresh.

Each row shows the chat name, the name of its work folder (with a shared icon for a shared work folder) or **Legacy** for a chat with no work folder, and a relative time. Tap any chat to open it.

## Sending a Message Moves a Chat to the Top

Sending a message moves that chat to the top of **Today** in Recent Chats immediately, and Studio briefly highlights the row and scrolls it into view so you can see where it went. Recent Chats orders conversations by when they were last active, not when they were created, so the chats you are actually working in stay at the top of the list.

## Finding a Chat's Work Folder

Recent Chats names each chat's work folder on its own row, so you can tell where a conversation lives without opening it. Opening a chat also reveals its folder in the **Work Folders** section: Studio expands the section when you move to a different folder, briefly highlights that folder's row, and scrolls it into view.

To see one folder's conversations on their own, expand that work folder in the **Work Folders** section and open its **Chats** list, or open the work folder's page, which lists the same conversations in its **Chats** section. See [Work Folders](/products/ai-studio/concepts/work-folders) for how folders organize chats and files.

## Searching Chats

### Web & Desktop

Search lives behind a **search (🔍) toggle** in the sidebar header. Click it to reveal the search box (labeled **"Search chats..."**), which is focused automatically. As you type, both your chats and work folders filter in real time to show only matching entries; if nothing matches, the list is empty. Press **Escape** or click the toggle again to close the search — closing clears the filter, and the search also closes when you navigate to a chat or work folder.

Search matches chat titles, not message contents, which is the practical reason to let Studio title chats descriptively and to rename the ones you will come back to.

### Mobile

The mobile app has no chat search. Scroll **Recent Chats** to find a chat. The **Work Folders** screen has a search field, but it matches work folder names, not chats.

## How Chats Are Titled

Every conversation names itself. Studio analyzes your first exchange and generates a short, descriptive title in the background — no filing, no tagging, no overhead — and the title replaces the **"New Chat"** placeholder in the sidebar a few seconds later, with no loading indicator or notification.

Titles reflect the topic or intent of the conversation:

| Your First Message | Auto-Generated Title |
|  --- | --- |
| "Show me all databases in my account" | Database exploration |
| "Build a segment of users who purchased in the last 30 days" | Recent purchaser segment |
| "What's the row count for the pageviews table?" | Pageviews table analysis |
| "Help me create a journey for cart abandonment" | Cart abandonment journey |


These examples are illustrative; actual titles vary with the full context of the exchange. A vague opening message ("hi") produces a vague title, so a specific first question is worth more than a later rename.

Technical Note
Title inference runs server-side after your first message, using a lightweight model, and does not consume your chat's context. If inference fails it is retried, and the chat keeps its **"New Chat"** placeholder until a title is set.

### Renaming a Chat

Auto-generated titles are a starting point — rename any chat at any time.

**Web & Desktop**

1. Click the ⋯ menu on the chat and select **Rename**. The title becomes an editable field inline in the sidebar
2. Edit the title
3. Press **Enter** to save, or **Escape** to cancel


Sidebar Chats list with five conversations, the highlighted row in edit mode showing its title selected in an inline text field
**Mobile**

Long-press a chat in **Recent Chats** (or in a work folder's **Chats** tab), then tap **Rename**. Edit the title in the **Rename Chat** sheet and tap **Save**.

Renaming syncs server-side, so the new title appears on every device.

## Deleting a Chat

### Web & Desktop

1. Click the ⋯ menu on the chat you want to delete
2. Select **Delete**
3. A confirmation dialog names the chat and warns that this permanently deletes the chat and its messages
4. Click **Delete** to confirm, or **Cancel** to keep the chat


Warning
Deleting a chat with no work folder permanently removes it, its messages, and any files that belong to that chat alone. This cannot be undone. Files that live in a work folder are unaffected — they belong to the folder, not the chat, and are retained when the chat is deleted. See [File Retention & Deletion](/products/ai-studio/files/file-upload-download#file-retention--deletion) for details.

### Mobile

Long-press a chat in **Recent Chats** (or in a work folder's **Chats** tab), then tap **Delete**. Confirm by tapping **Delete** in the **Delete Chat** dialog.

## Chat Retention Period

Every chat expires. Organization administrators choose how long chat history is kept — **14, 28, or 60 days, with 28 days the default** — and there is no setting that keeps chats indefinitely. When a chat passes the period it is deleted permanently, along with any files that belong to that chat alone.

Two details decide what this costs you:

- **The clock starts when the chat is created**, not at your last message. A conversation you are still adding to expires on the schedule set by its creation date.
- **Work folder files are exempt.** They belong to the folder rather than the chat, so they outlive it — which makes moving a result into a work folder the way to keep it.


For how to set the period, see [Chat Data Retention](/products/ai-studio/security/data-retention).

## Sessions vs. Saved Chats

A chat's **working session** — the sandbox that runs the AI — is released after a period of inactivity to free resources. This does **not** delete the conversation. The chat stays in your history: open it any time to read the full message history, and send a message to restart the session and continue. See [Chat Sessions & Limits](/products/ai-studio/chat/sessions).

A chat leaves your history in three ways: you delete it, it passes the organization's [retention period](#chat-retention-period) — which always applies — or you delete the work folder it belongs to. When you delete a work folder, the conversations inside it are removed — not moved elsewhere — so download anything you need before deleting the folder.

## Verification

- [ ] Start a conversation on one device and see it listed on another device
- [ ] Send a first message and see the sidebar entry change from **"New Chat"** to a descriptive title
- [ ] Rename a chat and see the updated title across all devices
- [ ] Send a message in a chat from an earlier day and see it move to the top of **Today** in Recent Chats


## Troubleshooting

| Issue | Solution |
|  --- | --- |
| Chat missing from history | Recent Chats shows a digest, not your full history. On Web and Desktop, click **Show all** to expand it, then scroll to load older chats. On Mobile, scroll Recent Chats to load older chats. On Web and Desktop, searching by title finds a chat regardless of which work folder it belongs to |
| Search returns no results | Search matches on chat titles only. If the title was auto-generated, try keywords that describe the conversation topic |
| Title still shows "New Chat" | Title inference runs after your first message and may lag the AI's reply by a few seconds. If it still hasn't appeared, send another message, or rename the chat manually |
| Title is too generic | The title comes from your first exchange, so a broad opening message produces a broad title. Rename it, or open the next conversation with a specific question |
| Deleted chat still appears | Refresh the page or restart the app. The chat list may take a moment to sync |


## Next Steps

- [AI Chat Interface](/products/ai-studio/chat/chat) — Sending messages and understanding responses
- [Chat Sessions & Limits](/products/ai-studio/chat/sessions) — Why a chat's session ends and how it resumes
- [Work Folders](/products/ai-studio/concepts/work-folders) — How work folders group chats and which folder new chats are saved to
- [Chat Data Retention](/products/ai-studio/security/data-retention) — Setting how long history is kept