Terminal UIdoc/{zh,en}/design/tui.md

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

  1. A thin client, not a channel plugin. orquelo tui is 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 reads orquelo.db, and adds no client branch to the Host.
  2. 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.
  3. 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).
  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).
  5. 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.
  6. 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).
  7. 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).
  8. 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.

#ScenarioWhat the person seesHost todayFrame
S1Start and attachFinds or starts the local Host and connects as the local operator; the Orquelo mark, version, runtime, model, workspace, recent conversations from every channel, questions waitinggap: local credential (G5)welcome
S2Commands and skills/ lists the directives visible to this personbuilt: /v1/catalogslash
S3Runtime and file mentions@ offers runtimes from the catalog and files from a local workspace indexclient: file index for a local Host onlymention
S4Watch a runPlan, each tool call with a one-line result, streamed text, spinner with elapsed time, tokens and context usegap: progress is one string (G1)running
S5Approve a commandExact command, directory, digest, expiry; approve once, for the conversation, or reject with a notepartial: prompt is text (G3)approve
S6Approve an editA diff preview of the writegap: no structured subject (G3)diff
S7Answer a questionSingle or multiple choice or free text, bound to the question's versionbuilt: CAS answersask
S8Sign inA link to open on any device or a hidden paste field; the run resumes by itselfbuilt: sign-in questionssignin
S9Steer and queueText typed during a run is steered into it; a message with files queues a new runbuilt: ADR 0006steer
S10Result, changes, deliveriesRendered Markdown, the run's file changes, each destination's delivery, retry of one failed destination, ratingpartial: rating not on httpapi (G4)final
S11Failure, refusal, cancelA refused tool, a failed run with its code, a cancel; each says what is kept and that nothing rerunsbuiltfailed
S12Switch and resumeThe person's conversations across channels, filterable; open one started in Feishubuilt: /v1/conversationspicker
S13InboxQuestions waiting anywhere; answered here, settled everywhere, first answer winsbuilt: /v1/questionsinbox
S14Host restartA banner, a kept draft, replay from the last event id or reload after stream.resync_requiredbuilt: SSE replayreconnect
S15Details viewEach step's arguments, output, ledger key and approver; search; dump to scrollbackgap: no steps endpoint (G2)transcript
S16SubagentsChildren and cross-runtime children as a tree with statepartial: finish onlysubagents
S17Chinese localeAll text from message keys; CJK keeps the cell gridclient: pkg/i18nzh
S18Narrow, no colour, ASCII64 columns, NO_COLOR, legacy consoles; state by glyph and word, never colour aloneclientnarrow
S19Remote HostA paired-device token; the cwd workspace and file index are offbuilt: pairing—
S20Pipes and scriptsNot the TUI: orquelo exec and the line-mode console, which stays as it is (owner, 2026-12-04)built—
S21AttachmentsFiles 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 pathbuilt: resumable uploads, artifactsattach
S22Scroll back while streamingThe view stops following; a “Jump to bottom” pill counts new lines; a click or End returnsclientscroll

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

RoleStatesLight terminalDark terminalFeishu text_tag colour
runqueued, running#1d68c4#5aa9ffblue
waitwaiting for the person#9a5c00#f0b44corange
oksucceeded, approved#187944#58c98bgreen
failfailed, refused, rejected#be3333#f07070red
mutedcancelled, expired, superseded, metadata#6b6d72#868c97neutral
accentOrquelo, 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

MeaningGlyphASCII
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 large buttons (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-CN and en-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.

welcome
welcome

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

slash
slash
mention
mention

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.

running
running

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

scroll
scroll

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

approve
approve
diff
diff
ask
ask
signin
signin

S9 Steer and queue.

steer
steer

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.

attach
attach

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.

final
final
failed
failed

S12–S13 Conversations and inbox.

picker
picker
inbox
inbox

S14–S16 Restart, details and subagents.

reconnect
reconnect
transcript
transcript
subagents
subagents

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

zh
zh
narrow
narrow

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.

S1 welcome, light
S1 welcome, light
S2 slash, light
S2 slash, light
S3 mention, light
S3 mention, light
S4 running, light
S4 running, light
S22 scroll, light
S22 scroll, light
S5 approve, light
S5 approve, light
S6 diff, light
S6 diff, light
S7 ask, light
S7 ask, light
S8 signin, light
S8 signin, light
S9 steer, light
S9 steer, light
S21 attach, light
S21 attach, light
S10 final, light
S10 final, light
S10 reply with a table, light
S10 reply with a table, light
S11 failed, light
S11 failed, light
S12 picker, light
S12 picker, light
S13 inbox, light
S13 inbox, light
S14 reconnect, light
S14 reconnect, light
S15 transcript, light
S15 transcript, light
S16 subagents, light
S16 subagents, light
S17 zh, light
S17 zh, light
S18 narrow, light
S18 narrow, light

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.

Feishu cards, light
Feishu cards, light

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.

RuleHow
One JSON, narrow firstContent works at about 300px; anything wider is a bonus
Action rowButtons 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 actionsView diff and the 👍 and 👎 rating fit one row at 300px and stay there (flex_mode: none)
Side-by-side factsChanges and Delivered in a two-column column_set with flex_mode: stretch, stacked on a phone
Short, neutral headertemplate: 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 bodyThe 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 tablesMarkdown tables page at five rows and squeeze on a phone; cards use lists
Preview textconfig.summary.content names the state and the question ("◈ Waiting for you: Run a shell command?") and sets the chat-list preview
Both themesColours only from the enums, which have light and dark codes; never custom RGBA
Update limitsA 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 clientsJSON 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.

Feishu cards on desktop and on a phone
Feishu cards on desktop and on a phone

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).

