docs/06-gui-toolkit.md

06 — GUI Toolkit Decision: GTK4/libadwaita (over Qt 6/QML)

Evaluated against: Wayland-first, KDE Plasma + GNOME, GPU rendering, keyboard/IME/clipboard, splits, custom drawing (attention rings), accessibility, notifications, and Rust binding maturity.

GTK4 + libadwaita (gtk4-rs + relm4) — RECOMMENDED

  • Mature Rust bindings (gtk4 0.10/0.11, libadwaita 0.8/0.9, vte4 0.9/0.10), GNOME 50 runtime, GTK 4.24 Wayland improvements (fractional scaling, text-input v3.2, ext-background-effect).
  • VTE terminal widget exists — no other toolkit gives us a native terminal renderer with a11y/IME/selection for free.
  • Wayland is GTK's primary backend; X11 fallback works; runs fine on Plasma (GJ issues are theming-level, not functional).
  • Custom drawing for attention rings: GtkDrawingArea/CSS borders — trivial.
  • Desktop notifications: notify-rust/ashpd integrate regardless of toolkit; .desktop + StartupWMClass story is standard.
  • Relm4 (Elm-style) keeps Rust core independent: core crates stay toolkit-free, GUI crate depends on core types only.

Qt 6 / QML (cxx-qt) — REJECTED for now

  • cxx-qt is KDAB-maintained but self-described early-stage; supports QtCore/QtGui/QML only (no Widgets/KDE Frameworks bindings).
  • Real-world fragility confirmed in 2026 reports: link-flag incompatibilities against newer Qt (6.11), per-module bridge layout constraints (QTBUG-93443 workarounds), C++ toolchain in build.
  • No terminal widget: we'd hand-roll QML terminal rendering (fonts/shaping/IME/a11y) — the single biggest GUI risk, with zero reuse.
  • KDE integration would be nicer (Kirigami, layer-shell), but not worth owning a terminal renderer.

Decision

Build the Phase 3 GUI on GTK4 + libadwaita + VTE via gtk4-rs/relm4, with all logic in toolkit-independent core crates. Keep the TerminalBackend trait (see 05) so a Qt or custom-GPU frontend stays possible without touching the server.

Note: this machine currently lacks GTK4 system dev packages; GUI work is Phase 3-gated on installing gtk4, libadwaita, vte-gtk4 headers. Phases 1–2 are toolkit-free by design.

Interface design

Layout follows libadwaita idiom so the app behaves like its neighbours on GNOME and Plasma: AdwOverlaySplitView (sidebar collapses to an overlay below 760sp, resizable via a drag handle on its edge clamped to 200–560px and persisted across restarts), AdwTabView/AdwTabBar (autohides with one tab), one primary menu, every command a win.* action with an accelerator. Colour comes only from libadwaita variables, so light, dark, the system accent and high contrast follow the desktop; terminals take the desktop monospace font with 1.1× leading, GNOME's ANSI palette on dark panes and a light palette whose 16 inks read at 4.5:1 on every light theme background (unit-tested), and a pane title without the shell's user@host: prefix when the host is the local one (a remote SSH host stays visible; different fully qualified domains never match). Dark mode redefines those variables (under a .dark window class mirrored from AdwStyleManager) into a wider lightness ladder — sidebar, near-black canvas, pane cards — edged by hairlines, per docs/14 §7; light mode keeps stock Adwaita values. Preferences (Ctrl+,) picks an appearance (System / Light / Dark) and one of five themes (Signal, Grove, Ocean, Ember, Iris); a theme-<id> window class redefines the same variables per theme and variant, Signal keeping the desktop accent (ADR-0019, specs/017-themes). The choice persists in $XDG_CONFIG_HOME/signaltty/gui.json. Each appearance is previewed as a miniature window (System split light/dark down the middle) and each theme as paired light/dark miniature sidebar and terminal surfaces; selection is an accent ring, never a fill. Native wrapping keeps appearance and theme choices reachable in narrow dialogs (specs/049-secondary-window-polish).

Discoverable navigation

