ADR-0092: A thread uses its height: one tray for what waits, one strip for a turn¶
Status: Accepted Date: 2026-10-29 Deciders: Alex Nodeland Amends: ADR-0082 (the sheet's handle; the thumb bar and the tray), ADR-0083 (what shows that a turn works), ADR-0085 (the strip's tokens are no longer folded), ADR-0087 (what the composer's dock holds, and the height of its field on a phone), ADR-0089 (where a proposal sits, open and decided)
Context¶
The owner read the thread on an iPhone, over Tailscale, in the dark theme, and found its height badly spent and its parts unsteady:
- The strip over a turn at work was a card of three lines (a spinning badge, a line of phase and clock, a "Tokens" fold that opened to chips wrapping "default" onto a line of its own), with Stop beside them. Three dots pulsed in the thread as well, saying the same.
- A sheet's handle was a 44px band, overlapping padding that was already 20px, around a 40px bar.
- Proposals were cards at the foot of the thread, after the messages, open and decided alike: an accepted proposal kept the room of a card to say "Accepted". A question the agent asked sat in the log above them, so two boxes, neither docked, stood between the reader and the composer.
- The agent's words before a tool call were drawn at 45% opacity, as "not the reply", and read grey: below the contrast text needs (AA). The client marks them (
reply: "stale", set when a tool call's part starts after text), andStreamingfaded the bubble on it; a turn that failed or was stopped faded its whole row onended. - A run's calls were one line cut by an ellipsis mid-phrase ("Used a tool, looked up commands, edited a file, archived an art…").
- The palette's groups, listed in a
fieldset(whose minimum width is its content's) inside a box that scrolled up and down (which makes its sideways overflowautotoo), were as wide as the longest title: a bar to scroll above the field, rows cut at the left, the list dragged to either side.
Decision¶
- The strip is the one sign that the agent works. The dots in the thread are gone. A turn that has said nothing yet draws nothing; its thinking, once it starts, is folded as before and streams into its fold as it arrives, and its words stream in a bubble. The strip is one line, a dot that breathes (a still dot where motion is reduced, a shape and a word either way), "Working", what it does, the clock in digits of one width and Stop, with a second line for its tokens: "in 32,369 · out 6,925 · reasoning 4,955 · default", one line cut where it is long, there from the first, named in full for a screen reader. Nothing is folded under "Tokens", which amends ADR-0085: one line is less than a fold. What the strip says it does changes with a fade, not where motion is reduced.
- What the agent wrote is never faded. Words before a tool call, and what a stopped or failed turn kept, are drawn as any message's are. The client's
stalemark stays, for the one place it matters, the posted reply replacing the text. - What waits for the reader is one tray, docked with the composer. Open proposals, questions the agent asks (
ask_user) and forms it asks for (ask_form) are in a tray above the composer, in the dock, so they are never scrolled away and are one box:- one waiting is shown whole; several are one line, counted ("2 waiting for you", with what they are: a question by its first words, a form as "A form", a proposal by its title), opening to all of them. Several at first are closed; what is open stays open as another comes, so a card the reader is typing in is neither hidden nor remounted, and the focus stays; a count under two leaves it open for the next;
- whatever reaches into it opens it first: "Go to the question", a link from Needs you (
#request-…), a request that arrives as the page is open, a link in the page to a proposal (a created file's "changes are waiting for your review"), and a page opened at such a hash, all bring the focus to the part, in the tray, opened if it was shut. A polite status, there before anything is in the tray, says how many wait; - it scrolls inside itself, moves nothing sideways, and shows the content that passes under its top or bottom edge fading there, so an edge there is more past shows. Its height is two fifths of what the window has left once the on-screen keyboard's room is taken away, but never under nine rem: above a keyboard, or turned on its side, it keeps a few lines and scrolls to the card's last control, which the thumb bar, hidden under the keyboard, no longer reaches. In a window under 30rem tall the dock is in the flow (ADR-0080), and the tray with it, scrolling with the page. Its padding, taken back by its margin, keeps a focus ring whole at its edge;
- an approval stays as ADR-0087 has it, holding the window's foot over the thread with the dock in the flow under it, its own card and its own reason.
- What was decided is a line of the thread. An accepted or rejected proposal is one line, the mark and its title, a plain item with no landmark of its own, after the last entry of the run that made it (the thread's last where none did, as the store gives a proposal no place of its own); it has no part in the tray. Open, a proposal is ADR-0089's card, with what it does in words and Compare as ADR-0091 has it, unchanged. The Proposals page and a file's page still draw a decided proposal as that card.
- The thumb bar (ADR-0082) still offers a question's next step in the composer's row, but gives way only while the card's own button is what is at its centre: not off the window, not scrolled out of the tray, not under the dock; it stands in where the tray scrolls it away or is closed.
- A sheet's handle is a pill, 36 by 4px, in a band 24px tall (the least a target may be, WCAG 2.5.8), the sheet's top padding 8px: the header costs what it holds. Dragging by it is one way to close a sheet, never the only one: a dialog has its Close, the calls' sheet its round Close, and Escape and a press outside close each.
- A run's calls are said by their kinds, counted, as the owner reads them ("Made 2 artifacts, used 3 tools, made an app"), in the order first called. The line says the longest of three ways that fits its box, which it measures, as it is set and as its width changes: all the kinds; the first two and the calls of the rest counted ("Made 2 artifacts, used 3 tools and 1 more"); the first alone ("Made 2 artifacts and 4 more"). Each way is whole kinds, so the line is never cut mid-phrase unless not even the shortest fits, where it ends in an ellipsis (a narrower window than any phone, or text at 200%); the sheet it opens, the button's name and the desktop's line say all of it.
- Nothing in a sheet or a tray moves sideways. A sheet scrolls up and down alone (
overflow: hidden auto), the palette's groups may be narrower than their content, and a long title is cut with an ellipsis. A test opens the palette, the calls' sheet and a call's detail, and the Add sheet, with titles and code far wider than the window, and asserts that none scrolls or can be scrolled sideways (but a code block's own box, which the keyboard reaches), and the page is never wider than the window. - The rest of the thread is tighter on a phone: the gaps between messages and between the thread's parts, a card's padding, a composer that starts one line tall, a created file's card that says where its page is in the line it says it was created empty in, and a run's line of calls, whose 44px target overlaps its neighbours' space, as its words are not that tall.
Options considered¶
Option A: One tray in the dock; decided proposals as lines (chosen)¶
Pros: What needs the reader is in one place, at the thumb, never scrolled away; what doesn't is a line. Cons: The dock is taller while something waits, and a long card scrolls inside it.
Option B: Stack the cards in the thread, sticky¶
Cons: Two sticky boxes cover the thread, and decided cards still take a card's room.
Option C: Several waiting open, none closed¶
Cons: A question and a proposal together fill the window, and a phone's composer, the one thing it is for, is left a strip.
Consequences¶
Tray,ProposalLine,askedOfandreachWaitingare inui;threadLogtakes the decided proposals and places them; the thread's page builds the tray's list.- A question's card is no longer in the log while it waits, but in the tray; its id and the thumb bar's target are the same, and the focus goes to it by
reachWaiting. - The streaming add-on loses its chips. The app's initial and total budgets are met by 39 and 2 bytes (ADR-0040); no ceiling is raised. The line of calls is measured in the browser, not counted in characters.
- The screenshot baselines of
uichange for the strip, the handle and the message list; they are taken from CI'sui-screenshotsartifact (ADR-0019).