OpenProgram Docs

Phone layout

At or below 760px the shell is a phone app in one column. The breakpoint is one constant, PHONE_MAX_WIDTH, the same one the secondary rail already used. Everything else is CSS in styles/base/phone.css, loaded last, plus the gestures in phone-shell.tsx. Above 760px nothing changes.

On a touch phone the shell is replaced by the phone app's own screens; what follows is the narrow desktop window, and the parts the phone app keeps (sheets, keyboard, corners, inputs).

  1. ConversationTab row, one column, composer
  2. Header button or swipe from the left edgeThe sidebar slides over
  3. Tap a chat, the scrim or swipe backThe drawer closes on the chosen chat

Screens

PartOn a phone
SidebarA drawer, min(86vw, 320px) wide, over a --scrim. Opened by the button at the start of the tab row or of a page header, or by a swipe from the left 24px; closed by its own toggle, the scrim, a swipe left, or choosing a chat, page or tab. A drag follows the finger and settles by distance or flick speed. It stays mounted, so it reopens where it was scrolled. No icon rail when closed.
ConversationThe centre card fills the screen; the transcript keeps a 12px margin and the composer lines up with it. The message rail, which lives in the side margin, is not shown, nor are the floating view controls: their actions are in the title's menu. Code blocks and tables scroll inside themselves.
Navigation barThe tab row becomes a 48px bar with two buttons, like the Claude and ChatGPT phone apps: a two-line menu mark on the left opens the left drawer, a compose mark on the right starts a new chat. The open page's title sits in the middle; on a conversation it carries a chevron and opens the conversation's menu. Tabs, history arrows, window overview and the main menu are not shown.
Conversation menuFiles, Activity and Resources open the right drawer at that view; Context graph switches the perspective; then the chat pane's session actions (components/chat/pane/session-actions-menu.tsx): how it is shown, rename, auto rename, pin, copy link, copy conversation, archive, delete. "Use this view by default" stays on the desktop.
MenusEvery menu on a phone has 40px rows at 16px and no keyboard letters or shortcut numbers.
SheetsOn a touch phone every menu, popover and the effort card is a bottom sheet (components/ui/menu/phone-sheet.tsx): 8px off the screen's edges, rounded in parallel with its corners, with a grab handle over a dimmed page. A submenu opens as a sheet over its parent with a Back row. A swipe down or a tap outside closes it. The model menu puts each provider's status under its name.
Sheets in the iPhone appKept, except a menu from a top button grows out of it (phoneDrop); iOS draws only long-press menus (phone app).
One page at a timeOn a touch phone (the app, a phone's browser) opening a page closes the one before it, so tabs never pile up out of sight; the compose button starts a chat in place instead of opening the new tab page. A narrow desktop window keeps its tabs.
Right panelThe left drawer's mirror: min(86vw, 340px) wide from the right edge, over the same scrim. Opened from the conversation menu or a swipe from the right 24px; closed by its toggle, the scrim, a swipe right, or choosing a tab. A drag follows the finger like the left drawer's.
MessagesThe user's messages are bubbles in the theme's accent fill with white text, the corner nearest the sender tighter; the assistant's replies stay plain text.
Settings, History, Projects, AgentsThe secondary rail is the page's section list, full width; a row opens its content. In a phone's browser the list page's header has only the sidebar button, the content page's only a back chevron to the list; in the phone app neither draws a bar, and the app's bar goes back (phone app).
Management pagesDrawer button, rail toggle and title share the first header row; tabs and the toolbar wrap below. No 62px reserve for a collapsed rail.
Composer and question cardsThe three-part composer keeps its layout and spans the column; question and approval cards live in it, so they are full width too. On a touch phone, while a reply runs, its hint reads "Add to this turn" instead of the keyboard shortcuts.

Touch and screen edges

RuleHow
KeyboardThe shell is position: fixed at the visual viewport's top and height (--phone-viewport-top, --phone-viewport-h from visualViewport), falling back to 100dvh, so the composer rides above the on-screen keyboard in Safari too. While the keyboard is up the shell drops its bottom safe-area padding, so the composer sits right on the keyboard; the phone app also removes the previous, next and done bar a web form puts above it.
CornersWhat floats over the page keeps an even gap to the screen's edge, 8px for the drawers and 16px for dialogs, and rounds its corners by the screen's radius less that gap, so the corners run parallel to the screen's. The phone app writes the screen's radius into --phone-screen-radius; a browser assumes 55px when the screen has a home indicator, else 24px. The drawers run under the status bar and the home indicator, and their content keeps clear of both.
Notch and home indicatorThe shell pads by env(safe-area-inset-*); the drawers keep their content inside it (Corners, above).
Touch targetsHeader buttons, drawer rows and section-list rows are 44px. On a touch phone the composer's two chip rows (computer, channel, folders; tools, effort, model) and the marks in menus are drawn 1.2 times larger, so the logos read at arm's length and the chips are 34px.
InputsAt least 16px, so focusing one does not zoom the page.
HoverHover tips never open on a device without hover, even from the mouse events a tap synthesizes; message actions are already visible without hover.
Stored choicesOpening either drawer or a section page on a phone stores nothing, and a stored open right panel starts closed: a wider window keeps its own choices.
MotionBoth drawers slide in 220ms; a drag follows the finger, and on release the drawer carries on from where the finger left it; reduced motion removes the slides.

Taken from dsh-mobile

The design copies saya-ch/dsh-mobile (Apache-2.0), a touch layout for another harness's web UI, rather than inventing one.

DecisionWhy
Session list as an overlay drawer with scrimThe conversation keeps the whole width; the list is one swipe away and keeps its scroll position.
Right panel as a drawer from the right edgedsh-mobile uses a full-screen sheet; a drawer from the right edge, which phone chat apps open with the same swipe as the left one, keeps the conversation in view at its edge.
Settings sections as a list page with a way backThe section list and its content cannot share 390px.
Keyboard-following height, safe-area padding, 44px targets, 16px inputsThe checklist from its design system: primary actions above the keyboard, nothing under the notch, no focus zoom.
No page-level sideways scroll; wide content scrolls in placeSame.

Not copied: its folded 56px rail beside the conversation (OpenProgram keeps no rail on a phone) and its tablet docking band (at 761px and up the desktop layout already applies).

Implementation status

The page's viewport declares viewport-fit=cover. interactive-widget=resizes-content is not declared yet; the visual-viewport height covers the keyboard without it.

Secondary rail · Remote web access

Last updated · 2026-11-30