The sidebar shows a search-style launcher below the titlebar. It is a real button bound to win.command-palette, not an editable search entry: clicking or pressing Enter opens the existing keyboard-first Commands and Workspaces palette (Ctrl+Shift+P). The launcher uses bundled symbolic artwork and semantic Adwaita surfaces across light, dark, custom themes and high contrast. The sidebar header pairs the original application symbolic mark with a semibold system-font wordmark. The mark is decorative and non-interactive; the app-name label keeps its full tooltip when ellipsized. Logical spacing mirrors in RTL. New Workspace remains a separate trailing named action. The same prompt and parallel-line metaphor appears in the regular 128px desktop app icon and the small filled symbolic icon, bundled and installed under the existing application ID. Native text colors style the header mark; brand hue stays in launcher artwork.

A native project selector sits below Search and above the scrolling workspace list. Its popover searches project names and full paths, displays paths to distinguish duplicate names, and offers All projects. Selecting a project filters existing rows without changing the active terminal. Included task children with an excluded parent appear as roots; group collapse survives scope changes. Global attention and the command palette keep their full workspace catalog and reveal an excluded target on explicit navigation. New Workspace proposes the selected project's folder while retaining the editable creation form. Background refresh never overrides a valid scope. This follows the T3 Code project-scope interaction using native GTK controls.

Only the Workspaces list scrolls (Adwaita .caption-heading title, live total). Worktrees and Preferences are pinned in the sidebar footer, so a long list never buries them; they activate the existing win.* handlers, with no second navigation state or fake dashboard behind them. The footer deliberately does not display an invented "connected" state or agent count.

The content header groups Sidebar and New Tab at the leading edge, workspace Details in a compact centered identity group, and attention, Board/Changes and Main Menu at the trailing edge. Mark, name and context share bounded spacing; identity widgets use their natural width. The native title widget uses strict centering at spacious widths and loose centering below 860sp to preserve useful title width with compact tools or docked Changes. A separate non-interactive leading space reserves 24px for native dragging, or 12px in compact mode. A hidden attention button occupies no width. Changes retains its native synchronized toggle state.

Toolbar presentation follows the actual content width through an AdwBreakpointBin, including when Changes is docked. Below 860sp, New Tab, Board and Changes use flat icon buttons with named tooltips. Below 520sp, they move into labeled controls in the pinned sidebar footer; secondary context and the decorative title mark hide. The footer also remains available whenever the workspace sidebar is collapsed, including before hidden content is reallocated. Activating a footer tool dismisses the sidebar only in collapsed overlay mode; a docked workspace sidebar stays visible. Window breakpoints still own panel docking (1100sp for Changes, 760sp for the workspace sidebar). Menus, palette and shortcuts retain the same actions. Terminal content and workspace context continue to own the canvas.

One status vocabulary, shared by every surface (crates/signaltty-gui/src/status.rs, colours in data/style.css):

AxisSidebar status slotPane headerTabPane card
lifecycle workingspinner + "Working" (accent)spinnertab spinner—
lifecycle blocked/failed"Waiting" / "Failed" (amber / red)amber / red dot——
lifecycle done"Done" (green) while unread, else timegreen dot——
attention unreadaccent dot + timeaccent dotindicator iconhairline accent ring
attention input/warning"Input"/"Warning" (amber)pillicon + bar glowamber ring
attention permission/error"Approval"/"Error" (orange / red)pillicon + bar glowring + inner glow

A sidebar row is three quiet lines, modelled on t3code's thread rows: the workspace mark (monogram on a stable per-workspace tint, kept off the accent and status hues; the content header repeats it in a native title-lane mark name / context breadcrumb) and name with the status slot on the right — "Working 3m", the age dropped under a minute — the latest message (or the verb-tense run state), then branch or folder with the agents on the right. The slot says one thing — attention outranks lifecycle — and shows the relative time when nothing needs saying. Colour is spent only there; the name, headline and meta step down in weight and opacity. Rows at warning severity or above sort first and sit under a "Needs you" label with a hairline below; with nothing waiting there are no section headers. The header's attention count is a pill tinted by the worst attention it counts, in the same colours. Finished child tasks soften only their secondary headline: the workspace name, urgency indicator and keyboard focus stay at full strength. Hover, selection and high contrast restore that headline to full opacity.

