# Web UI

One workspace UI: a React and Next.js app (`apps/web/`), built ahead of time and served by the Python worker on the API's port, so the same pages run in a browser tab, the desktop app and against a remote server. `apps/desktop/` is an Electron shell for macOS and Windows; Linux and servers use a browser.

| Part | Today |
| --- | --- |
| Sidebar and pages | Projects and chats; Agents, Abilities (Programs, skills, plugins, MCP), Applications, History, Scheduler. Settings in the user menu. List pages share one secondary rail. |
| Center tabs | Chats, files, terminals, web pages. Tabs split into panes; tabs and groups move between windows. |
| Transcript | Reply with tool calls folded into rows, file-change summary, sub-agent rows, waiting requests. Follows new output until you scroll away. |
| Composer | Attachments, model and effort pickers, per-folder git pills, Options menu. Local paths survive into model context. |
| Visual system | Colours, sizes and shapes from tokens and themes; icons, dots and hover tips each follow one rule set. |

Before touching related modules, walk [cross-module UI invariants](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/invariants.html).

## Chat

| Design | Covers |
| --- | --- |
| [Transcript follow](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/chat-transcript-follow.html) | One attach and detach policy for send, stream, Jump to latest, session switch, history windows |
| [Chat-turn visual spec](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/chat-turn-visual-spec.html) | Execution timeline, file-change summary, manual function runs, minimap. File history: [canonical runtime design](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/operations/file-management.html) |
| [Tool group summary](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/tool-group-summary.html) | Header of a folded run: grammar, +N −M badge, running tense, turn-level summary |
| [Activity panel](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/activity-panel.html) | Work chart with every agent by colour and glyph, issues that need you, one page per row |
| [Sub-agent row](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/sub-agent-row.html) | Status, its own conversation, `job_id`-stamped frames, branch transcript load |
| [Task blocks](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/task-blocks.html) | A named, folding stretch of work in a reply: steps, the work under each, states, the two task tools |
| [Task store](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/todo-list.html) | A task is one list, a step one todo; a segment per reply and task; what is sent to the interface |
| [Attachment handling](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/attachment-handling.html) | Storage, admission, delivery, recovery, acceptance |
| [Chat attachments](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/chat-attachments.html) | What the transcript shows, how the agent hands a file back, how a file opens |
| [Turn occupancy](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/turn-lifecycle/turn-occupancy.html) | Stop, send queue and session slot, released on cancel intent |

## Composer

| Design | Covers |
| --- | --- |
| [Interaction modes](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/composer-interaction-modes.html) | Composer modes |
| [Options menu](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/composer-options-menu.html) | (+) on the shared menu grammar; tools come from the Agent |
| [Responsive controls](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/composer-responsive-controls.html) | Compact-state interaction contract |
| [Local attachment paths](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/composer-local-attachment-paths.html) | Path preservation to model context |
| [Effort picker](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/effort-picker.html) | Level name and `?` tip, stepped track with animated top level, thumb tip, Recommended caption |
| [Git folder pills](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/git-folder-pills.html) | Branch, change counts, branch switch, worktrees, pull requests |
| [Hover tips](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/composer/hover-tips.html) | One `HoverTip` + `TipBody` layout |

## Workspace and browser

| Design | Covers |
| --- | --- |
| [Center tabs and split layout](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/workspace/center-tabs-and-split-layout.html) | Single and composite tab lifecycle, rendering, persistence, transfer |
| [Integrated terminal](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/workspace/integrated-terminal.html) | Real PTY, direct local Claude Code launcher |
| [Pane recording](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/workspace/pane-recording.html) | An Agent records one pane to a video: actions, rules, capture route, file |
| [Review pane](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/workspace/review-pane.html) | Unstaged and Staged scopes, staging, pending line comments, Review with agent |
| [Built-in browser](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/browser/built-in-browser.html) | Home, profile import, compact History, new-pane launcher |
| [Browser Annotate](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/browser/annotate.html) | Notes pinned on a page, live Adjust, one message to the chat |
| [Browser extensions](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/browser/browser-extensions.html) | Not supported, retained capabilities, inert legacy data |
| [Agent control overlay](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/browser/agent-control-overlay.html) | Glow, lights and pointer over what the agent controls |
| [Resource preview](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/resources/resource-preview.html) | Resources list, operation preview, human takeover of Pages |
| [Programs categories](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/programs/programs-source-categories.html) | Grouping and source categories |
| [Secondary rail](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/sidebar/secondary-rail.html) | The one list column: rows, collapse, button roles |
| [Settings columns](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/settings/settings-collapsible-columns.html) | Independent 49px collapse; Providers list stays expanded |
| [Avatar picker](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/settings/avatar-randomization.html) | Type first, then same-style variants or letter fields |

## Visual system

| Design | Covers |
| --- | --- |
| [Theme system](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/theme-system.html) | Theme entry, token contract, consumption, overlay propagation |
| [Design tokens](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/design-tokens.html) | Every size, shape and ink tier |
| [Surface system](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/surface-system.html) | Surfaces |
| [Icons](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/icons.html) | Which family goes where, motion, attribution |
| [Indicator dots](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/indicator-dots.html) | Dots |
| [Agent avatars](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/agent-avatars.html) | Character, storage, placement, sources and licences |
| [Web styles](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/visual-system/web-styles.html) | One component, one file; directories mirror the tree |

## State and desktop

| Design | Covers |
| --- | --- |
| [Interaction feedback](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/interaction-feedback.html) | 0 ms rule: optimistic state first, data backfills |
| [State layer](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/state-layer.html) | One store per session; shared data global |
| [Phone layout](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/phone-layout.html) | At 760px and below: sidebar drawer, right panel as a sheet, section lists as pages, composer above the keyboard |
| [Window state](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/desktop/window-state.html) | Bounds, maximize, fullscreen, titlebar hit-testing |
| [Window lifecycle](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/desktop/window-lifecycle.html) | One main window: launch, Dock activate, second instance share one create |
| [Window tab transfer](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/desktop/window-tab-transfer.html) | One transaction, the same live page, journals, rollback |
| [Embedded application windows](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/desktop/embedded-windows.html) | Another application's window in a tab: child window on Windows and X11, live capture and posted input on macOS |
| [Screenshots](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/desktop/screenshots.html) | Freeze, select a window or area, mark up, OCR, pin; one overlay per display |
