Repository navigation
Own look: Tcode's design language across chat, notices, sidebar and theme - #1188
Merged
Merged
Conversation
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.
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
Evidence
Running app. The app was seeded with a synthetic profile and checked in light, dark and a narrow window. It covers:
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:
mux.rs3 runs out of 3.Not seen live:
All of these are covered by tests.
Merge Danger
Door: two-way
There are wire additions, all optional:
SessionStatus.child_requestsSessionActivity.askingChildRequestSettledparent_item_idonUserInputRequestedcheckpoint_idonRewindFailedSettings.sidebar_provider_marksis removed; older settings files still load.PROTOCOL_VERSIONis 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.