Chat messages and the streaming reply
The bubbles of an agent conversation: mine on the right on the brand fill, the agent's on the left as Markdown, plus the bubble for a message being sent and the one for a reply being written.

The chat message is the bubble. It is the default row of the agent transcript, used for everything said by the person or the agent. Two temporary bubbles use the same drawing: my message while it is being sent, and the agent's reply while it streams.

    Kind: inline part. It is not a named component in code. It is written inside the screen component AgentSessionScreen.

    Where it lives: the bubble at agents.contract lines 579 to 590; the sending and streaming rows are made at lines 499 to 500.

Used by

Where

How

Agent session (AgentSessionScreen)

Every transcript row of kind message, and the two temporary rows. See Session timeline

It appears nowhere else. Comment threads have their own named component, DiscussBubble.

My messages on the right in white on the brand fill, the agent's on the left on a light grey. The long reply shows Markdown bold and wraps at nearly the full width.

Anatomy

A row with padding 4 by 16 that pushes its one child to the right (mine) or the left (agent). The child is a single text element:

Property

Mine

Agent

Alignment

Right

Left

Background

brand.fill

-exact-secondary-background

Text colour

ink.on-brand (white)

-exact-label

Maximum width

80%

94%

Padding

8 by 12

8 by 12

Corner radius

18

18

Text

Markdown, body size, wraps anywhere needed

The same

There is no avatar, name or time on a bubble. Side and colour identify the speaker.

Links inside a bubble: a Seed document link (hm://) is drawn in the brand colour and opens the Document screen in the app. The contract declares this as an atom, agentDocument, on line 5.

Variants and states

Variant

What it is

Look

Sent message

A message in the conversation's history

As above

Sending

My text, shown the moment I tap send

Identical to a sent bubble, placed after all history. It disappears when the real message arrives, or when the send fails

Streaming reply

The agent's reply so far

An agent bubble, placed after the sending bubble, growing as text arrives. Markdown is rendered as it grows

The sending bubble has no "sending" mark and the streaming bubble has no cursor. Progress is shown by the status line under them ("Thinking…", "Running a tool…", "Replying…") described on Agent session.

Other text rows of the transcript are not bubbles: system notes (footnote, secondary colour), continuation notes and errors (red). See Session timeline.

Rules for use

    Use a bubble only for speech. Work is a card (AgentToolRow, AgentRunCard); context is a flat row (AgentContextRow).

    brand.fill, never brand, under bubble text. brand.fill keeps white text at 4.5:1 or better in both schemes; brand in dark mode does not (Color and tokens, Light and dark).

    Keep the two widths. The agent writes long, structured answers and gets almost the full width; my messages are short and stay visibly "mine" at 80%.

Why it looks this way

    It is Messages. Right and tinted for me, left and grey for the other side, 18 point radius. DESIGN.md: "User messages right/accent bubbles; assistant left, rendered markup=\"markdown\"". The layout comes from Exact's chat thread recipe, which uses 75% for both sides; the app widens the agent's side to 94% (inferred reason: Markdown lists and code need the room).

    Content is the only thing painted. The first principle in DESIGN.md allows custom paint for "document typography, comment bubbles, avatars". Bubbles are one of the three (Leave it unsaid).

    Body size text. Replies are meant to be read, so they use the body style and scale with Dynamic Type (Typography, Accessibility).

    Show my words at once. The sending bubble makes the app feel immediate, and removing it on failure while keeping the draft keeps it truthful (Honest state).

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0
Linked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkChat messages and the streaming replyChat messages and the str…
Citations 0Children & links 28

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…