mermaid
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
LayerPackageOne responsibilityMay import
L0pkg/designlangThe shared design language: state to role, glyph and ASCII glyph, message keys; used by the TUI, the console and every Feishu cardstandard library
L0internal/tui/modelThe client's read-model types and the events that change themL0
L1internal/tui/lookTerminal styles from the roles, palette and profile detection (dark or light, NO_COLOR, ASCII)L0, lipgloss
L2internal/tui/sessionThe state owner: applies HTTP pages and SSE events in seq order, with the resync rule; pure, table-testedL0
L2internal/tui/viewRenders a read model at a width: transcript, input, dialogs, picker, inbox, details, footerL0, L1, lipgloss, glamour
L2internal/tui/hostlinkThe httpapi v2 client: requests, uploads, the SSE stream with Last-Event-ID and back-offL0
L2internal/tui/localhostFinds the local Host, starts it when it is down, reads the local credential; per-platform filesL0
L2internal/tui/workspaceThe local file index for @ mentionsL0
L2internal/tui/desktopClipboard (OSC 52 over SSH), opening files, $EDITORL0
L3internal/tui/appThe 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 commandsL0–L2, Bubble Tea
L4internal/cliorquelo tui [-host URL] builds the providers and injects them into appall

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

mermaid
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.json with its loopback address and a token, owner-only (mode 0600; an owner-only ACL on Windows), next to host.json. The token is new at each Host start. orquelo tui reads 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 URL uses 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.

CommandWhat it does
orqOpens 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 -cContinues the latest conversation of this workspace
orq -rOpens the conversation picker first, across every channel
orq -host URLAttaches to a remote Host with a paired-device token
  • ◆One binary. The installer adds bin/orq beside bin/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 runs orquelo.exe tui %*, so no second copy of the binary is installed. The binary opens the TUI when it was started under the name orq. orquelo tui stays the canonical form in help and in the orquelo-cli skill.
  • ◆On PATH after install (owner, 2026-12-04). The installer puts bin on the user's PATH by default, so orq and orquelo work in every new terminal with no manual step. --no-modify-path (-NoModifyPath on Windows) opts out and prints the hint instead.
  • ◆macOS and Linux. install.sh writes ~/.orquelo/env, a few lines that add bin to PATH only when it is missing, and sources it from the startup file of each shell it finds: ~/.zshrc and ~/.zprofile for zsh (the macOS default), ~/.bashrc and ~/.bash_profile or ~/.profile for bash, and ~/.config/fish/conf.d/orquelo.fish for fish. Each edit is one marked line, added once. No root is needed and nothing under /etc changes. The shell that ran the installer cannot be changed from outside, so the installer ends by printing . ~/.orquelo/env for that one shell; new terminals find orq on their own.
  • ◆Windows. install.ps1 adds %USERPROFILE%\.orquelo\bin to the user Path in the registry, tells Windows the environment changed so new terminals see it, and updates $env:Path of the running session, so orq works at once.
  • ◆Upgrade and uninstall. orquelo install keeps the entries as they are. orquelo uninstall removes the marked lines, ~/.orquelo/env and the Windows Path entry.
  • ◆Nothing else changes. orquelo with no arguments still prints help, and orquelo exec stays the non-interactive form.
  • ◆Not a terminal. When standard input or output is not a terminal, orq exits with code 2 and points to orquelo exec.
  • ◆Leaving. Ctrl+D or /exit leaves the TUI; the Host and its runs keep going.
  • ◆Name clash. If another orq comes earlier on PATH, the installer warns and names it; orquelo tui always 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

#GapProposalAlso used by
G1Progress is one composed stringProgress 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 FeishuFeishu progress card, the app, ACP adapters
G2No run steps after the factGET /v1/runs/{id}/steps from the tool ledger and the trace: redacted arguments, result preview, timings, approverThe app, orquelo run show
G3A question's subject is free textQuestionView.Subject{tool, args_digest, preview{kind: command|diff|text, body}}Feishu approval card
G4Rating is not on httpapiPOST /v1/runs/{id}/rating onto the existing RateThe app
G5Local credentialThe 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
G6Approval 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

  1. 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.
  2. T1 Skeleton. The layer test first; orq and orquelo tui, with the installer's bin/orq link, Windows shim and PATH entries and both plugins/orquelo-docs skills; 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 size reports internal/tui on its own line and leaves it out of the total check.
  3. T2 Live run. Plan, tools, streaming Markdown, meters, details view.
  4. T3 Questions. Command and diff approvals, ask, sign-in, inbox, the cross-channel race.
  5. T4 Navigation. Conversation picker, changes, deliveries and retry, rating.
  6. T5 Composer. Catalog completion, file mentions, history search, attachment chips with resumable uploads, image paste, dropped paths, saving delivered files.
  7. T6 Feishu. Every Feishu card moves to pkg/designlang: neutral header, state glyph and tag, block order, PC and mobile rules; progress is drawn from ProgressView.
  8. T7 Platforms. Native runs on macOS, Linux and Windows (ConPTY), NO_COLOR and 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 orq starts the TUI in one command; the installer puts it on PATH by 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+d diff, alt+r retry 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 usage model, cost_usd in USD).

10. References