The close target reserves space on the name/status line only. Activity and the location/agent line span the row's full width, with roomier line spacing and readable secondary text. Workspace header context prefers branch or Detached HEAD, then agents, then a directory basename. Full path and workspace identity remain in Details, tooltips and the named details button. The overlay header hides secondary context to reserve room for identity. For shell workspaces it puts the branch before the directory, or shows the directory alone without a branch. The separator follows context visibility; startup and the last-workspace removal leave no dangling slash. Hovering the context exposes the complete branch and path, including when the visible labels ellipsize in a narrow window.

Working and Done keep their indicators and text without a filled badge; fills belong to waiting, failed and attention states. Selected rows add a neutral inset leading marker (stronger in high contrast), without changing allocation. Header Board/Changes tools are flat at rest; the checked Changes state has a neutral outline. Pane elevation uses one short shadow while urgency rings keep their existing inset weight and glow.

The two empty states use compact native AdwStatusPage presentation: “Start with a project” explains choosing a folder and starting a shell/agent; “Open a terminal” invites a new tab. Each primary action has a centered GTK-formatted shortcut hint. The display test shell_empty_states_explain_actions_and_fit_large_text captures the populated shell and both empty states in light/dark, at desktop and 360px, including Sans 18 with the app's high-contrast class. It checks the primary action, shortcut text/bounds and opening/canceling New Workspace. This class-based scene is not proof of a real desktop high-contrast theme or screen-reader operation.

Rules that keep it calm:

  • Widgets are reconciled in place (rows keyed by workspace id, tab pages by tab id), never rebuilt on refresh, so selection and scroll survive events and state changes can transition.
  • Rings are inset shadows: attention never changes layout, so it never resizes a terminal, and split panes (which clip each child) can't cut them off.
  • Pointer presses use a 120ms ease-out transform at scale 0.97. Focus, attention styling and control reveal change instantly; keyboard presses never scale. Native asynchronous state reveal remains toolkit-owned. The window follows GtkSettings animation preferences at startup and on changes, removing both interpolation and static press transforms. High contrast removes muted sidebar text and pane subtitle opacity, and strengthens header separators and the focused header's leading marker.
  • Workspace switches never animate pages: bulk tab replacement (close cascade + select) runs with the tab view hidden so one paint shows the final state. AdwTabView slides on programmatic selection and terminals smear through it — context jumps stay instant, tab browsing inside a workspace keeps the native slide.
  • Pane headers have a quiet neutral surface and an inset separator above output. In multi-pane tabs the focused card is outlined and its header has a subtle accent wash, visible even when attention takes over the ring. Inactive titles and terminal text stay readable without extra dimming.
  • Icons the GUI depends on are bundled (data/icons), not assumed from the icon theme.

Starting an agent in a project — the central action — goes through the New Workspace dialog (crates/signaltty-gui/src/new_workspace.rs, AdwDialog with native header actions and AdwActionRow/AdwEntryRow/AdwComboRow): folder (via GtkFileDialog, defaulting to the active workspace's folder or home), name (prefilled from the folder, editable) and first command (Shell plus every agent whose binary is on PATH, binaries taken from the adapter registry and the bundled generic screen manifests, plus a custom command field). Enter confirms, Esc cancels, Create is suggested. Confirming runs workspace.create + pane.spawn like signaltty new, shows the workspace and focuses the new pane. The dialog is single instance and shared by Ctrl+Shift+N, the sidebar "+" and the empty state; the custom field toggles with plain visibility so nothing animates on keyboard navigation. Field-local validation explains an unavailable folder, blank manual name or malformed custom command. Automatic name appears only for supported agent commands. Create/Enter starts one attempt and keeps the form open with progress; pending requests disable editing and dismissal rather than imply cancellation of a server-owned operation. Failure keeps the draft and offers Retry. If the workspace was created but its command failed, its identity is retained, workspace fields are locked, and only command startup is retried; cancellation then keeps the existing workspace. Dialog follows native content size inside a 440px clamp, with scrolling when constrained.

Each sidebar row has a separate trailing close target, revealed instantly on hover or keyboard focus while the status remains visible. Its reserved space keeps text stationary. Keyboard focus outlines are inset, and pane actions reveal on focus anywhere in the pane. The primary menu's Close Workspace action targets the active workspace. Both show a single destructive confirmation that names the workspace and warns that its running terminals and agents will stop. Confirming calls the existing workspace.close method and refreshes the full workspace list. Cancel sends no request. A failed close leaves the row visible and shows a toast.

Tab and pane close actions also confirm when they contain live processes, including idle shells. Cancel is the default and Escape cancels. Exited, restored and empty targets close directly. Confirmations keep the original identity through navigation; cancellation and failed server replies keep mounted terminal widgets. Tab pages are removed by reconciliation after server success, rather than optimistically disappearing while the request is pending.

Inline approvals place the complete selectable, wrapped question above native AdwWrapBox choices. Long option labels wrap as well, so a 320px pane never forces the split wider. Choices keep their original decision and option IDs; removing the decision bar retains the mounted VTE. Header controls and workspace rows expose descriptive accessible names. Choice buttons follow the current decision ID, answerability and options, including when those options change under the same ID. Losing the answer channel removes the choices and shows the existing terminal-answer hint. Prompt-only updates keep mounted choice buttons and the VTE.

Dividers persist: each GtkPaned reports to tab.set_ratio with its tree path once the drag rests 300 ms, never mid-drag. Reconciliation compares layout structure ignoring ratios, so a ratio-only echo moves the live divider in place instead of rebuilding the terminals — no event → rebuild → event loop. A divider with an unsent drag always wins over an incoming echo until its own send lands.

Event refresh and measurement

The GUI merges workspace invalidations into one batch every 16 ms while there is pending work. Each batch reads each affected workspace once. Sidebar summaries, the attention count and active tabs share the cached workspace.get result; selecting a workspace does not fetch it again. Initial load, reconnection and workspace creation/deletion read the full list. IPC replies are awaited on GTK's local executor, with no blocking main-thread receive. A refresh uses an owned cache copy behind a serial async lock, so no RefCell borrow crosses an await. Invalidations arriving in flight form the next batch. Socket operations and ordinary requests have three-second deadlines; uncertain mutations are reported and never automatically replayed.

Attach is enqueue-only. Initial and reconnect VT snapshots replace the existing terminal screen through the same UI FIFO as live bytes. A cumulative output offset suppresses bytes already covered by the snapshot, including queued output from before attachment. Repeated application activation presents the existing window. Current lifecycle presentation derives from process live state; restored historical working state cannot animate a stopped process.

Events route by workspace_id, nested workspace.id, pane.workspace_id, tab.workspace_id, or notification.workspace_id. Cached pane/tab indexes resolve ID-only lifecycle, attention and deletion events, including events for inactive workspaces. An unknown pane requires at most one pane.get per batch to find its workspace. PTY data goes straight to its terminal. maybe_notify runs for every attention event before batching.

Set SIGNALTTY_REFRESH_METRICS=1 to log cumulative IPC and server-event counters to stderr. Each line contains the method/event name, without payloads. To reproduce the measurement with a separate socket, state directory, plugin directory and D-Bus session:

sh
1cargo build --workspace
2python3 scripts/bench-gui-refresh.py --check

The script creates eight workspaces, sends 200 consecutive CLI calls to an inactive pane and counts GUI IPC after initial mapping/resizing settles. It stops the isolated server, its panes and the GUI afterward. Use --gui /path/to/baseline-gui without --check to measure a baseline built with the same counters.

Measured on 2026-09-28, excluding startup and notification lookups:

200 CLI hook callsServer eventsBefore: list / getAfter: list / getRefresh IPC per event, before / after
PreToolUse11 / 90 / 110 / 1
PreToolUse --message "tool N"201201 / 18090 / 3310 / 0.1642

Repeated plain PreToolUse calls produce only one agent.working event: the server suppresses unchanged lifecycle transitions. Adding a message produces 200 notification.created events and one attention.created. That case makes one additional notification pane.get both before and after: total IPC falls from 2011 to 34. The number of batches depends on CLI execution speed; the invariant is one workspace read per dirty workspace per batch. No server or protocol changes are needed.

Cache and routing tests run with cargo test --workspace. The GTK test also exercises batching through App::on_event, checks the actual sidebar labels, attention count, tab indicators and selection, and counts the separate notification lookups. It requires a display and runs explicitly:

sh
1dbus-run-session -- cargo test -p signaltty-gui event_batches -- --ignored --test-threads=1
2dbus-run-session -- cargo test -p signaltty-gui dialog_confirm -- --ignored --test-threads=1
3cargo clippy -p signaltty-gui --all-targets -- -D warnings

Direct supported agent launches prepare status hooks before execution. Setup errors, disabled launch modes and newly configured Codex trust requirements use native AdwToast notices on create, split and resume; successful ordinary configuration does not add another status badge (ADR-0013).

Local navigation and Git workflows

The primary menu and command/workspace palette share the action registry. Ctrl+Shift+P opens the palette. It filters commands and cached workspace names and paths immediately, so typing and pressing Enter selects the current match. Workspace and command group headings follow the visible filtered results without adding selectable rows or changing action indices. Up/Down selects a result and scrolls just enough to keep it visible while search retains focus. Filtering resets to the first visible match. No matches shows a native status page with recovery guidance; clearing the query restores the list. Commands show GTK-formatted shortcuts below their titles, including accessible descriptions, without narrowing the title at large text sizes. Full workspace names and paths remain available as literal tooltips. Enter invokes the existing action or switches the workspace. Escape restores terminal focus. Workspace switches keep already created VTE widgets attached to the output stream, including inactive workspaces; closing a pane or workspace prunes those widgets after the cache refresh.

Ctrl+Shift+R opens Rename Workspace through the existing workspace.rename method. Empty names disable Rename; labels change while handles stay fixed. Ctrl+Shift+F opens literal search inside the focused pane. Enter/Shift+Enter and the next/previous buttons navigate VTE scrollback matches. Escape closes search, clears its regex and selection, and restores terminal focus. Search never sends text to the process. Its controls fit a 320px pane.

Ctrl+Shift+Z temporarily shows the focused pane alone. Zoom projects the cached layout locally and retains every pane widget, including hidden siblings and their output. It never persists a divider change. Returning to the split uses the latest server layout and ratios; switching workspace/tab or focusing another pane restores the ordinary view. Hidden widgets do not send resize requests.

Worktrees opens a native registered-checkout list with branch and open-workspace context. Create asks for an absolute path and a new branch; Open reuses an existing workspace when present. A newly opened empty workspace starts a shell through pane.spawn. Remove requires a separate destructive confirmation and keeps the branch. Open, main, locked, missing and bare checkouts cannot be removed from this dialog; the server also refuses dirty or live-referenced paths. Closing a workspace leaves its checkout intact. Git operations use a dedicated background IPC connection with a 90-second deadline, so approvals and normal control traffic keep flowing. A checkout's Open and Remove actions sit on one aligned row. Remove is a quiet destructive-text action, never a second primary button. Disabled controls have contextual accessible descriptions for main, locked, missing, bare and still-open checkout states. An uncertain mutation is never automatically replayed.

Show Changes (Ctrl+Shift+D, header toggle, palette, main menu) docks a panel at the window's right edge, beside the terminals, in an end-side AdwOverlaySplitView. Below 1100sp it overlays the content; below 760sp the header toggle hides so the header fits 360px. The panel reads workspace.diff when opened, when the active workspace changes while it is open, and on explicit Refresh; a closed panel does no reads. The Working tree summary says "Changes against HEAD" with aggregate file/line counts. The native header keeps the Changes title; a separate native selector exposes Working tree and Latest turn without hover. Its native labels wrap with enlarged or wider fonts rather than truncating the comparison names. Refresh acts on the selected comparison. Files sort by path under a directory label per group; each row shows the file name (full path in the tooltip) and +N −N in the diff colours, or "Untracked"/"Binary". Working tree compares against HEAD; Latest turn compares against the recorded agent-turn baseline and explains when no turn has been recorded. Workspace names, paths and file names render literally, including <, > and &.

Clicking the header breadcrumb opens the workspace details card (details.rs, after t3code's thread details): branch (or "Detached HEAD"), the ~ path with Copy Path, running agents, the workspace's task with its pull request and check status, Changes +N −N (read with workspace.diff only when the card opens; it opens the Changes panel), and Open Folder. Rows that do not apply are hidden; the breadcrumb is inactive without a workspace.

Activating a file pushes a reader inside the same panel, using workspace.file_diff. Back returns to the preserved file list and row focus. The selectable, noneditable monospace view shows hunk headings, old/new line numbers, context, and explicit added/removed signs. Number prefixes keep the same monospace metrics with a secondary foreground, restored to full text contrast in high-contrast mode. Native paragraph bands and spacing separate hunk headings. The reader stays LTR inside RTL panels; long literal paths wrap at character boundaries instead of forcing the panel wider. Semantic text colors support light and dark themes; long code lines scroll within the reader. New text files show additions. Binary, unchanged, unavailable and incomplete previews have explicit notices. Refresh invalidates the old patch and reads the current summary. The reader ignores replies superseded by selection, Back, refresh or a workspace switch. File reads use a dedicated connection with a ten-second deadline and never alter terminal widgets. See ADR-0016.

The display tests navigation_palette_fast_enter_and_git_dialogs_use_native_controls, pane_zoom_keeps_hidden_terminals_and_restores_latest_ratios, and terminal_search_is_literal_and_keeps_the_terminal exercise the actual controls. Set SIGNALTTY_UI_EVIDENCE=/tmp/signaltty-local-workflows on the first two to export light/dark palette, Git, search and zoom snapshots, including narrow Git dialogs. The fixtures use independent GTK windows and IPC channels.

The isolated display tests palette_keyboard_selection_stays_visible_while_search_keeps_focus and palette_empty_results_and_shortcuts_fit_narrow_appearances cover long-list navigation, filtering after scrolling, no-match recovery and 360px layouts. SIGNALTTY_UI_EVIDENCE exports their native renders, including enlarged text with the application's high-contrast class. This class-based scene does not certify a screen-reader or a real desktop high-contrast theme.

Task Board presentation

The Task Board retains its five lifecycle columns and native vertical lists. Each column uses a distinct heading and quiet numeric badge instead of a punctuated heading/count string. Only a nonempty Needs you counter takes a semantic warning tint; high contrast keeps counters outlined and readable. A horizontal GTK scroller keeps every column reachable in narrow windows, including by keyboard focus. Cards keep complete tooltips while labels ellipsize. Secondary metadata uses a single foreground treatment; high contrast restores metadata and column headings to full strength. Task classification and pane activation remain unchanged. Done keeps its total count and newest 20 cards; when more exist, a wrapping “Showing latest 20 of N” notice explains the visible subset.

Background task events reconcile the open board in place. Task IDs retain row widgets, current metadata and pane destinations. Scrolled columns keep their surviving viewport anchors through insertions and removals; a moved focused card follows its identity into its new column. Removal chooses the next/previous surviving row in the original column, then native dialog focus. New navigation wins over pending restoration; GTK layout clamps and board-triggered focus animations do not count as new user scrolling. Empty/nonempty transitions retain the dialog.

The isolated display test task_board_fits_narrow_windows_and_reveals_last_column checks narrow light/dark scenes, enlarged high-contrast text, scrolling to Done and activating its pane. SIGNALTTY_UI_EVIDENCE exports the native renders.

Workspace rows place name and textual state together in a native AdwWrapBox. When width or enlarged text would squeeze the name, the state wraps below it. Ordinary unselected rows retain a quiet branch/directory line; useful activity previews appear for selection, unread/attention or blocked/failed agents. Task chips and child collapse controls remain available regardless of selection. Agent metadata is visible for the selected root or naming feedback; full hidden context stays in the row tooltip and accessible name. Selection changes and background restoration synchronize presentation in place, retaining keyed rows and terminal widgets. Child indentation and scoped grouping remain unchanged.

New Workspace defaults to Automatic name for installed Codex/Claude commands, with a provisional folder name until their first prompt. Disabling it reveals the native editable name row; unsupported/custom commands use manual names. The hint and tooltip explain first-message generation and use of the agent account.

Preferences includes the native Run agents without confirmations switch. It saves immediately in gui.json and defaults off. Its description explains command/file execution and Codex's unsandboxed mode. Enabled, it selects native automatic mode for new installed-command Codex, Claude and Antigravity workspaces; Custom commands, shells and other providers remain unchanged. The selected command preview includes its actual arguments. Running sessions retain their launch choice. The isolated display tests automatic_agent_permissions_are_persistent_native_controls and automatic_workspace_launches_preserve_custom_commands cover the switch's save/load behavior, light/dark renders, supported launch arguments and custom command precedence. See automatic execution.

Workspace task chips occupy a separate optional line below headline/status, so large-text worker labels do not compete with attention pills.

Workspace navigation uses the same 8px row radius as its search and footer controls. Selection has a quiet neutral fill and leading marker; keyboard focus keeps its distinct inset outline, and high contrast keeps a selection perimeter. Branch/directory metadata uses a decorative symbolic icon with the full value in its tooltip. Empty and child metadata hide the icon. Generated bare Working… headlines no longer repeat the status label; explicit agent messages and timed run labels remain. Refresh keeps the existing row and metadata image widgets.

Secondary surface hierarchy

Task cards give the title the full width on up to two lines, with agent/context and state below. When the five columns overflow, Previous state / Next state controls move between columns; they wrap with enlarged text. Task activation and live row identity/scroll restoration are unchanged.

Worktrees follows the natural content size with a capped scrolling list, rather than reserving a tall empty body. Branch is the primary label; the checkout path and existing availability state remain visible below, with a literal full-path tooltip. Directory headings in Changes use a semantic hairline and stronger secondary text. No server or persisted preference changes are involved.

The application-owned dialogs use a restrained surface style (specs/050-restrained-native-surfaces): 6px control/card corners, 10px floating surfaces, flat lists with semantic hairlines, outlined secondary actions and a neutral palette selection with a leading marker. Primary actions retain the accent. The details popover follows the same lighter elevation. Native hit areas, focus outlines, response semantics, adaptive sheets and file choosers remain toolkit-owned. Overrides are scoped to explicit dialog classes rather than a global GTK theme. High contrast strengthens selection and borders.

The workspace shell uses the same restrained geometry (specs/051-restrained-workspace-shell): 6px terminal/control corners, flat pane and decision surfaces, compact status badges, ghost window controls and native tabs with a selected bottom marker. The Changes scope selector and diff reader, terminal search and owned primary menu follow the same hierarchy. Native hit areas, focus outlines, attention priority and terminal layout remain unchanged; header/tab/menu overrides target explicit application classes.

Icon roles and local action placement

Changes uses an owned diff-document symbol in the header, compact footer and Details card. Board uses a three-column symbol in its controls and empty state. New Tab uses a tab-strip plus symbol; terminal/agent details use an owned prompt symbol. Original symbols share a 16px grid and 1.5px weight. Metadata renders at 16px without downsampling; Details images are decorative and use full foreground in application high contrast. Copy Path keeps a named, flat native button.

Pane Close has a logical gap after the paired split controls. Worktree Create and Refresh live in the dialog header; Open and Remove stay on their checkout row. Below 480sp the native dialog breakpoint makes Create/Open/Remove icon-only, restoring their labels on widening. Native shrinking content keeps their targets inside narrow windows with enlarged text. Compact content reserves height for wrapped guidance and a scroll viewport; row controls align with the branch, and native viewport scrolling keeps focused actions visible. Action names, tooltips and server calls retain their meaning. See spec053 for scope and proof.

Task Board cards keep a two-line title above up to three full-width context lines, with worker state on its own leading line. Completed stays explicit without a filled success badge. The opening content height is 440px and stays stable during live updates; existing native column scrolling and state navigation handle overflow (specs/067-board-density-polish).

The Worktrees header uses a flat plus/New control. Its window title supplies the checkout context while the complete Create Worktree accessible name and explanatory tooltip remain. The existing narrow breakpoint keeps the plus icon and restores New when space returns (specs/068-worktrees-toolbar-polish).

Palette results repeat each workspace’s sidebar mark, stable tint and name/path hierarchy. Commands use a neutral 16px bundled symbolic glyph in the same leading lane, with shortcut hints trailing at spacious widths. Below 480sp they move to the command subtitle so enlarged or wider font metrics cannot squeeze the title. Workspace paths retain their subtitle. Prefixes are decorative and native ActionRow layout mirrors in RTL. The action registry owns command artwork and activation identity (specs/069-palette-recognition-polish).