Terminal UI (`orquelo tui`)
Status: design, 2026-12-04; the owner's decisions of 2026-12-04 are recorded in section 9. Nothing here is built. It covers every scenario of the terminal client, one design langua
Status: design, 2026-12-04; the owner's decisions of 2026-12-04 are recorded in section 9. Nothing here is built. It covers every scenario of the terminal client, one design language for the terminal and Feishu cards, and the architecture. Related: client protocol · ADR 0015 · ADR 0006 · input and output contract · sigils.
The rendered page with every screen in a dark and a light terminal palette is doc/assets/tui/orquelo-terminal.html (open it in a browser; its Mermaid blocks render only where Mermaid is available). The terminal screens were drawn by Go code with lipgloss 1.1 and glamour 0.10, the libraries such a TUI would use (a build would take their v2 lines), and converted from their escape-coded output cell for cell. The Feishu cards are HTML replicas built from Card JSON 2.0 components, not screenshots of the Lark client. The generator was a throwaway tool and is not in the repository: its 900 lines would count against the production budget (make size counts every .go file). Slice T1 turns the same approach into golden-frame tests.
1. Decisions
- A thin client, not a channel plugin.
orquelo tuiis a separate process that uses httpapi v2 (HTTP plus SSE), as ADR 0015 already plans. Leaving it never cancels a run. It attaches to a local or a remote Host, never readsorquelo.db, and adds no client branch to the Host. - Fullscreen by default (owner, 2026-12-04). Bubble Tea v2 on the alternate screen, with the mouse captured. Switching conversations, the inbox and the details view need a screen the TUI owns.
- One command,
orq(section 6.5), and local by default (owner, 2026-12-04). On the Host's own machine the TUI connects with no pairing: it reads the local client credential the Host writes to its data directory, readable only by the operating-system user, and acts as the local operator. A remote Host uses device pairing (section 6.4). - Typed run activity. Progress is one composed string today (
RuntimeHost.Progress(ctx, text)), so no client can draw the plan, tool calls or meters. A structured snapshot beside the text is the one Host change the TUI cannot do without, and Feishu and the app use it too (section 7). - One design language, in
pkg/designlang(owner, 2026-12-04: a package, named by the design). State, colour role, glyph, block order and message keys are shared data. The terminal, every Feishu card and the app differ only in rendering. - Clear and simple (owner, 2026-12-04). Light mode is the reference: no chrome but two thin rules around the input, colour only on marks, finished work folded into summary lines (section 3.1).
- Strict layers (owner, 2026-12-04). Every TUI module has one responsibility; modules in a layer never import each other, and imports only point down (section 6).
- No line ceiling for the TUI (owner, 2026-12-04), recorded in section 8 of the architecture.
2. Scenarios
built: the Host contract exists. partial: it exists but lacks data the screen needs. gap: a Host change is needed. client: all the work is in the TUI.
| # | Scenario | What the person sees | Host today | Frame |
|---|---|---|---|---|
| S1 | Start and attach | Finds or starts the local Host and connects as the local operator; the Orquelo mark, version, runtime, model, workspace, recent conversations from every channel, questions waiting | gap: local credential (G5) | welcome |
| S2 | Commands and skills | / lists the directives visible to this person | built: /v1/catalog | slash |
| S3 | Runtime and file mentions | @ offers runtimes from the catalog and files from a local workspace index | client: file index for a local Host only | mention |
| S4 | Watch a run | Plan, each tool call with a one-line result, streamed text, spinner with elapsed time, tokens and context use | gap: progress is one string (G1) | running |
| S5 | Approve a command | Exact command, directory, digest, expiry; approve once, for the conversation, or reject with a note | partial: prompt is text (G3) | approve |
| S6 | Approve an edit | A diff preview of the write | gap: no structured subject (G3) | diff |
| S7 | Answer a question | Single or multiple choice or free text, bound to the question's version | built: CAS answers | ask |
| S8 | Sign in | A link to open on any device or a hidden paste field; the run resumes by itself | built: sign-in questions | signin |
| S9 | Steer and queue | Text typed during a run is steered into it; a message with files queues a new run | built: ADR 0006 | steer |
| S10 | Result, changes, deliveries | Rendered Markdown, the run's file changes, each destination's delivery, retry of one failed destination, rating | partial: rating not on httpapi (G4) | final |
| S11 | Failure, refusal, cancel | A refused tool, a failed run with its code, a cancel; each says what is kept and that nothing reruns | built | failed |
| S12 | Switch and resume | The person's conversations across channels, filterable; open one started in Feishu | built: /v1/conversations | picker |
| S13 | Inbox | Questions waiting anywhere; answered here, settled everywhere, first answer wins | built: /v1/questions | inbox |
| S14 | Host restart | A banner, a kept draft, replay from the last event id or reload after stream.resync_required | built: SSE replay | reconnect |
| S15 | Details view | Each step's arguments, output, ledger key and approver; search; dump to scrollback | gap: no steps endpoint (G2) | transcript |
| S16 | Subagents | Children and cross-runtime children as a tree with state | partial: finish only | subagents |
| S17 | Chinese locale | All text from message keys; CJK keeps the cell grid | client: pkg/i18n | zh |
| S18 | Narrow, no colour, ASCII | 64 columns, NO_COLOR, legacy consoles; state by glyph and word, never colour alone | client | narrow |
| S19 | Remote Host | A paired-device token; the cwd workspace and file index are off | built: pairing | — |
| S20 | Pipes and scripts | Not the TUI: orquelo exec and the line-mode console, which stays as it is (owner, 2026-12-04) | built | — |
| S21 | Attachments | Files as chips in the input with upload progress; image paste, file pick, a dropped path; files listed on a sent message; delivered files saved locally, with open and copy path | built: resumable uploads, artifacts | attach |
| S22 | Scroll back while streaming | The view stops following; a “Jump to bottom” pill counts new lines; a click or End returns | client | scroll |
3. Design language
Every surface draws a run from the same parts; only the renderer differs (ANSI cells, Card JSON 2.0, app widgets). The table of state to role, glyph and message key is shared data, and each surface maps a role to its own colours.
3.1 Clear and simple
The light terminal is the reference look (owner, 2026-12-04).
- ◆No chrome. No header bar and no boxes. Two thin rules hold the input; one quiet line under them carries key hints and meters.
- ◆The person's messages stand out. Each sits on an inverse band (light text on near-black in the light palette).
- ◆Colour only on marks. State colours sit on glyphs, tags and progress meters; text is the normal colour or grey. The accent marks Orquelo, the input pointer, selection and commands.
- ◆Finished work folds. Done tool calls collapse into one grey summary line ("✓ Read 2 files, searched 1 pattern"); Ctrl+O opens them.
- ◆Replies are rendered Markdown. Headings and bold, lists, inline code in the accent colour, code blocks, and tables drawn as a full box grid fitted to the width, header in bold, cells wrapping inside their column.
- ◆One line per reply head. A grey line names the runtime and run (
◆ agent · glm-4.6 · run r_7f3a), which keeps the owner's rule that every reply names its runtime. - ◆The brand mark. The welcome screen shows Orquelo's mark, a hollow diamond drawn with block characters in the accent colour (the reply glyph
◆drawn large), beside the name, version, runtime, model and workspace. Under ASCII it is drawn with/\ <> \/.
3.2 State roles
| Role | States | Light terminal | Dark terminal | Feishu text_tag colour |
|---|---|---|---|---|
run | queued, running | #1d68c4 | #5aa9ff | blue |
wait | waiting for the person | #9a5c00 | #f0b44c | orange |
ok | succeeded, approved | #187944 | #58c98b | green |
fail | failed, refused, rejected | #be3333 | #f07070 | red |
muted | cancelled, expired, superseded, metadata | #6b6d72 | #868c97 | neutral |
accent | Orquelo, focus, selection; never a state | #5a48d6 | #a08cff | — |
The light terminal is white (#ffffff, text #1f2023, user band #34353a); the dark one is #121316 (text #e3e4e8, user band #3a3d45). Every neutral is grey enough, and the accent violet enough, to stay so when a 256-colour terminal such as macOS Terminal downsamples it (the light band #2e3036 turned teal there; checked by look's tests). In the TUI the roles are adaptive colours chosen by the terminal's background. Bubble Tea v2 downsamples them to 256 or 16 colours and drops them under NO_COLOR.
3.3 Glyphs
| Meaning | Glyph | ASCII |
|---|---|---|
| A message from the person | › | > |
| A reply, followed by its runtime | ◆ | * |
| Running (spinner) | ⠹ | ~ |
| Done / failed / refused by a guard | ✓ / ✗ / ⊘ | + / x / x |
| Waiting for the person | ◈ | ? |
| Cancelled or queued | ■ | # |
| Plan item to do / doing / done | ○ / ◐ / ● | o / @ / * |
| A tool's result line | └ | ` `` |
Feishu cards use the same Unicode glyphs in Markdown and no emoji as state, except the existing 👍 and 👎 rating buttons.
3.4 Accessibility
Checked against the ui-ux-pro-max skill's rules on 2026-12-04:
- ◆Contrast. Every text colour reaches 4.5:1 in both terminal palettes, on the header band, on diff rows and in the card tags. Six pairs were below it and were shifted slightly: light-terminal green, blue, red and grey, dark-terminal grey, and the card's secondary text.
- ◆Not colour alone. Each state has a glyph and a word.
- ◆Touch targets. Card actions use Feishu's
largebuttons (40px on PC, 48px on mobile), which meet the 44pt (iOS) and 48dp (Android) targets, with 8px between them. - ◆Progress. A long run shows how far it is ("plan 2 of 4" and a block meter) rather than only a spinner.
- ◆Key hints. Each hint shows the key in the text colour and its label in grey.
3.5 Block order and wording
A run is always head (runtime · model · state) → plan → activity (tools, subagents) → answer → footer (changes · deliveries · actions), in the terminal, the progress card and the final card. A question interrupts at the activity it blocks, marked ◈. A finished run folds its activity into one line ("14 steps · 9 tools · 2 approvals") that opens the details.
- ◆Every reply names the runtime that produced it (sigils S5, the owner's choice).
- ◆Every word on screen is a message key in
zh-CNanden-US; state names, error codes and ids are data and stay untranslated. - ◆A failure says what is kept and whether anything repeats; a delivery retry says it does not rerun the runtime.
- ◆A question says where else it is shown and that the first answer wins.
4. Screens
The dark terminal frames are below and the light ones, the reference look, in section 4.1; the HTML page shows both. Each is 100×32 cells except the 64-column one.
S1 Start and attach. The brand mark beside the name, version, runtime, model and workspace; the footer counts questions waiting anywhere.

S2–S3 Completion. / shows the catalog's directives; @ shows runtimes and local files.


S4 Watch a run. Plan, finished tools folded into one line, streamed text, then the progress line with time, tokens, step and plan meter; the input stays open for steering.

S22 Scroll back while it streams. The view stops following, and a pill counts the new lines until a click or End.

S5–S8 Questions. The dialog sits where the run stopped. Esc leaves a question pending, which is not rejecting it.




S9 Steer and queue.

S21 Attachments. Chips with upload progress, a pasted image and a refused oversize file; the sent message lists its files; delivered files are saved locally.

S10–S11 Result and failure. The answer is Markdown rendered by glamour; changes come from the run's task worktree; a failed destination is retried alone.


S12–S13 Conversations and inbox.


S14–S16 Restart, details and subagents.



S17–S18 Chinese, and 64 columns under NO_COLOR with ASCII glyphs.


4.1 Light terminal
The same frames in the light palette. The terminal's background decides the palette: Bubble Tea picks the adaptive colour for a light or a dark background.





















5. Feishu cards
Today's cards are a Markdown body with buttons and no header (plugins/feishu/cards.go). Every card the plugin builds follows the design language (owner, 2026-12-04): progress and final replies, questions and their settled forms, sign-in, reports and notices. Each gets a neutral header (template: default) whose title glyph and one text_tag carry the state and whose subtitle names the runtime, and the shared block order. A finished run's steps go in a collapsible_panel. One message is still updated in place, at most once a second. The progress card draws its plan and tool lines from the structured snapshot of G1 instead of the composed text.

The dark client: feishu-dark.png. The HTML page has the Card JSON 2.0 of the approval card.
5.1 PC and mobile
Feishu sends one card JSON to every client, and Orquelo cannot tell which client a person reads it on. Each card is designed for a narrow phone first, and the layout is left to the documented adaptive fields. Desktop and iPad cards are at most 600px wide (config.width_mode: default). The docs give no phone width, so the design assumes about 300px. The rules below were checked against the Card JSON 2.0 docs on 2026-12-04.
| Rule | How |
|---|---|
| One JSON, narrow first | Content works at about 300px; anything wider is a bonus |
| Action row | Buttons in a column_set with flex_mode: stretch and horizontal_spacing: medium (8px), each width: fill: one row on desktop, one full-width row each on a phone. Primary action first, at most three. Size large (40px tall on PC, 48px on mobile), meeting the 44pt and 48dp touch targets |
| Small actions | View diff and the 👍 and 👎 rating fit one row at 300px and stay there (flex_mode: none) |
| Side-by-side facts | Changes and Delivered in a two-column column_set with flex_mode: stretch, stacked on a phone |
| Short, neutral header | template: default; colour only on the title glyph and one text_tag naming the state (three are allowed). The title is the task in a few words; runtime, model and time go in subtitle |
| Bounded body | The subtitle says how far the plan is ("plan 2 of 4"). Progress shows at most five plan items, the last three tool lines with "N earlier steps", and the tail of the streamed text, so the card does not jump. A diff shows at most 8 lines; the rest goes in a collapsible_panel |
| No tables | Markdown tables page at five rows and squeeze on a phone; cards use lists |
| Preview text | config.summary.content names the state and the question ("◈ Waiting for you: Run a shell command?") and sets the chat-list preview |
| Both themes | Colours only from the enums, which have light and dark codes; never custom RGBA |
| Update limits | A patch at most 5 times a second per message, for messages up to 14 days old, with the card at most 30 KB. Progress keeps once a second. streaming_mode (10 operations a second, off by itself after 10 minutes) is an option for streamed text only |
| Old clients | JSON 2.0 needs client 7.20 or later; older clients show only the title and an upgrade notice, so the title must make sense alone |
Not documented, so to be checked on iOS, Android and the desktop before T6 ships: the phone card width, title truncation, wrapping of long code lines, collapsible_panel on mobile, dark header templates, and whether push notifications use config.summary.

The dark client: devices-dark.png.
6. Architecture
6.1 Layers
The TUI is a separate process. Its modules sit in five layers. A module has one responsibility; it imports only layers below its own, never a module beside it, and nothing imports upward (owner, 2026-12-04).
flowchart TB
subgraph L4["L4 composition root"]
CLI["internal/cli: orquelo tui"]
end
subgraph L3["L3 orchestrator"]
APP["tui/app: screen state machine, routes messages, owns ports"]
end
subgraph L2["L2 capabilities (peers never import each other)"]
SES["tui/session: read model"]
VIEW["tui/view: screens and components"]
LINK["tui/hostlink: HTTP + SSE"]
LOCAL["tui/localhost: find, start, credential"]
WS["tui/workspace: file index"]
DESK["tui/desktop: clipboard, open, $EDITOR"]
end
subgraph L1["L1 foundation"]
LOOK["tui/look: styles from tokens, profile detection"]
end
subgraph L0["L0 definitions (no behaviour)"]
MODEL["tui/model: read-model types, events"]
DL["pkg/designlang: roles, glyphs, message keys"]
PLUG["pkg/plugin: RunView, QuestionView, …"]
end
CLI --> APP
APP --> SES & VIEW & LINK & LOCAL & WS & DESK
VIEW --> LOOK
LOOK --> DL
SES & VIEW & LINK --> MODEL
MODEL --> PLUG| Layer | Package | One responsibility | May import |
|---|---|---|---|
| L0 | pkg/designlang | The shared design language: state to role, glyph and ASCII glyph, message keys; used by the TUI, the console and every Feishu card | standard library |
| L0 | internal/tui/model | The client's read-model types and the events that change them | L0 |
| L1 | internal/tui/look | Terminal styles from the roles, palette and profile detection (dark or light, NO_COLOR, ASCII) | L0, lipgloss |
| L2 | internal/tui/session | The state owner: applies HTTP pages and SSE events in seq order, with the resync rule; pure, table-tested | L0 |
| L2 | internal/tui/view | Renders a read model at a width: transcript, input, dialogs, picker, inbox, details, footer | L0, L1, lipgloss, glamour |
| L2 | internal/tui/hostlink | The httpapi v2 client: requests, uploads, the SSE stream with Last-Event-ID and back-off | L0 |
| L2 | internal/tui/localhost | Finds the local Host, starts it when it is down, reads the local credential; per-platform files | L0 |
| L2 | internal/tui/workspace | The local file index for @ mentions | L0 |
| L2 | internal/tui/desktop | Clipboard (OSC 52 over SSH), opening files, $EDITOR | L0 |
| L3 | internal/tui/app | The orchestrator: the screen state machine and key and mouse routing. It declares the narrow ports it needs; L2 packages satisfy them without importing app. No I/O in Update; I/O runs in commands | L0–L2, Bubble Tea |
| L4 | internal/cli | orquelo tui [-host URL] builds the providers and injects them into app | all |
Enforced by a test. internal/tui/layers_test.go reads the imports of every package under internal/tui and pkg/designlang and fails on any edge the table does not allow: a peer import, an upward import, or a cycle. It lands with T1, before the packages it guards.
6.2 Data flow
hostlink turns responses and SSE frames into model events; app hands each to session, which returns the next read model; app passes it with the screen state to view, which returns the frame. Input goes the other way: app maps a key or click to a command that calls hostlink, desktop or workspace. No module but app knows two others.
6.3 Host side
flowchart LR
LINK["tui/hostlink"] -- "messages, answers, uploads, cancel" --> HTTP["httpapi v2"]
HTTP -- "SSE: facts + run.activity (new)" --> LINK
HTTP --> CH["ClientHost"] --> ENG["engine"]
RT["Runtime plugins"] -- "Progress + ProgressView (new)" --> ENG
ENG --> FS["feishu: Presentation, Delivery"]6.4 Local and remote
- ◆Local, the default. The Host writes
data/local-client.jsonwith its loopback address and a token, owner-only (mode 0600; an owner-only ACL on Windows), next tohost.json. The token is new at each Host start.orquelo tuireads it, starts the Host when none runs, and acts as the local operator, the same principal as the console's local user. There is no pairing step. - ◆Remote.
orquelo tui -host URLuses a paired-device token (ADR 0015). The cwd workspace and the file index are off. - ◆Context, connections and files of terminal runs, local and remote, are in terminal channel; performance targets and their tests, against a measured Claude Code baseline, are in terminal UI performance.
6.5 Launch: orq
One command starts the TUI (owner's proposal, 2026-12-04). orq is orquelo tui under a short name.
| Command | What it does |
|---|---|
orq | Opens the TUI in the current directory as a new conversation in that workspace. It finds the local Host, starts it in the background when none runs (as orquelo start does), and connects with the local credential |
orq "text" | The same, and sends text as the first message |
orq -c | Continues the latest conversation of this workspace |
orq -r | Opens the conversation picker first, across every channel |
orq -host URL | Attaches to a remote Host with a paired-device token |
- ◆One binary. The installer adds
bin/orqbesidebin/orquelo: on macOS and Linux a second symbolic link to the same release, switched together with it on upgrade; on Windows a shim,bin\orq.cmd, that runsorquelo.exe tui %*, so no second copy of the binary is installed. The binary opens the TUI when it was started under the nameorq.orquelo tuistays the canonical form in help and in theorquelo-cliskill. - ◆On PATH after install (owner, 2026-12-04). The installer puts
binon the user'sPATHby default, soorqandorquelowork in every new terminal with no manual step.--no-modify-path(-NoModifyPathon Windows) opts out and prints the hint instead. - ◆macOS and Linux.
install.shwrites~/.orquelo/env, a few lines that addbintoPATHonly when it is missing, and sources it from the startup file of each shell it finds:~/.zshrcand~/.zprofilefor zsh (the macOS default),~/.bashrcand~/.bash_profileor~/.profilefor bash, and~/.config/fish/conf.d/orquelo.fishfor fish. Each edit is one marked line, added once. No root is needed and nothing under/etcchanges. The shell that ran the installer cannot be changed from outside, so the installer ends by printing. ~/.orquelo/envfor that one shell; new terminals findorqon their own. - ◆Windows.
install.ps1adds%USERPROFILE%\.orquelo\binto the userPathin the registry, tells Windows the environment changed so new terminals see it, and updates$env:Pathof the running session, soorqworks at once. - ◆Upgrade and uninstall.
orquelo installkeeps the entries as they are.orquelo uninstallremoves the marked lines,~/.orquelo/envand the WindowsPathentry. - ◆Nothing else changes.
orquelowith no arguments still prints help, andorquelo execstays the non-interactive form. - ◆Not a terminal. When standard input or output is not a terminal,
orqexits with code 2 and points toorquelo exec. - ◆Leaving. Ctrl+D or
/exitleaves the TUI; the Host and its runs keep going. - ◆Name clash. If another
orqcomes earlier onPATH, the installer warns and names it;orquelo tuialways works.
Rendering. The alternate screen with Bubble Tea v2's cell renderer and synchronized output (mode 2026), with a full-repaint fallback for ConPTY and old tmux. The transcript is a virtual list built from the read model, so a resize re-renders from source. Streaming Markdown caches the prefix up to the last stable block and re-renders the tail. The mouse is captured: the wheel scrolls the transcript, and the “Jump to bottom” pill and menu rows take clicks. The TUI draws its own selection and copies it through desktop (OSC 52 over SSH); Shift-drag, Option-drag on macOS, still gives the terminal's own selection. [ dumps the conversation to native scrollback and v opens it in $EDITOR. Shift+enter uses the kitty keyboard protocol where present; Ctrl+J and \+enter work everywhere.
Approval race during a reconnect. The TUI and Feishu both show q_51 version 1. The Host restarts; the TUI reconnects with Last-Event-ID: 1042 and gets the facts after it. The person approves in Feishu, the TUI receives question.resolved (version 2), and a late keypress in the TUI answers version 1 and gets 409 question.already_resolved with data.question version 2. The dialog closes and says who answered and where. No run step repeats.
7. Host gaps
| # | Gap | Proposal | Also used by |
|---|---|---|---|
| G1 | Progress is one composed string | Progress carries an optional ProgressView{todos, steps[{key, tool, summary, state, result}], text, usage{tokens_in, tokens_out, context_pct}} beside the text. A snapshot rather than deltas, so losing one stays harmless. The stream sends run.activity without an id; GET /v1/runs/{id}/activity returns the latest after a reconnect. Throttled per channel: about 10 per second to a local client, once a second to Feishu | Feishu progress card, the app, ACP adapters |
| G2 | No run steps after the fact | GET /v1/runs/{id}/steps from the tool ledger and the trace: redacted arguments, result preview, timings, approver | The app, orquelo run show |
| G3 | A question's subject is free text | QuestionView.Subject{tool, args_digest, preview{kind: command|diff|text, body}} | Feishu approval card |
| G4 | Rating is not on httpapi | POST /v1/runs/{id}/rating onto the existing Rate | The app |
| G5 | Local credential | The Host writes data/local-client.json (loopback address and a per-start token, owner-only) and httpapi accepts that token as the local operator (section 6.4) | The desktop app |
| G6 | Approval modes (ask, accept edits, plan) | Not proposed: no Host contract exists beyond approving for the conversation. The status line shows the mode read-only | — |
G1 changes the Runtime-to-Host contract and needs an ADR and a section 8 budget entry. The input contract defers typed progress "until such an adapter exists"; the TUI is that adapter.
8. Slices
- T0 Contract. ADR and schema for
ProgressView,run.activity, steps and the question subject; the agent fills them; httpapi streams them; veruqelo cases over HTTP. - T1 Skeleton. The layer test first;
orqandorquelo tui, with the installer'sbin/orqlink, Windows shim and PATH entries and bothplugins/orquelo-docsskills; local attach with the local credential (G5), send, history, final replies, cancel, survive a Host restart; golden-frame tests drive the model at fixed sizes.make sizereportsinternal/tuion its own line and leaves it out of the total check. - T2 Live run. Plan, tools, streaming Markdown, meters, details view.
- T3 Questions. Command and diff approvals, ask, sign-in, inbox, the cross-channel race.
- T4 Navigation. Conversation picker, changes, deliveries and retry, rating.
- T5 Composer. Catalog completion, file mentions, history search, attachment chips with resumable uploads, image paste, dropped paths, saving delivered files.
- T6 Feishu. Every Feishu card moves to
pkg/designlang: neutral header, state glyph and tag, block order, PC and mobile rules; progress is drawn fromProgressView. - T7 Platforms. Native runs on macOS, Linux and Windows (ConPTY),
NO_COLORand ASCII, zh-CN; e2e through a PTY with a real model; the nightly performance runs of terminal UI performance.
9. Owner decisions
Decided 2026-12-04:
- ◆Fullscreen is the default, and
orqstarts the TUI in one command; the installer puts it onPATHby default. - ◆A TUI on the Host's machine connects locally by default, with no pairing (section 6.4).
- ◆The shared design-language data is a package,
pkg/designlang. - ◆Every Feishu card follows the design language.
- ◆The TUI has no line ceiling.
- ◆Every TUI module has one responsibility, peers do not depend on each other, and the layers are strict (section 6.1).
- ◆The light terminal, clear and simple, is the reference look, with a brand mark on the welcome screen.
- ◆The line-mode console stays as it is, for pipes, scripts and the cases that drive it.
Decided 2026-12-05:
- ◆The built screens reproduce the mockups one to one; where the Host lacks the data a mockup shows, that is said, not left out silently.
- ◆The actions on a finished run, and the key list, use alt with a character (
alt+ddiff,alt+rretry delivery,alt+=/alt+-rate,alt+?keys) instead of the mockups' single characters, so a message may start with any character. - ◆A run's model and cost, the connection's default runtime and each runtime's latest model come from the Host (catalog
default_runtime,models,connection; activity usagemodel,cost_usdin USD).
10. References
- ◆Claude Code: fullscreen renderer, interactive mode, status line, changelog at 9daa033. That its renderer is a fork of Ink comes from secondhand sources only.
- ◆Codex: insert_history.rs (inline by default, finished history in native scrollback), app-server notifications (the TUI is a protocol client).
- ◆Crush: internal/ui/AGENTS.md, go.mod (Bubble Tea v2, fullscreen, optional HTTP+SSE client mode).
- ◆opencode: SSE event handler (typed start, delta and end events).
- ◆Bubble Tea: v2.0.0 release.
- ◆Orquelo:
plugins/agent/run/progress.go,plugins/feishu/cards.go,plugins/httpapi/service/stream.go,pkg/plugin/decisions.go.