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 ( | Every transcript row of kind |
It appears nowhere else. Comment threads have their own named component, DiscussBubble.
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 |
|
|
Text colour |
|
|
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.
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).
US-AGENT-05 Chat with an agent: My bubble, the agent's bubble, the sending and streaming bubbles
US-AGENT-10 Open documents and links an agent refers to: Seed document links in a bubble, drawn in the brand colour
US-APP-03 Use the app in light or dark: My own bubble on the brand fill
US-APP-05 Always know what is happening: The streaming reply and its status row
US-APP-08 Have the app stay fast and responsive: The optimistic bubble and the streaming reply
Related
Parent: Inline parts. Screen: Agent session, in Agents tab screens.
Partner: Agents composer. Pattern: Composers.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime