Skip to content

Own look: Tcode's design language across chat, notices, sidebar and theme - #1188

Merged
Tryanks merged 12 commits into
mainfrom
ui/own-look
Nov 23, 2026
Merged

Tryanks merged 12 commits into
mainfrom
ui/own-look

Conversation

@Tryanks

@Tryanks Tryanks commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Tcode starts owning its look. Principle 6 now reads: gpui-base for behaviour, and Tcode designs its own type scale, spacing, radii, palette, motion and components. This branch puts that rule into practice across the chat flow, the sidebar and the theme. It also carries two fixes found along the way.

principles      Principle 6 rewritten: behaviour from upstream, look from Tcode
theme           Tcode-declared type/spacing/radius scales · composer 20r, 12/14 inset, 15pt text, soft shaded surface,
                focus lifts instead of turning blue (fields and focus ring follow) · bubble 18r 10×16 · 26pt leading
                turn/segment gaps 36/16 · 680 column · roomier cards/code blocks · softer overlay shadows · firmer dark hairlines · merged PR purple
                One-family syntax colours (matching the terminal) · meters on theme colours · unread theme keys dropped
chat flow       event-card recipe (material::event_card): subagent / started-thread / report /
                changed-files / plan / error / approval / question cards, four tones
                · linked PR = fixed record beside a hairline, not a card
                · a child's approval or question is answered on the lead's card (ChildRequestSettled record)
notices         no side-rule dividers: model switch and relay handoff as vendor capsules with an arrow
                (amber + reason + switch back when the harness switched); compaction, rewind and move as icon lines;
                settings notes as message tags; rewind failure in the message's action row until the next message;
                retries in the working line and counted in the work log; warnings and actor runs merged;
                withheld-record placeholder; unreadable-records banner; Tcode's reminder and other threads'
                messages come in as messages; worktree successes and property-only actions leave the flow
sidebar         threads view rows: fixed 74pt, three lines (project · marks · time / title alone / harness glyph +
                model or status); verb-first waiting status naming the asking agent; faint fill for pinned rows;
                phone list from the same source; provider watermark and its setting removed
runtime         SessionActivity.asking names the harness subagent waiting on the user (approval/question cards say so)
fixes           visualize description: inline first · traverse: original reads queue for a slot instead of "busy"

Evidence

  • Running app. The app was seeded with a synthetic profile and checked in light, dark and a narrow window. It covers:

    • every card state, including the PR record and the PR wake cards;
    • every notice;
    • the sidebar, desktop and narrow.
  • Tests.

    • mbx fmt --all --check: clean.
    • mbx clippy --workspace --all-targets --locked -- -D warnings: clean (apart from the existing unused-dependency warnings in the iOS/Android manifests).
    • mbx nextest run --workspace --locked: 1512 passed, 7 skipped.
  • New contracts include:

    • a child's approval and question answered from the lead's card, then recorded as answered;
    • a native subagent's request named in the lead's activity until it is answered;
    • sidebar rows that keep the same height with or without a status, and whose verb survives a long name;
    • a rewind failure that stands only until the next message;
    • original reads that wait for a slot. This one fails on the old mux.rs 3 runs out of 3.
  • Not seen live:

    • the composer approval and question cards with the subagent line (they need a live pending request);
    • the live retry line;
    • the withheld placeholder (network clients only);
    • the unreadable banner.

    All of these are covered by tests.

Merge Danger

Door: two-way

There are wire additions, all optional:

  • SessionStatus.child_requests
  • SessionActivity.asking
  • ChildRequestSettled
  • parent_item_id on UserInputRequested
  • checkpoint_id on RewindFailed

Settings.sidebar_provider_marks is removed; older settings files still load. PROTOCOL_VERSION is unchanged, and the unreleased notes are recorded.

Blast Radius: app-wide

Every chat timeline, the sidebar, the phone list, the composer and the theme render differently. One stored behaviour changes: request retries are now folded one entry per attempt instead of merged.

