Overview
Chatto messages can link to one another through reply attribution and can live inside threads. Replies and threads are independent concepts. Channel rooms can configure their Threading Mode. DMs always use Enabled behavior.
Behavior
-
Copied message and thread-message links use the owning server's full origin, including its scheme and port, with the home-server path. They do not depend on the sender's frontend address. Links copied with the frontend address and a remote-server path remain supported. Selecting a link in a message opens known servers in the current client; unknown servers open externally.
-
Following a message link opens the target's thread when it is a thread reply or has an existing thread, including a thread with no replies. The linked message is highlighted in the thread pane. A message without a thread opens in the room timeline. Thread existence is checked when the link is opened.
-
A message jump marks its destination with a soft accent fill and a leading-edge marker, then fades the cue. With reduced motion, the cue stays still before it clears. Repeating a jump marks the destination again.
-
Integrations can read all distinct authors of current thread replies in bounded pages. Retracted replies and erased authors do not contribute. Counts cover the full set. A thread without replies has no reply authors. The thread badge shows only reply authors. The root author appears there only when they also have a current reply.
-
Integrations can read their own stored room and thread read positions, one target at a time or in bounded batches. A read does not mark content as read or initialize a missing position. These positions are separate from notification attention.
-
A message in a room can optionally reference another message as the one it's in reply to.
-
While writing a reply, the composer shows the target name and a single-line excerpt inside its input surface. Muted text keeps the draft prominent. The close button removes reply attribution without clearing the draft; Escape has the same effect when no editor popup is open.
-
Each room and thread draft keeps its reply target when the user leaves and returns during the same server session. The composer restores the target name and excerpt. A successful send or explicit cancellation clears the target; a failed send keeps it. Reply targets stay in memory and do not survive a page reload. Loss of room access, session end, and privacy resets clear retained targets.
-
DMs support thread creation, replies, follows, unread state, links, notifications, echoes, and My Threads entries. Their Threading Mode is fixed to Enabled and cannot be configured.
-
A reply renders with a byline above the message body: the referenced author's small avatar, name, and a single-line excerpt of the referenced message.
-
Clicking the byline transports the user to the referenced message and briefly highlights it.
-
Clicking the avatar or name in the byline opens the user's context menu.
-
If the user selects text inside a message body before choosing Reply or Reply in thread, the target composer inserts that selected plain text as a Markdown blockquote while preserving any existing draft text.
-
On a thread root, Reply in thread opens the thread and focuses its composer without setting reply attribution. Selected text is still inserted as a Markdown blockquote. Open thread and thread badges only open the thread without focusing the composer. An explicit Reply action sets reply attribution.
-
The thread badge on the root message shows an orange dot for unread message notifications in that thread. Emoji reactions do not activate this dot. They remain in the notification list and notification counts.
-
A thread is a sequence of messages starting from a root message and continuing inside a dedicated thread pane. Threads can contain plain messages or reply-attributed messages; both are valid.
-
In the mobile drawer layout, swipe right while a thread is open to slide the thread overlay away and return to the room. Swipe again to open the sidebar. Swipes can start in the thread or on the app header. In right-to-left layouts, swipe left.
-
Below 1024 px viewport width, the thread header has one back arrow to return to the room and no trailing close button. Desktop controls remain available at wider widths. Header targets are at least 44 px square whenever touch input is available.
-
The thread header shows up to 3, 5, 8, or 12 participant avatars at pane widths below 360 px, from 360 px, from 480 px, or from 640 px respectively, plus the number of additional participants. It adapts when the pane is resized. Timeline and followed-thread responses include up to 12 reply-author identities for this preview. The total count can be larger. Left-click, right-click, or long-press an avatar to open the user context menu. The menu includes the full profile action. The header adds the root author to the reply authors. The root author appears first and counts once, including when they also reply. Erased authors are excluded. The preview stays compact to leave room for header controls.
-
A root message with an attached thread does not group with adjacent messages from the same author. The root and the next message show a full author header. This also applies to an empty thread. Plain messages inside a thread can still group by author.
-
Posting a reply attempts to follow the thread for its author, even after an earlier unfollow. The first reply also attempts to follow the root author when they have never made a follow choice. These post-commit subscription writes are best-effort and cannot roll back the message.
-
A delivered direct mention in a channel-room root or reply attempts to follow that thread when the recipient has no prior follow state. For a root mention, the root message ID identifies the thread for future replies.
-
Every channel room has a Threading Mode:
- Required — every new root atomically establishes its thread. The room composer keeps Post as thread visible, selected, and locked so the policy is explicit without presenting a false choice. The standard Reply action opens the root's thread with reply attribution. The adjacent Reply in thread action opens the same thread without attribution. Inside the thread, Reply creates attribution in that thread. The server rejects replies to roots unless they are placed in that root's thread. Automatic root-thread creation needs
message.post, which also includes reply authority. - Encouraged — both flat and threaded conversation remain valid. The standard Reply action opens the root's thread with reply attribution. The adjacent Reply in thread action opens it without attribution, and Reply in room remains available as a secondary expanded-menu action. Post as thread starts selected for each new root draft, but the author may turn it off.
- Enabled — the default and unrestricted behavior. Authors may opt into Post as thread, and other members may start a thread later. When a root already has a thread, the standard Reply action opens that thread with reply attribution if the member can reply there. Reply in room remains available in the expanded menu. Roots without a thread use an in-room reply. If the member cannot reply in the thread, Reply falls back to the room when permitted.
- Disabled — the server rejects new threads, thread replies, thread typing
indicators, and new channel echoes from historical thread replies. Ordinary
in-room reply attribution remains available. Existing threads and channel
echoes stay readable after a room changes to Disabled. Authors can remove a
historical echo while they can edit the reply. Effective
message.managepermits this removal after the normal edit window.
- Required — every new root atomically establishes its thread. The room composer keeps Post as thread visible, selected, and locked so the policy is explicit without presenting a false choice. The standard Reply action opens the root's thread with reply attribution. The adjacent Reply in thread action opens the same thread without attribution. Inside the thread, Reply creates attribution in that thread. The server rejects replies to roots unless they are placed in that root's thread. Automatic root-thread creation needs
-
Outside Required rooms, a root explicitly posted as a thread is immediately marked as a thread and the author follows it, while the composer remains in the room timeline. If nobody explicitly establishes an ordinary root's thread, the first thread reply establishes one implicitly.
-
Threading Mode changes are prospective: they do not backfill threads for existing roots or remove historical thread state.
-
A successful Threading Mode change appears as an actor-attributed room timeline event. The same ordered realtime update also refreshes room metadata, so open composers and reply actions react immediately.
-
The Room information panel always shows the room's current Threading Mode.
-
Before a user posts a root in an Enabled, Encouraged, or Required room, the client checks whether the newest root in the loaded room timeline has a thread. If it does, the client asks whether to reply in that thread or post the prepared root as-is. The prompt appears only when that root was posted at most 30 minutes ago. The client checks its age when the user submits the draft. Edits and new thread replies do not restart this window. The author does not affect this check. After the window ends, the client posts normally without the prompt. The prompt is omitted unless the loaded timeline is current; a history window must not supply the suggested thread. A newer flat or deleted root prevents an older thread from qualifying. Explicit room replies bypass this prompt and keep their selected reply target. Cancelling preserves the draft. The prompt is omitted when the user cannot post in that thread or when the current room policy forbids thread replies.
-
Thread badges in the room timeline are normal links to the thread URL, so users can copy or open the thread link through browser-native link actions.
-
Links copied from messages inside a thread reopen that thread and focus the linked message. A root message can be opened in its thread pane before the thread has any replies.
-
My Threads lists followed conversations with their root, latest visible reply, participant preview, reply count, activity time, reply unread state, and client-side decoration for a matching unread notification.
-
An open thread overlays the dimmed, inactive room timeline by default. A user can instead select a side-by-side layout in App Preferences. The side-by-side layout keeps both panes interactive when the room area is wide enough and uses the overlay when the area becomes too narrow. The side-by-side thread pane is resizable, and the app remembers its width on the device.
-
The thread pane opens and closes with a short slide. Switching to another thread in the same room gives the pane a brief fade and small movement without remounting it for animation. New replies, message jumps within the same thread, and changes to the pane layout do not replay this effect. Reduced motion disables both effects.
-
A visible thread in a focused app reads incoming replies automatically. Its unread and notification indicators stay hidden while the user views it. After a successful read, the client refreshes the thread state even if no live read update arrives. A hidden pane does not read new replies.
-
Within the room's Threading Mode, a user can post a plain message into a room, a reply into the room timeline, a plain message into a thread, or a reply inside a thread. Location permissions still gate the allowed operations independently.
Design Decisions
1. Replies and threads are orthogonal in the data model
Decision: A message's reply target and its containing thread remain independent fields. Threading Mode may constrain which combinations can be newly written in a room, without changing the persisted message shape or rewriting history. Why: Different communities want different conversation shapes. Keeping the primitives orthogonal preserves reply attribution and historical readability, while the room policy can still provide strict thread-everything, a gentle thread preference, unrestricted threads, or no new threads. Tradeoff: Every message write must validate the current room policy as well as its location permissions. A mode change can therefore reject an in-flight post rather than silently relocating it.
2. Posting permissions distinguish broad, thread, and interaction access
Decision: message.post permits roots and replies and includes message.post-in-thread and message.post-in-interactions. The first narrow permission permits replies in any readable thread; the second requires an existing interaction relationship. Reply attribution (inReplyTo) has no separate permission.
Why: Operators can permit replies without root posting, or restrict replies to related conversations while allowing broad reads. Reply attribution controls presentation and notifications, not write authority. A reply can create its own notification occurrence independently of a direct mention; the recipient controls that cause through notification policy.
Tradeoff: Operators who genuinely want to disable reply attribution as a UI affordance cannot do so through permissions. Recipients can suppress reply notifications without disabling the reply feature itself.
3. Reply attribution doesn't change storage
Decision: A reply is a normal message with an extra inReplyTo field. It's not stored differently.
Why: Reply attribution is a presentation concern. Special-casing the storage would mean every read path has to handle two flavors of message.
Tradeoff: Bulk operations (deleting a message, etc.) need to consider whether replies still make sense after the target is gone. The UI handles this by gracefully degrading the byline.
4. Thread timelines use cursor pagination
Decision: Thread timelines load chronological pages through opaque cursors. The initial page includes the root and the latest replies. Continuation pages load older or newer replies without repeating the root. Why: Threads can grow large, so bounded pages keep reads predictable and use the same navigation model as room timelines. Tradeoff: Clients combine the root-bearing initial page with reply-only continuation pages.
5. Anchored thread reads preserve the visible window
Decision: An anchored thread read returns a chronological window that includes the root and the requested root or reply, and identifies the requested event's position. Anchoring on the root loads the top of the thread. Why: Reconnects and message links preserve the reader's visible location instead of jumping to the latest replies. Tradeoff: Thread clients support both ordinary cursor paging and anchored windows.
6. Thread message links identify both the thread and focused message
Decision: A link copied from the thread pane preserves the thread root separately from the message it focuses. Opening the link shows the thread pane even when the focused message is the root and no replies exist. Why: An ordinary message link opens a reply's thread or a root's existing thread after a lookup. An explicit thread message link also opens a root in the thread pane before a durable thread exists. Carrying both identities makes that intended view explicit and directly shareable. Tradeoff: Thread message links contain two event identifiers, making them longer than ordinary room message links.
7. Root authors can establish a thread before the first reply
Decision: In Enabled and Encouraged rooms, a channel-room root post can explicitly create its thread with message.post. In Required rooms, thread creation is automatic for every root post. The root message, ThreadCreatedEvent, and root-author ThreadFollowedEvent are one atomic room-aggregate write. The durable thread exists even with zero replies, and public messages expose that state by including Message.thread; ordinary roots without an established thread omit it.
Why: The author can signal the intended conversation shape at posting time instead of leaving the decision to the first person who replies. Atomic creation prevents a visible root from briefly or permanently losing that intent. Keeping the room view stable makes Post as thread a posting choice rather than an unexpected navigation action.
Tradeoff: Clients must distinguish an established empty thread from an ordinary root with zero replies by checking Message.thread presence. Required rooms create an empty thread for every root even when nobody replies.
Compatibility: CreateMessageRequest.create_thread and the room Threading
Mode fields are part of the 0.5 client/server contract. Historical channel
events and snapshots that do not contain a mode normalize to Enabled without a
backfill. DMs normalize to Enabled. Followed-thread lists and realtime DM
thread projection data require explicit client opt-ins.
8. Thread presentation is an App Preference
Decision: The overlay is the default thread presentation. A user can select a side-by-side presentation as an App Preference. The selected mode applies to all registered servers on that device. Side-by-side presentation still uses the overlay when the room area is too narrow. The width check follows the room area after surrounding sidebars, not the browser viewport. The app remembers the side-by-side thread width separately. Why: The overlay keeps attention on one conversation and does not reduce the room timeline width. Users who prefer more context can opt into two interactive panes. The responsive fallback prevents surrounding sidebars from squeezing both conversations into unusable panes. Tradeoff: The overlay makes the room timeline inactive while a thread is open. In side-by-side mode, resizing surrounding panes can temporarily change an open thread to an overlay. The thread remains open and keeps the same URL.
9. Threading Mode is enforced at the room aggregate boundary
Decision: Room creation persists an explicit Threading Mode, while omitted historical values behave as Enabled. Changes append RoomThreadingModeChangedEvent. Message preflight gives clients prompt feedback, and the atomic append rechecks the policy under room-aggregate optimistic concurrency. A conflicting policy change retries the authoritative check and rejects a now-invalid post; it never moves the message to a different timeline.
Why: UI steering alone cannot constrain bots, integrations, stale clients, or an in-flight message that races an administrator's setting change. The room aggregate already owns both policy changes and message facts, so it is the natural consistency boundary.
Tradeoff: Changing a room's mode can cause a composer submission prepared under the previous mode to fail and require the user to retry in the newly valid location.
10. Latest-thread steering is a client-side destination choice
Decision: When the newest root in the loaded room timeline has a thread and was posted at most 30 minutes ago, a subsequent root submission without an explicit reply target pauses before uploads or mentions are processed and offers two explicit destinations: the latest thread or a new root. Choosing the thread preserves the message contents but clears root-only thread creation intent. Choosing the room preserves the prepared root, including Encouraged or Required mode behavior. This action is labelled Start a new thread when the prepared root creates a thread, and Post as new message otherwise. Why: A room message can accidentally start a new conversation when its author intended to reply to the latest thread. An explicit destination choice prevents this mistake without moving messages automatically. The 30-minute limit avoids interruptions when a user returns to a quiet room. Tradeoff: The safeguard depends on the client's current retained timeline, so it is guidance rather than a server invariant. The server continues to enforce only permissions and Threading Mode.
Permissions
message.read— read room and thread timelines. Room membership is also required.message.read-interactions— read a complete thread when the account authored its root or another account directly mentioned it in that thread. Room membership is also required.message.post— post roots and thread replies, including explicit thread creation.message.post-in-thread— reply in readable channel-room and DM threads.message.post-in-interactions— reply in readable threads with an interaction relationship. Neither narrow permission permits new root messages.
Related
- ADRs: ADR-011 (message body/event split), ADR-026 (event identity via NanoID), ADR-038 (room-owned thread state), ADR-050 (ephemeral encrypted projection snapshots), ADR-076 (deterministic notification occurrences), ADR-077 (persistent notification list), ADR-080 (explicit message-read permissions), ADR-082 (derived thread interactions)
- FDRs: FDR-003 (Thread Reply Echo), FDR-012 (Notifications), FDR-039 (Message Access & Interactions), FDR-044 (My Threads)