# Thread

> The page that opens over a chat with one message and all its replies, where you read the thread and reply inside it.

Source: https://air.build/docs/screens/chat/thread/

A thread is one message and every reply to it, shown on a page of its own over the chat. The chat stays behind it, blurred. The page has a title at the top, the thread's messages oldest first, and its own message composer at the bottom: whatever you send there is a reply in the thread.

## Open it

You can open a thread from any message in a chat that has landed. A message still sending has no **Reply**.

| Way in | What you do |
| --- | --- |
| Message menu › **Reply** | iPhone and iPad: touch and hold a message, then tap **Reply**. Mac: right-click a message and choose **Reply**. |
| Swipe right | Drag a message to the right. A reply arrow shows behind it; let go once the arrow turns solid. On iPhone and iPad, start the drag a little way in from the left edge: a drag from the very edge goes back instead. On the Mac, swipe right with two fingers on the trackpad. |
| Tap a quote | A reply in the chat shows a one-line quote of the message it answers above it. Tap the quote to open that thread. On the Mac the tooltip says **Open thread**. |
| Tap **N replies** | Under a message that has replies, a small capsule shows the faces of the latest repliers, **N replies** (for example **3 replies**) and an arrow. Tap it to open the thread. The first message is briefly highlighted when the thread opens. |

The thread opens with the first message of the thread and every reply, even when the first message is far back in the chat and isn't loaded yet. New replies join the page as they arrive, from you or from anyone else.

## What's on it

From top to bottom:

| Item | What it shows or does |
| --- | --- |
| Title | **Thread** when the thread is a single message; **N Messages** (for example **4 Messages**) when it has more. Shown dimmed. |
| ✕ (**Close**) | Closes the thread. On iPhone the title and ✕ sit in the top bar of the chat, in place of the back button and **⋯**. On iPad and Mac they float at the top of the page. On iPhone Duo there's a back button instead (see below). |
| Messages | The thread's messages, oldest first, drawn as in the chat: cards, pictures, files and reactions all work here. Replies don't repeat their quote here: the thread itself shows what they answer. Messages an Agent folded away in the chat (**N collapsed messages**) show as sent here. |
| Message composer | Placeholder **Reply to thread…**. Everything sent here is a reply in the thread. On the Mac it's ready to type as soon as the thread opens; on iPhone and iPad tap it first, so the keyboard doesn't cover the thread. See [Message composer](https://air.build/docs/screens/chat/message-composer/). |
| Read-only bar | Shown instead of the composer when the Project is archived, as in the chat itself, with **Unarchive**. See [Conversation](https://air.build/docs/screens/chat/conversation/#archived-chats). In a chat that takes no new messages there's no composer at all. |

### The message menu in a thread

Touch and hold (iPhone, iPad) or right-click (Mac) a message in the thread. The menu is shorter than in the chat:

| Item | What it does here |
| --- | --- |
| **Reply** | Doesn't open another thread. Your next send from this thread replies to that message instead of the one you opened. Swiping a message right does the same. |
| **Copy**, **Select Text** | As in the chat. On Mac, right-clicking a link also offers **Copy Link Address**. |
| Reactions | As in the chat. |

**Forward**, **Copy Link**, **Recall**, **Summarize**, **My Messages** and **Human Messages** aren't offered inside a thread. Close the thread and use the message's menu in the chat.

## Reply in a thread

1. Open the thread (see [Open it](https://air.build/docs/screens/chat/thread/#open-it)).
2. Tap the composer (iPhone and iPad), type your reply, and send it.
3. Your reply appears at the bottom of the thread. In the chat behind, it shows with a quote of the message it answers, and the first message's **N replies** goes up by one.

To answer a particular message in the thread, choose **Reply** on it (or swipe it right) before you type. When you send a picture's reply from the full-screen picture viewer opened in a thread, it goes into the thread too.

## Close it

Any of these closes the thread and goes back to the chat where you were:

- Tap ✕.
- Tap the blurred area around the messages.
- Press Esc: on the Mac at any time; on iPhone and iPad with a keyboard, while the cursor is in the thread's message box.

Closing a thread you didn't reply in leaves nothing behind: the chat's own composer doesn't keep quoting the message. Tapping an @mention in a thread opens its small menu (see [Tap an @mention](https://air.build/docs/screens/chat/conversation/#tap-an-mention)): **Mention** adds it to the thread's message box, and **Direct Message** closes the thread and opens your chat with that Agent or person.

## Differences between devices

|  | iPhone | iPad | Mac |
| --- | --- | --- | --- |
| Title and ✕ | In the chat's top bar | Floating at the top of the page | Floating at the top, in the window's title bar |
| Composer on open | Waits for a tap | Waits for a tap | Ready to type |
| Swipe to reply | Finger | Finger | Two fingers on the trackpad |
| Esc closes | With a keyboard, once you've tapped the message box | With a keyboard, once you've tapped the message box | Yes |

**On iPhone Duo**, the thread is a page over the chat with a back button instead of ✕. The button shows a left arrow and the thread's title, for example **‹ Thread** or **‹ 4 Messages**; tap it to close the thread.

- Held sideways (open), the back button floats in the top-left corner of the thread.
- Held upright, the back button takes the left end of the chat's top bar, in place of the sidebar button and the bell.

## Messages

The thread shows no messages of its own. Messages about sending, attaching and editing are the composer's; see [Message composer](https://air.build/docs/screens/chat/message-composer/).

The same page also shows a filtered reading of the chat ([My Messages and Human Messages](https://air.build/docs/screens/chat/my-messages/)) and one task's messages ([Task page](https://air.build/docs/screens/chat/task-page/)).