Principle 6 now separates what gpui-base provides (behaviour primitives,
used as they are) from how the interface looks (type scale, spacing,
radii, elevation, colours, motion timing, components), which is Tcode's
to design. The slop-audit pattern on motion cites Principle 7, where
that rule lives.
The description offered `path` as a peer of `html` "for a very long
page", though both take the same 512 KB. It now says a page is passed
inline, that `path` is only for a page a script already wrote and that
is over about 100 KB, and what a path costs: every device reads the file
from the host each time it shows the visual.
A device holding its two transfer slots got "busy: too many original
reads" for every further read, and the timeline showed each such visual,
image or file as unreadable for good. Admission now waits until a slot
frees; a waiting read that is dropped (native stream stopped, browser
fetch aborted) leaves the queue without taking a slot. The limits are
unchanged.
A shared card recipe (material::event_card: hairline border over a faint
wash in one of four tones, icon tile, title and subtitle, status,
sections, footer) draws every card in the chat flow:

- subagents and started threads replace their activity rows and the
  starting thread's own "started thread" divider;
- child-thread callbacks become report cards that keep the report the
  parent's model received;
- a linked pull request is a static record; watch wakes are one-line
  update cards that expand to the message the model got;
- changed files, plan, error, approval and question cards move onto the
  same recipe.
The record of opening a pull request carries only what was settled at
that moment (past-tense event and time, title, repository and number,
branches) beside a hairline rule, with one way to the latest state: the
pull request panel. Nothing in it can look live.
A tcode_control child that waits on the user no longer sends them into
the child thread: the lead's report card offers the request's own
options, or the question form the composer uses, while the host reports
the request live in the lead's status. Once settled the card records how
(the host writes ChildRequestSettled into the lead), and a request no
longer pending offers nothing.
A native subagent's approval or question used to read as the lead's
own. The lead's index activity now carries which subagents ask and for
what (agent type and task, from the spawn item the request names), and
the approval and question cards above the composer say so. Questions
carry their parent item too where the harness reports it.
Each thread row in the threads view (and the phone list, from the same
source) is 74pt: project and marks with the time, the title alone on a
full-width line, then the harness glyph with the model, or the status
when there is one. A waiting row names who waits, verb first so a long
name never hides it: a dispatched agent's title, or the harness
subagent the host names. Pinned rows carry a faint fill. The provider
watermark and its setting are gone, and so is the awaiting-settle
status, which is the lead model's business.
The type, spacing and radius scales are declared by Tcode rather than
taken from gpui-base defaults (chips step to a 6pt radius). The user
bubble gets its own 16pt radius and roomier padding, the composer an
18pt radius, more inset and a lighter shadow; turns and segments sit
28/14 apart in a 680pt column. Dark hairlines are a little firmer,
unread theme keys are dropped, meters use theme colours, a merged pull
request is purple, and code highlighting shares the terminal's One
palette.
The centred "two stubs around a line" notice is gone. Model switches
and relay handoffs are capsules of vendor glyph and model or harness
joined by an arrow (amber, with the reason and a way back, when the
harness switched on its own); compaction, rewinds and moves are a
centred icon line. Settings notes become tags on the message they
describe, a rewind failure stands in that message's action row until
the next message, retries update the working line and are counted in
the turn's work log, a turn's warnings and an actor's run of actions
each read as one line, a withheld record is a placeholder with Load,
unreadable records are one banner, and Tcode's reminder and messages
from other threads come in as messages. Worktree successes and actions
that only change a thread's properties leave the flow.
A thread left on its harness's default model showed only the glyph on
its third line; it now reads the harness's name there.
@Tryanks Tryanks changed the title Own look: event cards in the chat flow, on a Tcode-owned recipe Own look: Tcode's design language across chat, notices, sidebar and theme Nov 22, 2026
… blue

The composer is larger and softer (20pt radius, 12/14 inset, 15pt text,
a faint top highlight over a gently shaded fill, 32pt send) and shows
focus by lifting off the page; its border no longer turns primary, and
text fields and the keyboard focus ring follow with a neutral border and
a smaller lift. Chat breathes more: 36/16 turn and segment gaps, 26pt
body leading, an 18pt bubble with 10x16 padding, roomier event cards and
code blocks. Buttons gain horizontal room, menus and popovers a softer
layered shadow, tooltips a rounder shape.
@Tryanks
Tryanks marked this pull request as ready for review November 23, 2026 05:57
@Tryanks
Tryanks merged commit e956adc into main Nov 23, 2026
26 checks passed
@Tryanks
Tryanks deleted the ui/own-look branch November 23, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant